[Android] Fix dialogs buttons text size
Geoffrey Métais
git at videolan.org
Thu Feb 7 17:01:18 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 7 15:43:57 2019 +0100| [1535cfb8a0cca0277ab69c1ad18394dc2745fa39] | committer: Geoffrey Métais
Fix dialogs buttons text size
> https://code.videolan.org/videolan/vlc-android/commit/1535cfb8a0cca0277ab69c1ad18394dc2745fa39
---
vlc-android/res/layout/vlc_login_dialog.xml | 2 ++
vlc-android/res/layout/vlc_progress_dialog.xml | 1 +
vlc-android/res/layout/vlc_question_dialog.xml | 3 +++
3 files changed, 6 insertions(+)
diff --git a/vlc-android/res/layout/vlc_login_dialog.xml b/vlc-android/res/layout/vlc_login_dialog.xml
index e63351936..945a59509 100644
--- a/vlc-android/res/layout/vlc_login_dialog.xml
+++ b/vlc-android/res/layout/vlc_login_dialog.xml
@@ -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>
diff --git a/vlc-android/res/layout/vlc_progress_dialog.xml b/vlc-android/res/layout/vlc_progress_dialog.xml
index 649ebd64c..acd5b5e8d 100644
--- a/vlc-android/res/layout/vlc_progress_dialog.xml
+++ b/vlc-android/res/layout/vlc_progress_dialog.xml
@@ -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}"
diff --git a/vlc-android/res/layout/vlc_question_dialog.xml b/vlc-android/res/layout/vlc_question_dialog.xml
index 623145011..772965a48 100644
--- a/vlc-android/res/layout/vlc_question_dialog.xml
+++ b/vlc-android/res/layout/vlc_question_dialog.xml
@@ -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" />
More information about the Android
mailing list