fix/style-diabled-button-wizard

This commit is contained in:
Andries Smit 2022-04-12 09:19:24 +02:00
parent b732b3b492
commit 861b477c81
4 changed files with 14 additions and 8 deletions

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/buttonBackground" android:state_enabled="true"/>
<item android:alpha="0.12" android:color="?attr/colorOnSurface"/>
</selector>

View file

@ -320,8 +320,7 @@
<dimen name="gray_material_button_margin_horizontal">5dp</dimen> <dimen name="gray_material_button_margin_horizontal">5dp</dimen>
<style name="GrayButton" parent="Widget.MaterialComponents.Button"> <style name="GrayButton" parent="Widget.MaterialComponents.Button">
<item name="android:backgroundTint">@color/buttonBackground</item> <item name="android:backgroundTint">@color/mtrl_btn_bg_color_selector_grey</item>
<item name="android:textColor">@color/buttonText</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_vertical</item> <item name="android:layout_gravity">center_vertical</item>

View file

@ -332,8 +332,7 @@
<dimen name="gray_material_button_margin_horizontal">5dp</dimen> <dimen name="gray_material_button_margin_horizontal">5dp</dimen>
<style name="GrayButton" parent="Widget.MaterialComponents.Button"> <style name="GrayButton" parent="Widget.MaterialComponents.Button">
<item name="android:backgroundTint">@color/buttonBackground</item> <item name="android:backgroundTint">@color/mtrl_btn_bg_color_selector_grey</item>
<item name="android:textColor">@color/buttonText</item>
<item name="android:layout_width">wrap_content</item> <item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item> <item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_vertical</item> <item name="android:layout_gravity">center_vertical</item>

View file

@ -1,22 +1,25 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal">
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/button_cancel" android:id="@+id/button_cancel"
style="@style/GrayButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="@string/omnipod_common_wizard_button_cancel" /> android:text="@string/omnipod_common_wizard_button_cancel" />
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
style="@style/GrayButton"
android:id="@+id/button_next" android:id="@+id/button_next"
style="@style/GrayButton"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:text="@string/omnipod_common_wizard_button_next" /> android:text="@string/omnipod_common_wizard_button_next"
tools:enabled="false" />
</LinearLayout> </LinearLayout>