From e0d680201a42e7f7f3e2b0f8a232a35dbbab8936 Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 5 Apr 2018 21:50:44 +0200 Subject: [PATCH] Update constraint layout & fix broken layouts --- app/build.gradle | 2 +- app/src/main/res/layout/catalogue_list_item.xml | 2 +- app/src/main/res/layout/chapters_item.xml | 2 +- .../main/res/layout/manga_info_controller.xml | 16 +++++++++++----- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 60cda489d3..9289497de3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -116,7 +116,7 @@ dependencies { implementation "com.android.support:support-annotations:$support_library_version" implementation "com.android.support:customtabs:$support_library_version" - implementation 'com.android.support.constraint:constraint-layout:1.0.2' + implementation 'com.android.support.constraint:constraint-layout:1.1.0-beta6' implementation 'com.android.support:multidex:1.0.2' diff --git a/app/src/main/res/layout/catalogue_list_item.xml b/app/src/main/res/layout/catalogue_list_item.xml index 40f52022fc..b2b43a8260 100644 --- a/app/src/main/res/layout/catalogue_list_item.xml +++ b/app/src/main/res/layout/catalogue_list_item.xml @@ -105,7 +105,7 @@ tools:text="122" tools:visibility="visible" android:layout_marginEnd="8dp" - app:layout_constraintRight_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" android:layout_marginTop="8dp" app:layout_constraintBottom_toBottomOf="parent" diff --git a/app/src/main/res/layout/chapters_item.xml b/app/src/main/res/layout/chapters_item.xml index c62b52da20..9686a1106d 100644 --- a/app/src/main/res/layout/chapters_item.xml +++ b/app/src/main/res/layout/chapters_item.xml @@ -63,7 +63,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" app:srcCompat="@drawable/ic_more_vert_black_24dp" - app:layout_constraintRight_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" android:paddingStart="24dp" android:paddingEnd="16dp" diff --git a/app/src/main/res/layout/manga_info_controller.xml b/app/src/main/res/layout/manga_info_controller.xml index 1a73320737..2df3d60cdf 100644 --- a/app/src/main/res/layout/manga_info_controller.xml +++ b/app/src/main/res/layout/manga_info_controller.xml @@ -259,32 +259,38 @@ + app:layout_constraintVertical_bias="0.0" + app:layout_constraintVertical_chainStyle="packed"> + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:textIsSelectable="false" />