mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-16 23:42:49 +01:00
64b1c9636b
* Add clear text button to track search dialog text input * Track search item adjustments
92 lines
3.7 KiB
XML
92 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:theme="?attr/actionBarTheme"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:menu="@menu/track_search"
|
|
app:navigationIcon="@drawable/ic_close_24dp"
|
|
app:title="@string/add_tracking" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/title_input"
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="12dp"
|
|
android:layout_marginTop="8dp"
|
|
android:hint="@string/title"
|
|
app:endIconMode="clear_text">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/title_input_edit_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:imeOptions="actionSearch"
|
|
android:inputType="text"
|
|
android:maxLines="1" />
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1">
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:indeterminate="true"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
android:visibility="gone"
|
|
tools:text="@string/no_results_found" />
|
|
|
|
<eu.kanade.tachiyomi.widget.AutofitRecyclerView
|
|
android:id="@+id/track_search_recyclerview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:clipToPadding="false"
|
|
android:columnWidth="330dp"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone"
|
|
tools:listitem="@layout/track_search_item"
|
|
tools:visibility="visible" />
|
|
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|