Add ScrollView to list mode dialog
parent
e3048d1eb2
commit
663718ece4
@ -1,70 +1,75 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout
|
<ScrollView
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content">
|
||||||
android:animateLayoutChanges="true"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<org.koitharu.kotatsu.base.ui.widgets.CheckableButtonGroup
|
<LinearLayout
|
||||||
android:id="@+id/checkableGroup"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="16dp"
|
android:animateLayoutChanges="true"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<org.koitharu.kotatsu.base.ui.widgets.CheckableButtonGroup
|
||||||
android:id="@+id/button_list"
|
android:id="@+id/checkableGroup"
|
||||||
style="@style/Widget.Kotatsu.ToggleButton"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/list"
|
android:layout_margin="16dp"
|
||||||
app:icon="@drawable/ic_list" />
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/button_list_detailed"
|
android:id="@+id/button_list"
|
||||||
style="@style/Widget.Kotatsu.ToggleButton"
|
style="@style/Widget.Kotatsu.ToggleButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/list"
|
||||||
|
app:icon="@drawable/ic_list" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_list_detailed"
|
||||||
|
style="@style/Widget.Kotatsu.ToggleButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/detailed_list"
|
||||||
|
app:icon="@drawable/ic_list_detailed" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/button_grid"
|
||||||
|
style="@style/Widget.Kotatsu.ToggleButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/grid"
|
||||||
|
app:icon="@drawable/ic_grid" />
|
||||||
|
|
||||||
|
</org.koitharu.kotatsu.base.ui.widgets.CheckableButtonGroup>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView_grid_title"
|
||||||
|
style="?materialAlertDialogTitleTextStyle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/detailed_list"
|
android:paddingLeft="?attr/dialogPreferredPadding"
|
||||||
app:icon="@drawable/ic_list_detailed" />
|
android:paddingRight="?attr/dialogPreferredPadding"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="@string/grid_size"
|
||||||
|
android:visibility="gone"
|
||||||
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.slider.Slider
|
||||||
android:id="@+id/button_grid"
|
android:id="@+id/slider_grid"
|
||||||
style="@style/Widget.Kotatsu.ToggleButton"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/grid"
|
android:layout_marginHorizontal="16dp"
|
||||||
app:icon="@drawable/ic_grid" />
|
android:stepSize="5"
|
||||||
|
android:valueFrom="50"
|
||||||
</org.koitharu.kotatsu.base.ui.widgets.CheckableButtonGroup>
|
android:valueTo="150"
|
||||||
|
android:visibility="gone"
|
||||||
<TextView
|
app:labelBehavior="floating"
|
||||||
android:id="@+id/textView_grid_title"
|
app:tickVisible="false"
|
||||||
style="?materialAlertDialogTitleTextStyle"
|
tools:value="100"
|
||||||
android:layout_width="match_parent"
|
tools:visibility="visible" />
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="?attr/dialogPreferredPadding"
|
|
||||||
android:paddingRight="?attr/dialogPreferredPadding"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:text="@string/grid_size"
|
|
||||||
android:visibility="gone"
|
|
||||||
tools:visibility="visible" />
|
|
||||||
|
|
||||||
<com.google.android.material.slider.Slider
|
|
||||||
android:id="@+id/slider_grid"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="16dp"
|
|
||||||
android:stepSize="5"
|
|
||||||
android:valueFrom="50"
|
|
||||||
android:valueTo="150"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:labelBehavior="floating"
|
|
||||||
app:tickVisible="false"
|
|
||||||
tools:value="100"
|
|
||||||
tools:visibility="visible" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
Loading…
Reference in New Issue