A little bit theming
This commit is contained in:
parent
ad9cdc6e3a
commit
739ad4a104
8 changed files with 32 additions and 21 deletions
|
@ -9,7 +9,8 @@
|
|||
android:theme="@style/AppTheme" >
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name" >
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/LoginTheme" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
|
@ -26,13 +27,12 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".EntriesActivity"
|
||||
android:label="@string/title_activity_entries"
|
||||
android:theme="@style/EntriesTheme" >
|
||||
android:label="@string/title_activity_entries" >
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".SettingsActivity"
|
||||
android:label="@string/title_activity_setting"
|
||||
android:icon="@drawable/ic_action_settings">
|
||||
android:theme="@style/SettingsTheme">
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
|
|
BIN
app/src/main/res/drawable-hdpi/ic_revert.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_revert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_revert.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_revert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 666 B |
BIN
app/src/main/res/drawable-xhdpi/ic_revert.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_revert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_revert.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_revert.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -1,7 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<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_2">#ffcccccc</color>
|
||||
</resources>
|
|
@ -1,14 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="android:Theme.Holo.Light">
|
||||
<!-- Customize your theme here. -->
|
||||
<!--Action Bar styles-->
|
||||
<style name="DefaultActionBar"
|
||||
parent="android:Widget.Holo.Light.ActionBar.Solid" >
|
||||
<item name="android:background">@color/header_background</item>
|
||||
<item name="android:icon">@drawable/ic_revert</item>
|
||||
</style>
|
||||
|
||||
<style name="TableTheme">
|
||||
<item name="android:layout_width">1dip</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:background">@android:color/white</item>
|
||||
<style name="LoginActionBar"
|
||||
parent="DefaultActionBar" >
|
||||
<item name="android:background">@color/header_login_background</item>
|
||||
<item name="android:icon">@drawable/ic_launcher</item>
|
||||
</style>
|
||||
|
||||
<style name="SettingsActionBar"
|
||||
parent="DefaultActionBar">
|
||||
<item name="android:icon">@drawable/ic_action_settings</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!--Activites Themes-->
|
||||
<style name="EntriesTheme"
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme"
|
||||
parent="android:Theme.Holo.Light">
|
||||
<item name="android:actionBarStyle">@style/EntriesActionBar</item>
|
||||
<item name="android:actionBarStyle">@style/DefaultActionBar</item>
|
||||
</style>
|
||||
|
||||
<!--Action Bar styles-->
|
||||
<style name="EntriesActionBar"
|
||||
parent="android:Widget.Holo.Light.ActionBar.Solid" >
|
||||
<item name="android:background">@color/header_background</item>
|
||||
<style name="LoginTheme"
|
||||
parent="AppTheme">
|
||||
<item name="android:actionBarStyle">@style/LoginActionBar</item>
|
||||
</style>
|
||||
|
||||
<style name="SettingsTheme"
|
||||
parent="AppTheme">
|
||||
<item name="android:actionBarStyle">@style/SettingsActionBar</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Reference in a new issue