From 8f700cca1a08a958af3cf75530587498f0eabbbc Mon Sep 17 00:00:00 2001 From: xufuji456 <839789740@qq.com> Date: Sun, 26 Sep 2021 23:50:52 +0800 Subject: [PATCH] add selectable background style --- app/src/main/res/drawable/btn.xml | 9 --------- app/src/main/res/drawable/btn_circle.xml | 8 ++++---- app/src/main/res/drawable/btn_point.xml | 8 ++++---- app/src/main/res/drawable/btn_rect.xml | 10 ++++++++++ app/src/main/res/drawable/btn_rect_normal.xml | 13 +++++++++++++ app/src/main/res/drawable/btn_rect_selected.xml | 13 +++++++++++++ app/src/main/res/drawable/white_background.xml | 6 +++--- 7 files changed, 47 insertions(+), 20 deletions(-) delete mode 100644 app/src/main/res/drawable/btn.xml create mode 100644 app/src/main/res/drawable/btn_rect.xml create mode 100644 app/src/main/res/drawable/btn_rect_normal.xml create mode 100644 app/src/main/res/drawable/btn_rect_selected.xml diff --git a/app/src/main/res/drawable/btn.xml b/app/src/main/res/drawable/btn.xml deleted file mode 100644 index d520f55..0000000 --- a/app/src/main/res/drawable/btn.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/btn_circle.xml b/app/src/main/res/drawable/btn_circle.xml index 455fe51..37739e1 100644 --- a/app/src/main/res/drawable/btn_circle.xml +++ b/app/src/main/res/drawable/btn_circle.xml @@ -1,12 +1,12 @@ - + - + + android:color="@color/colorBord" /> + android:width="60dp" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/btn_point.xml b/app/src/main/res/drawable/btn_point.xml index 3f3e022..80a6f3f 100644 --- a/app/src/main/res/drawable/btn_point.xml +++ b/app/src/main/res/drawable/btn_point.xml @@ -1,12 +1,12 @@ - + - + + android:width="40dp" /> + android:startColor="@color/redBtn" /> \ No newline at end of file diff --git a/app/src/main/res/drawable/btn_rect.xml b/app/src/main/res/drawable/btn_rect.xml new file mode 100644 index 0000000..fa23dd3 --- /dev/null +++ b/app/src/main/res/drawable/btn_rect.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/btn_rect_normal.xml b/app/src/main/res/drawable/btn_rect_normal.xml new file mode 100644 index 0000000..0b5df42 --- /dev/null +++ b/app/src/main/res/drawable/btn_rect_normal.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/btn_rect_selected.xml b/app/src/main/res/drawable/btn_rect_selected.xml new file mode 100644 index 0000000..afd7ed4 --- /dev/null +++ b/app/src/main/res/drawable/btn_rect_selected.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/white_background.xml b/app/src/main/res/drawable/white_background.xml index d79bedc..aba4e8a 100644 --- a/app/src/main/res/drawable/white_background.xml +++ b/app/src/main/res/drawable/white_background.xml @@ -1,9 +1,9 @@ - + - + + android:startColor="@android:color/white" /> \ No newline at end of file