diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-11 11:14:20 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-11 11:14:20 +0200 |
commit | cc024ad84e29b9dac837ef9ee2fc45125f47c463 (patch) | |
tree | 21c90b154c967ab5a868b00056094c07a6751eb9 /app/src/main/res/drawable/cust_button_primary_rect.xml | |
parent | dbef6cf67f3b4b31a806564a04a18a77ab636eb1 (diff) |
add little elevation to custom buttons, change general button shape to custom button shape
Diffstat (limited to 'app/src/main/res/drawable/cust_button_primary_rect.xml')
-rw-r--r-- | app/src/main/res/drawable/cust_button_primary_rect.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/cust_button_primary_rect.xml b/app/src/main/res/drawable/cust_button_primary_rect.xml new file mode 100644 index 00000000..c83d4e62 --- /dev/null +++ b/app/src/main/res/drawable/cust_button_primary_rect.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android" > + <item android:state_pressed="true" > + <shape android:shape="rectangle" > + <corners android:radius="8dp" /> + <padding android:left="8dp" android:right="8dp"/> + <solid android:color="@color/colorPrimaryDark"/> + </shape> + </item> + <item android:state_focused="true"> + <shape android:shape="rectangle" > + <corners android:radius="8dp" /> + <padding android:left="8dp" android:right="8dp"/> + <solid android:color="@color/colorPrimaryDark"/> + </shape> + </item> + <item > + <shape android:shape="rectangle" > + <corners android:radius="8dp" /> + <padding android:left="8dp" android:right="8dp"/> + <solid android:color="@color/colorPrimary"/> + </shape> + </item> +</selector>
\ No newline at end of file |