diff options
author | Allan Wang <me@allanwang.ca> | 2020-01-19 21:00:37 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-01-19 21:00:37 -0800 |
commit | 8c87c5037ba5dea5759f41518e33fbeb33b76ad3 (patch) | |
tree | 9459ee15cf206fbfa224c32f26a3f7ee8b49985a /app/src/main/res | |
parent | 4134ddad6a50498efc77fbad829bea259647c0fc (diff) | |
download | frost-8c87c5037ba5dea5759f41518e33fbeb33b76ad3.tar.gz frost-8c87c5037ba5dea5759f41518e33fbeb33b76ad3.tar.bz2 frost-8c87c5037ba5dea5759f41518e33fbeb33b76ad3.zip |
Use textview instead for flat background
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/activity_intro.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/layout/intro_theme.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/app/src/main/res/layout/activity_intro.xml b/app/src/main/res/layout/activity_intro.xml index e61a618d..3f9dfa1a 100644 --- a/app/src/main/res/layout/activity_intro.xml +++ b/app/src/main/res/layout/activity_intro.xml @@ -30,7 +30,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - <Button + <TextView android:id="@+id/intro_skip" style="@style/IntroBarButton" android:layout_width="wrap_content" diff --git a/app/src/main/res/layout/intro_theme.xml b/app/src/main/res/layout/intro_theme.xml index cd0538dd..0a9d5f63 100644 --- a/app/src/main/res/layout/intro_theme.xml +++ b/app/src/main/res/layout/intro_theme.xml @@ -18,7 +18,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - <Button + <TextView android:id="@+id/intro_theme_light" style="@style/IntroButton" android:layout_width="wrap_content" @@ -32,7 +32,7 @@ app:layout_constraintVertical_bias="0.33" tools:layout_editor_absoluteX="112dp" /> - <Button + <TextView android:id="@+id/intro_theme_dark" style="@style/IntroButton" android:layout_width="wrap_content" @@ -46,7 +46,7 @@ app:layout_constraintVertical_bias="0.33" tools:layout_editor_absoluteX="112dp" /> - <Button + <TextView android:id="@+id/intro_theme_amoled" style="@style/IntroButton" android:layout_width="wrap_content" @@ -60,7 +60,7 @@ app:layout_constraintVertical_bias="0.66" tools:layout_editor_absoluteX="112dp" /> - <Button + <TextView android:id="@+id/intro_theme_glass" style="@style/IntroButton" android:layout_width="wrap_content" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 4775a892..b94f754f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -74,6 +74,7 @@ <style name="IntroBarButton" parent="Widget.AppCompat.Button.Borderless"> <item name="android:elevation">0dp</item> <item name="android:minWidth">100dp</item> + <item name="android:background">?selectableItemBackground</item> <item name="android:layout_marginStart">@dimen/kau_padding_small</item> <item name="android:layout_marginEnd">@dimen/kau_padding_small</item> </style> @@ -94,7 +95,7 @@ <style name="IntroButton" parent="TextAppearance.AppCompat.Button"> <item name="android:elevation">0dp</item> - <item name="android:background">?android:selectableItemBackgroundBorderless</item> + <item name="android:background">?selectableItemBackgroundBorderless</item> <item name="android:padding">@dimen/kau_padding_large</item> </style> |