From e519e314feb0b5d1ae37651fd27c836c6e5b1e7f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 13 Dec 2021 23:16:47 +0100 Subject: [PATCH] Limit width of content on tablets --- library/ui-styles/src/main/res/values-sw600dp/tablet.xml | 6 ++++++ library/ui-styles/src/main/res/values-sw720dp/tablet.xml | 6 ++++++ library/ui-styles/src/main/res/values/tablet.xml | 6 ++++++ vector/src/main/res/layout/fragment_analytics_optin.xml | 3 ++- 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 library/ui-styles/src/main/res/values-sw600dp/tablet.xml create mode 100644 library/ui-styles/src/main/res/values-sw720dp/tablet.xml create mode 100644 library/ui-styles/src/main/res/values/tablet.xml diff --git a/library/ui-styles/src/main/res/values-sw600dp/tablet.xml b/library/ui-styles/src/main/res/values-sw600dp/tablet.xml new file mode 100644 index 0000000000..39f467cf0d --- /dev/null +++ b/library/ui-styles/src/main/res/values-sw600dp/tablet.xml @@ -0,0 +1,6 @@ + + + + 0.6 + + \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values-sw720dp/tablet.xml b/library/ui-styles/src/main/res/values-sw720dp/tablet.xml new file mode 100644 index 0000000000..4afbe6c773 --- /dev/null +++ b/library/ui-styles/src/main/res/values-sw720dp/tablet.xml @@ -0,0 +1,6 @@ + + + + 0.5 + + \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values/tablet.xml b/library/ui-styles/src/main/res/values/tablet.xml new file mode 100644 index 0000000000..a5df8fe17c --- /dev/null +++ b/library/ui-styles/src/main/res/values/tablet.xml @@ -0,0 +1,6 @@ + + + + 1 + + \ No newline at end of file diff --git a/vector/src/main/res/layout/fragment_analytics_optin.xml b/vector/src/main/res/layout/fragment_analytics_optin.xml index 612747bc11..ab3df32cf9 100644 --- a/vector/src/main/res/layout/fragment_analytics_optin.xml +++ b/vector/src/main/res/layout/fragment_analytics_optin.xml @@ -20,7 +20,8 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintWidth_percent="@dimen/width_percent" />