change the widget config buttons background

This commit is contained in:
tibbi 2016-01-07 20:07:46 +01:00
parent 186adbb5bb
commit 24d6dfbfac
6 changed files with 24 additions and 3 deletions

View File

@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="@color/dark_grey_pressed"/>
android:color="@color/dark_grey_pressed_mask"/>
</shape>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/config_button_pressed"
android:state_pressed="true"/>
<item
android:drawable="@drawable/config_button_normal"/>
</selector>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="@color/dark_grey"/>
</shape>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="@color/dark_grey_pressed"/>
</shape>

View File

@ -26,10 +26,10 @@
<Button
android:id="@+id/config_save"
style="@android:style/Widget.Holo.Light.Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/config_button"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
android:text="Save"

View File

@ -4,5 +4,6 @@
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF0000</color>
<color name="dark_grey">#88000000</color>
<color name="dark_grey_pressed">#22000000</color>
<color name="dark_grey_pressed">#aa000000</color>
<color name="dark_grey_pressed_mask">#22000000</color>
</resources>