|
@@ -1,54 +1,88 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
- xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
|
|
+<com.google.android.material.dockedtoolbar.DockedToolbarLayout
|
|
|
|
|
+ xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
|
- android:paddingHorizontal="8dp"
|
|
|
|
|
- android:paddingVertical="8dp"
|
|
|
|
|
- tools:ignore="RtlHardcoded">
|
|
|
|
|
-
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
|
|
- android:id="@+id/cb_selected_all"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:layout_marginStart="4dp"
|
|
|
|
|
- android:text="@string/select_all" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_revert_selection"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.TonalButton"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
|
+ android:layout_gravity="bottom">
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:minWidth="0dp"
|
|
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
|
|
- android:text="@string/revert_selection" />
|
|
|
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_count"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:textColor="?attr/colorSecondary"
|
|
|
|
|
+ android:textSize="18sp"
|
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_count_all"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:textSize="12sp"
|
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
|
|
- <com.google.android.material.button.MaterialSplitButton
|
|
|
|
|
- android:id="@+id/btn_split"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:layout_weight="1"/>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
<com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/btn_select_action_main"
|
|
|
|
|
- style="?attr/materialSplitButtonLeadingFilledStyle"
|
|
|
|
|
|
|
+ android:id="@+id/cb_selected_all"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:minWidth="0dp"
|
|
android:minWidth="0dp"
|
|
|
- android:text="@string/app_name"
|
|
|
|
|
- android:visibility="visible" />
|
|
|
|
|
|
|
+ android:checkable="true"
|
|
|
|
|
+ android:focusable="true"
|
|
|
|
|
+ app:icon="@drawable/ic_select_all"
|
|
|
|
|
+ style="@style/Widget.Material3Expressive.Button.IconButton.Outlined" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
<com.google.android.material.button.MaterialButton
|
|
|
- android:id="@+id/iv_menu_more"
|
|
|
|
|
- style="?attr/materialSplitButtonIconFilledStyle"
|
|
|
|
|
|
|
+ android:id="@+id/btn_revert_selection"
|
|
|
|
|
+ style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ app:icon="@drawable/ic_select_invert"
|
|
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialSplitButton
|
|
|
|
|
+ android:id="@+id/btn_split"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:contentDescription="@string/more_menu"
|
|
|
|
|
- app:icon="@drawable/m3_split_button_chevron_avd"/>
|
|
|
|
|
|
|
+ android:paddingVertical="0dp">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/btn_select_action_main"
|
|
|
|
|
+ style="?attr/materialSplitButtonLeadingFilledStyle"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:minWidth="0dp"
|
|
|
|
|
+ android:text="@string/app_name"
|
|
|
|
|
+ android:visibility="visible" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/iv_menu_more"
|
|
|
|
|
+ style="?attr/materialSplitButtonIconFilledStyle"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:contentDescription="@string/more_menu"
|
|
|
|
|
+ app:icon="@drawable/m3_split_button_chevron_avd"/>
|
|
|
|
|
+
|
|
|
|
|
+ </com.google.android.material.button.MaterialSplitButton>
|
|
|
|
|
|
|
|
- </com.google.android.material.button.MaterialSplitButton>
|
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
|
|
-</LinearLayout>
|
|
|
|
|
|
|
+</com.google.android.material.dockedtoolbar.DockedToolbarLayout>
|