aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/res/layout/activity_tab_customizer.xml72
1 files changed, 42 insertions, 30 deletions
diff --git a/app/src/main/res/layout/activity_tab_customizer.xml b/app/src/main/res/layout/activity_tab_customizer.xml
index 8cf9d903..7f2902de 100644
--- a/app/src/main/res/layout/activity_tab_customizer.xml
+++ b/app/src/main/res/layout/activity_tab_customizer.xml
@@ -1,53 +1,65 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- xmlns:tools="http://schemas.android.com/tools"
tools:ignore="MergeRootFrame">
<View
android:id="@+id/pseudo_toolbar"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="?attr/actionBarSize"
- android:elevation="0dp" />
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/tab_recycler"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ android:elevation="0dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
- <View
- android:id="@+id/divider"
- android:layout_width="match_parent"
- android:layout_height="1dp" />
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/tab_recycler"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ app:layout_constraintHeight_min="200dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/instructions"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="@dimen/kau_padding_normal"
- android:text="@string/tab_customizer_instructions"
- android:textAlignment="center" />
+ <View
+ android:id="@+id/divider"
+ android:layout_width="0dp"
+ android:layout_height="1dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/tab_recycler" />
- </LinearLayout>
+ <TextView
+ android:id="@+id/instructions"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:padding="@dimen/kau_padding_normal"
+ android:text="@string/tab_customizer_instructions"
+ android:textAlignment="center"
+ app:layout_constraintBottom_toTopOf="@id/fab_save"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/divider"
+ app:layout_constraintVertical_bias="0.0" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_gravity="start|bottom"
- android:layout_margin="@dimen/kau_fab_margin" />
+ android:layout_margin="@dimen/kau_fab_margin"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
- android:layout_margin="@dimen/kau_fab_margin" />
+ android:layout_margin="@dimen/kau_fab_margin"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
-</FrameLayout> \ No newline at end of file
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file