change the widget config buttons background
This commit is contained in:
parent
186adbb5bb
commit
24d6dfbfac
6 changed files with 24 additions and 3 deletions
|
@ -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>
|
||||
|
|
8
app/src/main/res/drawable/config_button.xml
Normal file
8
app/src/main/res/drawable/config_button.xml
Normal 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>
|
6
app/src/main/res/drawable/config_button_normal.xml
Normal file
6
app/src/main/res/drawable/config_button_normal.xml
Normal 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>
|
6
app/src/main/res/drawable/config_button_pressed.xml
Normal file
6
app/src/main/res/drawable/config_button_pressed.xml
Normal 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>
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue