mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 16:18:55 +01:00 
			
		
		
		
	Migrate source filter sheet to Compose (#9135)
This commit is contained in:
		@@ -1,24 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="?attr/listPreferredItemHeightSmall"
 | 
			
		||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
			
		||||
    android:background="?attr/selectableItemBackground"
 | 
			
		||||
    android:focusable="true"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <CheckBox
 | 
			
		||||
        android:id="@+id/nav_view_item"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:background="@android:color/transparent"
 | 
			
		||||
        android:clickable="false"
 | 
			
		||||
        android:gravity="center_vertical|start"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:paddingHorizontal="16dp"
 | 
			
		||||
        android:textAppearance="?attr/textAppearanceBodyMedium"
 | 
			
		||||
        tools:text="Title" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,22 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="?attr/listPreferredItemHeightSmall"
 | 
			
		||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
			
		||||
    android:background="?attr/selectableItemBackground"
 | 
			
		||||
    android:focusable="true"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <CheckedTextView
 | 
			
		||||
        android:id="@+id/nav_view_item"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:drawablePadding="16dp"
 | 
			
		||||
        android:gravity="center_vertical|start"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:textAppearance="?attr/textAppearanceBodyMedium"
 | 
			
		||||
        tools:text="Title" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,29 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout 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="?attr/listPreferredItemHeightSmall"
 | 
			
		||||
    android:gravity="center_vertical"
 | 
			
		||||
    android:orientation="horizontal"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/title"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:ellipsize="end"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:textAppearance="@style/TextAppearance.Tachiyomi.SectionHeader"
 | 
			
		||||
        tools:text="Header" />
 | 
			
		||||
 | 
			
		||||
    <ImageView
 | 
			
		||||
        android:id="@+id/expand_icon"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        app:tint="?attr/colorOnBackground"
 | 
			
		||||
        tools:ignore="ContentDescription" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,22 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="?attr/listPreferredItemHeightSmall"
 | 
			
		||||
    android:background="?attr/selectableItemBackground"
 | 
			
		||||
    android:focusable="true"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <RadioButton
 | 
			
		||||
        android:id="@+id/nav_view_item"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:background="@android:color/transparent"
 | 
			
		||||
        android:clickable="false"
 | 
			
		||||
        android:gravity="center_vertical|start"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:paddingHorizontal="16dp"
 | 
			
		||||
        android:textAppearance="?attr/textAppearanceBodyMedium" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,33 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="?attr/listPreferredItemHeightSmall"
 | 
			
		||||
    android:background="?attr/selectableItemBackground"
 | 
			
		||||
    android:focusable="true"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/nav_view_item_text"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_gravity="center"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:ellipsize="end"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:paddingEnd="8dp"
 | 
			
		||||
        android:textAppearance="?attr/textAppearanceBodyMedium"
 | 
			
		||||
        android:textColor="?android:attr/textColorSecondary"
 | 
			
		||||
        tools:text="Filter:" />
 | 
			
		||||
 | 
			
		||||
    <Spinner
 | 
			
		||||
        android:id="@+id/nav_view_item"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:gravity="center_vertical|start"
 | 
			
		||||
        android:maxLines="1"
 | 
			
		||||
        android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,30 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="wrap_content"
 | 
			
		||||
    android:background="?attr/selectableItemBackground"
 | 
			
		||||
    android:baselineAligned="false"
 | 
			
		||||
    android:focusable="true"
 | 
			
		||||
    android:paddingStart="?attr/listPreferredItemPaddingStart"
 | 
			
		||||
    android:paddingEnd="?attr/listPreferredItemPaddingEnd">
 | 
			
		||||
 | 
			
		||||
    <com.google.android.material.textfield.TextInputLayout
 | 
			
		||||
        android:id="@+id/nav_view_item_wrapper"
 | 
			
		||||
        style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense"
 | 
			
		||||
        android:layout_width="0dp"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:gravity="center_vertical|start">
 | 
			
		||||
 | 
			
		||||
        <eu.kanade.tachiyomi.widget.TachiyomiTextInputEditText
 | 
			
		||||
            android:id="@+id/nav_view_item"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:imeOptions="actionDone"
 | 
			
		||||
            android:inputType="text"
 | 
			
		||||
            android:maxLines="1"
 | 
			
		||||
            android:textAppearance="?attr/textAppearanceBodyMedium" />
 | 
			
		||||
 | 
			
		||||
    </com.google.android.material.textfield.TextInputLayout>
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
@@ -1,47 +0,0 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout 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_height="match_parent"
 | 
			
		||||
    android:orientation="vertical">
 | 
			
		||||
 | 
			
		||||
    <androidx.constraintlayout.widget.ConstraintLayout
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="?attr/actionBarSize"
 | 
			
		||||
        android:background="@drawable/transparent_tabs_background"
 | 
			
		||||
        android:elevation="2dp"
 | 
			
		||||
        android:gravity="center"
 | 
			
		||||
        android:paddingHorizontal="?attr/listPreferredItemPaddingStart">
 | 
			
		||||
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/reset_btn"
 | 
			
		||||
            style="?attr/borderlessButtonStyle"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:text="@string/action_reset"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="parent"
 | 
			
		||||
            app:layout_constraintStart_toStartOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toTopOf="parent" />
 | 
			
		||||
 | 
			
		||||
        <Button
 | 
			
		||||
            android:id="@+id/filter_btn"
 | 
			
		||||
            android:layout_width="wrap_content"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:layout_weight="1"
 | 
			
		||||
            android:text="@string/action_filter"
 | 
			
		||||
            app:layout_constraintBottom_toBottomOf="parent"
 | 
			
		||||
            app:layout_constraintEnd_toEndOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toTopOf="parent" />
 | 
			
		||||
 | 
			
		||||
    </androidx.constraintlayout.widget.ConstraintLayout>
 | 
			
		||||
 | 
			
		||||
    <FrameLayout
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="0dp"
 | 
			
		||||
        android:layout_gravity="top"
 | 
			
		||||
        android:layout_weight="1"
 | 
			
		||||
        android:clipChildren="false"
 | 
			
		||||
        android:clipToPadding="false"
 | 
			
		||||
        android:paddingBottom="8dp" />
 | 
			
		||||
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
		Reference in New Issue
	
	Block a user