From 6c8848b803a916c465e3e0415e655360ba35ed5d Mon Sep 17 00:00:00 2001 From: uykek Date: Fri, 12 Jun 2020 15:23:14 +0200 Subject: [PATCH 1/2] Flatten layout hierarchy of the DailySudokuActivity landscape layout --- .../res/layout-land/activity_daily_sudoku.xml | 470 ++++++++---------- 1 file changed, 200 insertions(+), 270 deletions(-) diff --git a/app/src/main/res/layout-land/activity_daily_sudoku.xml b/app/src/main/res/layout-land/activity_daily_sudoku.xml index 41d1d41..cfa5e57 100644 --- a/app/src/main/res/layout-land/activity_daily_sudoku.xml +++ b/app/src/main/res/layout-land/activity_daily_sudoku.xml @@ -1,30 +1,59 @@ - + tools:openDrawer="start" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + xmlns:app="http://schemas.android.com/apk/res-auto"> - + + + + + + + + android:theme="@style/AppTheme.AppBarOverlay" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.0"> - + - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:numStars="4" + android:scaleX="1.5" + android:scaleY="1.5" + app:layout_constraintBottom_toBottomOf="@+id/statistic_image" + app:layout_constraintEnd_toStartOf="@+id/view" + app:layout_constraintStart_toEndOf="@+id/statistic_image" + app:layout_constraintTop_toTopOf="@+id/statistic_image" + app:layout_constraintVertical_bias="0.50" /> - - + - + app:layout_constraintHorizontal_bias="0.25" + app:layout_constraintStart_toStartOf="@id/view" + app:layout_constraintTop_toTopOf="@+id/statistic_image" + app:layout_constraintVertical_bias="0.0" /> - - - - - + app:layout_constraintStart_toEndOf="@+id/textView4" + app:layout_constraintTop_toTopOf="@+id/textView4" /> - + + + + + + + - + + + - + - - - - \ No newline at end of file + \ No newline at end of file From 80fa401666d2b5954ad3308680db4b8fa1a2c503 Mon Sep 17 00:00:00 2001 From: uykek Date: Sat, 13 Jun 2020 15:44:43 +0200 Subject: [PATCH 2/2] Adjust size of view element of DailySudokuActivity's landscape layout to match the regular layout more closely --- .../main/res/layout-land/activity_daily_sudoku.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout-land/activity_daily_sudoku.xml b/app/src/main/res/layout-land/activity_daily_sudoku.xml index cfa5e57..bfd640c 100644 --- a/app/src/main/res/layout-land/activity_daily_sudoku.xml +++ b/app/src/main/res/layout-land/activity_daily_sudoku.xml @@ -31,11 +31,15 @@