Merge pull request #1611 from Andries-Smit/fix/style-button-omnipod-disabled

Fix style button Omnipod disabled
This commit is contained in:
Milos Kozak 2022-04-12 10:15:18 +02:00 committed by GitHub
commit 1eba22e481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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

View file

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

View file

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