From a785af38855791850b75c8df1115eb1a11cbc1e1 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 30 Jun 2016 15:24:24 +0200 Subject: [PATCH] scale everything properly for tablets --- app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/values-sw600dp/dimens.xml | 13 +++++++++++++ app/src/main/res/values/dimens.xml | 12 +++++++++--- app/src/main/res/values/styles.xml | 1 + app/src/main/res/xml/widget_info.xml | 4 ++-- 5 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 app/src/main/res/values-sw600dp/dimens.xml diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8165ac666..1d7aba64d 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -25,7 +25,7 @@ android:gravity="center_horizontal" android:paddingBottom="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin" - android:textSize="22sp"/> + android:textSize="@dimen/month_text_size"/> + 12dp + 60dp + + 320dp + 320dp + + 18sp + 24sp + 33sp + 48sp + 22sp + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index c94c4f3be..a7b04b2d2 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,8 +1,14 @@ 16dp - 16sp - 32sp - 18sp 8dp 40dp + + 250dp + 250dp + + 14sp + 16sp + 22sp + 32sp + 18sp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 4a796871a..1ddad1766 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -7,6 +7,7 @@ @style/MyButton @style/MyButton @style/AppTheme.ActionBarStyle + @dimen/normal_text_size