mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-21 13:22:55 +00:00
Redesign app with material design
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (c) 2014-2015, Loic Blot <loic.blot@unix-experience.fr>
|
||||
* All rights reserved.
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape>
|
||||
<corners android:radius="6dp" />
|
||||
<gradient
|
||||
android:startColor="#66b6df"
|
||||
android:endColor="#56a6cf"
|
||||
android:angle="270" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/layout/list_content.xml
|
||||
**
|
||||
** Copyright 2006, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:drawSelectorOnTop="false"
|
||||
/>
|
||||
@@ -37,69 +37,52 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/main_tv_accounts"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:text="@string/ma_title_add_account"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
style="@style/h1"
|
||||
android:text="@string/ma_title_add_account" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/main_button_accounts"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/main_tv_accounts"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="26dp"
|
||||
android:onClick="openAddAccount"
|
||||
android:background="@drawable/standard_button"
|
||||
style="@style/StandardButton"
|
||||
android:text="@string/ma_button_goto_sync" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/main_tv_accounts"
|
||||
android:layout_alignStart="@+id/main_tv_accounts"
|
||||
android:layout_below="@+id/main_button_accounts"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="@string/ma_title_change_settings"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
style="@style/h1"
|
||||
android:text="@string/ma_title_change_settings" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/main_button_settings"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/textView1"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="19dp"
|
||||
android:onClick="openAppSettings"
|
||||
android:background="@drawable/standard_button"
|
||||
style="@style/StandardButton"
|
||||
android:text="@string/ma_button_goto_settings" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_launchsync"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/main_tv_accounts"
|
||||
android:layout_alignStart="@+id/main_tv_accounts"
|
||||
android:layout_below="@+id/main_button_settings"
|
||||
android:layout_marginTop="18dp"
|
||||
android:text="@string/ma_title_sync_all"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
style="@style/h1"
|
||||
android:text="@string/ma_title_sync_all" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/main_button_sync"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_launchsync"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="19dp"
|
||||
android:onClick="syncAllMessages"
|
||||
android:background="@drawable/standard_button"
|
||||
style="@style/StandardButton"
|
||||
android:text="@string/ma_button_sync_accounts_now" />
|
||||
|
||||
@@ -119,10 +102,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_remoteaccount"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="19dp"
|
||||
android:onClick="selectRemoteAccount"
|
||||
android:background="@drawable/standard_button"
|
||||
style="@style/StandardButton"
|
||||
android:text="@string/choose_account" />
|
||||
|
||||
|
||||
@@ -37,13 +37,11 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title_thanksto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:text="@string/ma_button_thanksto"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
style="@style/h1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_thankspeople"
|
||||
@@ -61,25 +59,17 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_rateUs"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="15dp"
|
||||
android:minHeight="36dp"
|
||||
android:text="@string/ma_button_rate_us"
|
||||
android:onClick="openGooglePlayStore"
|
||||
android:background="@drawable/standard_button"
|
||||
style="@style/StandardButton"
|
||||
android:textAlignment="center" />
|
||||
style="@style/StandardButton" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/ma_title_rateus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignLeft="@+id/tv_thankspeople"
|
||||
android:layout_alignStart="@+id/tv_rateUs"
|
||||
android:layout_below="@+id/tv_thankspeople"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="@string/ma_title_rate_us"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge" />
|
||||
style="@style/h1"
|
||||
android:text="@string/ma_title_rate_us" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_rateUs"
|
||||
|
||||
@@ -30,19 +30,20 @@
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" >
|
||||
|
||||
<!--<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/function_not_available"
|
||||
android:id="@+id/textView"
|
||||
android:layout_gravity="center_horizontal"/>-->
|
||||
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:drawSelectorOnTop="true"
|
||||
android:clickable="false"/>
|
||||
|
||||
<TextView android:id="@+id/empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:text="@string/no_account_configured"
|
||||
android:padding="32dp"
|
||||
android:gravity="center"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -181,4 +181,5 @@
|
||||
<string name="subtitle_contact_phones">- Telefony kontaktu</string>
|
||||
<string name="pref_title_bulk_messages">Maximální počet zpráv pro odeslání na synchronizaci</string>
|
||||
<string name="contactinfos_list">Adresář</string>
|
||||
<string name="no_account_configured"></string>
|
||||
</resources>
|
||||
@@ -166,5 +166,6 @@ Contributors and issue\'s reporters</string>
|
||||
<string name="pref_title_bulk_messages">Max messages to send per sync</string>
|
||||
<string name="contactinfos_list">Contact list</string>
|
||||
<string name="function_not_available">This function is not available yet.</string>
|
||||
<string name="no_account_configured">No account configured.</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -151,4 +151,5 @@ Les contributeurs et rapporteurs de bugs</string>
|
||||
<string name="pref_title_bulk_messages">Nombre maximum de messages à envoyer par synchronisation</string>
|
||||
<string name="contactinfos_list">Liste des contacts</string>
|
||||
<string name="function_not_available">Cette fonctionnalité n\'est pas encore disponibleeems.</string>
|
||||
<string name="no_account_configured">Vous n\'avez pas configuré de compte.</string>
|
||||
</resources>
|
||||
|
||||
@@ -28,12 +28,7 @@
|
||||
<resources>
|
||||
|
||||
<style name="OcSmsTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="android:actionBarStyle">@style/OcSmsActionBar</item>
|
||||
</style>
|
||||
|
||||
<style name="OcSmsActionBar"
|
||||
parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
|
||||
<item name="android:background">#56a6cf</item>
|
||||
<item name="colorPrimary">@color/oc_primary</item>
|
||||
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="android:navigationBarColor">@color/oc_primary</item>
|
||||
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
|
||||
<item name="colorPrimary">@color/oc_primary</item>
|
||||
</style>
|
||||
|
||||
<style name="OcSmsTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="colorPrimary">@color/oc_primary</item>
|
||||
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
|
||||
<item name="android:navigationBarColor">@color/oc_primary</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="oc_primary">#1d2d44</color>
|
||||
<color name="oc_primary_dark">#112233</color>
|
||||
</resources>
|
||||
@@ -164,6 +164,7 @@ Contributors and issue\'s reporters</string>
|
||||
<!-- Restauration -->
|
||||
<string name="title_activity_select_account">Select account</string>
|
||||
<string name="title_activity_select_contact">Select contact</string>
|
||||
<string name="no_account_configured">No account configured.</string>
|
||||
|
||||
<!-- Notifications -->
|
||||
<string name="sync_title">Sync process</string>
|
||||
|
||||
@@ -27,14 +27,26 @@
|
||||
|
||||
<resources>
|
||||
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="colorPrimaryDark">@color/oc_primary_dark</item>
|
||||
<item name="colorPrimary">@color/oc_primary</item>
|
||||
</style>
|
||||
|
||||
<!-- Application theme. -->
|
||||
<style name="AppTheme" parent="AppBaseTheme">
|
||||
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
||||
</style>
|
||||
<style name="StandardButton">
|
||||
<item name="android:background">@color/oc_primary</item>
|
||||
<item name="android:layout_marginTop">15dp</item>
|
||||
<item name="android:layout_centerHorizontal">true</item>
|
||||
<item name="android:textColor">#ffffff</item>
|
||||
<item name="android:padding">10dp</item>
|
||||
</style>
|
||||
<style name="h1">
|
||||
<item name="android:textColor">@color/oc_primary_dark</item>
|
||||
<item name="android:layout_marginTop">18dp</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceLarge</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user