|
|
@ -1,7 +1,11 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
<ScrollView 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"> |
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
android:id="@+id/root" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
@ -13,13 +17,13 @@ |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:orientation="vertical" |
|
|
|
app:layout_constraintGuide_percent="0.3" /> |
|
|
|
app:layout_constraintGuide_percent="0.4" /> |
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView |
|
|
|
android:id="@+id/label_layout" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Layout style" |
|
|
|
android:text="@string/layout_style" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/layout_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/layout_toggle" /> |
|
|
@ -65,7 +69,7 @@ |
|
|
|
android:id="@+id/label_col_count" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Column count" |
|
|
|
android:text="@string/column_count" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/col_count_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/col_count_toggle" /> |
|
|
@ -88,21 +92,21 @@ |
|
|
|
style="@style/Widget.App.Button.OutlinedButton.IconOnly" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="2" /> |
|
|
|
android:text="@string/two" /> |
|
|
|
|
|
|
|
<Button |
|
|
|
android:id="@+id/col_count_three" |
|
|
|
style="@style/Widget.App.Button.OutlinedButton.IconOnly" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="3" /> |
|
|
|
android:text="@string/three" /> |
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup> |
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView |
|
|
|
android:id="@+id/label_show_names_toggle" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Show names" |
|
|
|
android:text="@string/show_names" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/show_names_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/show_names_toggle" /> |
|
|
@ -123,7 +127,7 @@ |
|
|
|
android:id="@+id/label_show_avatar_toggle" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Show avatars" |
|
|
|
android:text="@string/show_avatars" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/show_avatar_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/show_avatar_toggle" /> |
|
|
@ -144,7 +148,7 @@ |
|
|
|
android:id="@+id/label_avatar_size" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Avatar size" |
|
|
|
android:text="@string/avatar_size" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/avatar_size_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/avatar_size_toggle" /> |
|
|
@ -188,7 +192,7 @@ |
|
|
|
android:id="@+id/label_corners" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Corners" |
|
|
|
android:text="@string/corners" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/corners_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/corners_toggle" /> |
|
|
@ -225,7 +229,7 @@ |
|
|
|
android:id="@+id/label_gap" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="Show grid gap" |
|
|
|
android:text="@string/show_grid_gap" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/show_gap_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/show_gap_toggle" /> |
|
|
@ -235,13 +239,33 @@ |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:checked="true" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toTopOf="@id/disable_animation_toggle" |
|
|
|
app:layout_constraintStart_toEndOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/corners_toggle" |
|
|
|
app:showText="false" |
|
|
|
app:switchPadding="0dp" |
|
|
|
app:thumbTextPadding="0dp" /> |
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView |
|
|
|
android:id="@+id/label_disable_animation" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:text="@string/disable_animation" |
|
|
|
app:layout_constraintBottom_toBottomOf="@id/disable_animation_toggle" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toTopOf="@id/disable_animation_toggle" /> |
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial |
|
|
|
android:id="@+id/disable_animation_toggle" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:checked="false" |
|
|
|
app:layout_constraintStart_toEndOf="@id/guideline" |
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_gap_toggle" |
|
|
|
app:showText="false" |
|
|
|
app:switchPadding="0dp" |
|
|
|
app:thumbTextPadding="0dp" /> |
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Group |
|
|
|
android:id="@+id/staggered_or_grid_options" |
|
|
|
android:layout_width="wrap_content" |
|
|
@ -250,3 +274,4 @@ |
|
|
|
app:constraint_referenced_ids="label_col_count,col_count_toggle,label_show_avatar_toggle,show_avatar_toggle,label_show_names_toggle,show_names_toggle" |
|
|
|
tools:visibility="visible" /> |
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |
|
|
|
</ScrollView> |