From ba94657badcc5a05214a057fa938124bdf1ad47a Mon Sep 17 00:00:00 2001 From: cyBerta Date: Wed, 4 Jul 2018 23:42:45 +0200 Subject: #8886 add layout for tablets and improve tablet and phone layouts in general by implementing dynamic layout changes when keyboard appears --- .../res/layout-sw600dp-port/a_add_provider.xml | 46 +++++++++++ .../layout-sw600dp-port/a_provider_credentials.xml | 57 +------------- .../res/layout-sw600dp-port/a_provider_detail.xml | 49 +----------- .../res/layout-sw600dp-port/a_provider_list.xml | 38 +-------- app/src/main/res/layout-xlarge/a_add_provider.xml | 46 +++++++++++ .../res/layout-xlarge/a_provider_credentials.xml | 56 +------------ .../main/res/layout-xlarge/a_provider_detail.xml | 49 +----------- app/src/main/res/layout-xlarge/a_provider_list.xml | 38 +-------- .../main/res/layout-xlarge/v_provider_header.xml | 13 +++- app/src/main/res/layout/a_add_provider.xml | 65 +++++++++------- .../layout/a_add_provider_tablet_scrollview.xml | 91 ++++++++++++++++++++++ app/src/main/res/layout/a_provider_credentials.xml | 4 +- ...a_provider_credentials_tablet_linear_layout.xml | 57 ++++++++++++++ app/src/main/res/layout/a_provider_detail.xml | 4 +- .../a_provider_detail_tablet_linear_layout.xml | 51 ++++++++++++ app/src/main/res/layout/a_provider_list.xml | 5 +- .../a_provider_list_tablet_linear_layout.xml | 40 ++++++++++ app/src/main/res/layout/v_provider_header.xml | 9 ++- app/src/main/res/values-sw600dp/dimens.xml | 4 + app/src/main/res/values-sw600dp/styles.xml | 11 --- app/src/main/res/values-w820dp/dimens.xml | 4 + app/src/main/res/values/dimens.xml | 8 +- 22 files changed, 414 insertions(+), 331 deletions(-) create mode 100644 app/src/main/res/layout-sw600dp-port/a_add_provider.xml create mode 100644 app/src/main/res/layout-xlarge/a_add_provider.xml create mode 100644 app/src/main/res/layout/a_add_provider_tablet_scrollview.xml create mode 100644 app/src/main/res/layout/a_provider_credentials_tablet_linear_layout.xml create mode 100644 app/src/main/res/layout/a_provider_detail_tablet_linear_layout.xml create mode 100644 app/src/main/res/layout/a_provider_list_tablet_linear_layout.xml delete mode 100644 app/src/main/res/values-sw600dp/styles.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout-sw600dp-port/a_add_provider.xml b/app/src/main/res/layout-sw600dp-port/a_add_provider.xml new file mode 100644 index 00000000..6f43778b --- /dev/null +++ b/app/src/main/res/layout-sw600dp-port/a_add_provider.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-sw600dp-port/a_provider_credentials.xml b/app/src/main/res/layout-sw600dp-port/a_provider_credentials.xml index 1d689db6..0aae8ede 100644 --- a/app/src/main/res/layout-sw600dp-port/a_provider_credentials.xml +++ b/app/src/main/res/layout-sw600dp-port/a_provider_credentials.xml @@ -42,60 +42,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.725" /> - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/app/src/main/res/layout-sw600dp-port/a_provider_detail.xml b/app/src/main/res/layout-sw600dp-port/a_provider_detail.xml index 6d7c97ae..67ac1cfd 100644 --- a/app/src/main/res/layout-sw600dp-port/a_provider_detail.xml +++ b/app/src/main/res/layout-sw600dp-port/a_provider_detail.xml @@ -43,52 +43,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.725" /> - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/app/src/main/res/layout-sw600dp-port/a_provider_list.xml b/app/src/main/res/layout-sw600dp-port/a_provider_list.xml index 818ce864..fbfba403 100644 --- a/app/src/main/res/layout-sw600dp-port/a_provider_list.xml +++ b/app/src/main/res/layout-sw600dp-port/a_provider_list.xml @@ -43,41 +43,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.725" /> - - - - - - - - - - - - + diff --git a/app/src/main/res/layout-xlarge/a_add_provider.xml b/app/src/main/res/layout-xlarge/a_add_provider.xml new file mode 100644 index 00000000..1bca612e --- /dev/null +++ b/app/src/main/res/layout-xlarge/a_add_provider.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout-xlarge/a_provider_credentials.xml b/app/src/main/res/layout-xlarge/a_provider_credentials.xml index 79045082..f55f142c 100644 --- a/app/src/main/res/layout-xlarge/a_provider_credentials.xml +++ b/app/src/main/res/layout-xlarge/a_provider_credentials.xml @@ -42,59 +42,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.85" /> - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/app/src/main/res/layout-xlarge/a_provider_detail.xml b/app/src/main/res/layout-xlarge/a_provider_detail.xml index c1eeb0e0..ea677786 100644 --- a/app/src/main/res/layout-xlarge/a_provider_detail.xml +++ b/app/src/main/res/layout-xlarge/a_provider_detail.xml @@ -43,52 +43,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.85" /> - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/app/src/main/res/layout-xlarge/a_provider_list.xml b/app/src/main/res/layout-xlarge/a_provider_list.xml index 9150466a..4e666a90 100644 --- a/app/src/main/res/layout-xlarge/a_provider_list.xml +++ b/app/src/main/res/layout-xlarge/a_provider_list.xml @@ -43,41 +43,5 @@ android:orientation="horizontal" app:layout_constraintGuide_percent="0.85" /> - - - - - - - - - - - - + diff --git a/app/src/main/res/layout-xlarge/v_provider_header.xml b/app/src/main/res/layout-xlarge/v_provider_header.xml index 45f8302b..6c06111a 100644 --- a/app/src/main/res/layout-xlarge/v_provider_header.xml +++ b/app/src/main/res/layout-xlarge/v_provider_header.xml @@ -1,11 +1,13 @@ - @@ -14,9 +16,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:text="" + android:ellipsize="end" + android:layout_below="@id/provider_header_logo" + android:gravity="center_vertical" android:textAppearance="@style/Base.TextAppearance.AppCompat.Headline" android:layout_marginTop="@dimen/standard_margin" android:layout_marginBottom="@dimen/standard_margin" /> - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/layout/a_add_provider.xml b/app/src/main/res/layout/a_add_provider.xml index fd515bf3..7d14ea96 100644 --- a/app/src/main/res/layout/a_add_provider.xml +++ b/app/src/main/res/layout/a_add_provider.xml @@ -4,13 +4,10 @@ xmlns:tools="http://schemas.android.com/tools" style="@style/BitmaskActivity" android:layout_width="match_parent" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:padding="@dimen/stdpadding" tools:context=".AddProviderActivity"> - - - - + - - - - + android:layout_height="wrap_content"> -