diff options
author | Allan Wang <me@allanwang.ca> | 2019-12-29 23:36:38 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-12-29 23:36:38 -0800 |
commit | ba7bb9e04ea8f1cdd738238e274d6612498c4f0c (patch) | |
tree | 99e8566c77781e3af20ecbdca0948ce68602630e /app | |
parent | 3b7d6e0f75d35f4e323dd547f97cb081aed8d44f (diff) | |
download | frost-ba7bb9e04ea8f1cdd738238e274d6612498c4f0c.tar.gz frost-ba7bb9e04ea8f1cdd738238e274d6612498c4f0c.tar.bz2 frost-ba7bb9e04ea8f1cdd738238e274d6612498c4f0c.zip |
Convert tab customizer to ConstraintLayout
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/res/layout/activity_tab_customizer.xml | 72 |
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 |