Commit 1535cfb8 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix dialogs buttons text size

parent 90b183ac
......@@ -79,6 +79,7 @@
android:layout_toStartOf="@+id/action"
android:focusable="true"
android:text="@android:string/cancel"
android:textSize="14sp"
android:onClick="@{handler::onCancel}"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog" />
<Button
......@@ -91,6 +92,7 @@
android:focusable="true"
android:layout_below="@+id/warning"
android:text="@android:string/ok"
android:textSize="14sp"
android:onClick="@{handler::onLogin}"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog" />
</RelativeLayout>
......
......@@ -35,6 +35,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/progress"
android:text="@android:string/cancel"
android:textSize="14sp"
android:layout_alignParentEnd="true"
android:layout_marginEnd="8dp"
android:onClick="@{handler::onCancel}"
......
......@@ -27,6 +27,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/text"
android:text="@{TextUtils.isEmpty(dialog.cancelText) ? @android:string/cancel : dialog.cancelText}"
android:textSize="14sp"
android:layout_toStartOf="@+id/action2"
android:layout_marginStart="@dimen/default_margin"
android:onClick="@{handler::onCancel}"
......@@ -39,6 +40,7 @@
android:layout_toStartOf="@+id/action1"
android:layout_marginStart="@dimen/default_margin"
android:text="@{dialog.action2Text}"
android:textSize="14sp"
android:visibility="@{TextUtils.isEmpty(dialog.action2Text) ? View.GONE : View.VISIBLE}"
android:onClick="@{handler::onAction2}"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog" />
......@@ -51,6 +53,7 @@
android:layout_marginEnd="8dp"
android:layout_below="@+id/text"
android:text="@{dialog.action1Text}"
android:textSize="14sp"
android:visibility="@{TextUtils.isEmpty(dialog.action1Text) ? View.GONE : View.VISIBLE}"
android:onClick="@{handler::onAction1}"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment