A little bit theming

This commit is contained in:
Przemek Grondek 2014-08-01 14:04:18 +02:00
parent ad9cdc6e3a
commit 739ad4a104
8 changed files with 32 additions and 21 deletions

View file

@ -9,7 +9,8 @@
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:label="@string/app_name" > android:label="@string/app_name"
android:theme="@style/LoginTheme" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -26,13 +27,12 @@
</activity> </activity>
<activity <activity
android:name=".EntriesActivity" android:name=".EntriesActivity"
android:label="@string/title_activity_entries" android:label="@string/title_activity_entries" >
android:theme="@style/EntriesTheme" >
</activity> </activity>
<activity <activity
android:name=".SettingsActivity" android:name=".SettingsActivity"
android:label="@string/title_activity_setting" android:label="@string/title_activity_setting"
android:icon="@drawable/ic_action_settings"> android:theme="@style/SettingsTheme">
</activity> </activity>
</application> </application>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="border">@android:color/tab_indicator_text</color> <color name="border">@android:color/tab_indicator_text</color>
<color name="header_background">@android:color/holo_orange_light</color> <color name="header_background">#ffaa22</color>
<color name="header_login_background">@android:color/holo_blue_dark</color>
<color name="entries_background_color_1">@android:color/background_light</color> <color name="entries_background_color_1">@android:color/background_light</color>
<color name="entries_background_color_2">#ffcccccc</color> <color name="entries_background_color_2">#ffcccccc</color>
</resources> </resources>

View file

@ -1,14 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!--Action Bar styles-->
<!-- Base application theme. --> <style name="DefaultActionBar"
<style name="AppTheme" parent="android:Theme.Holo.Light"> parent="android:Widget.Holo.Light.ActionBar.Solid" >
<!-- Customize your theme here. --> <item name="android:background">@color/header_background</item>
<item name="android:icon">@drawable/ic_revert</item>
</style> </style>
<style name="TableTheme"> <style name="LoginActionBar"
<item name="android:layout_width">1dip</item> parent="DefaultActionBar" >
<item name="android:layout_height">match_parent</item> <item name="android:background">@color/header_login_background</item>
<item name="android:background">@android:color/white</item> <item name="android:icon">@drawable/ic_launcher</item>
</style> </style>
<style name="SettingsActionBar"
parent="DefaultActionBar">
<item name="android:icon">@drawable/ic_action_settings</item>
</style>
</resources> </resources>

View file

@ -1,15 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!--Activites Themes--> <!-- Base application theme. -->
<style name="EntriesTheme" <style name="AppTheme"
parent="android:Theme.Holo.Light"> parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/EntriesActionBar</item> <item name="android:actionBarStyle">@style/DefaultActionBar</item>
</style> </style>
<!--Action Bar styles--> <style name="LoginTheme"
<style name="EntriesActionBar" parent="AppTheme">
parent="android:Widget.Holo.Light.ActionBar.Solid" > <item name="android:actionBarStyle">@style/LoginActionBar</item>
<item name="android:background">@color/header_background</item> </style>
<style name="SettingsTheme"
parent="AppTheme">
<item name="android:actionBarStyle">@style/SettingsActionBar</item>
</style> </style>
</resources> </resources>