Remove the janky requestFocus/clearFocus called on SearchFragment and replace them with InputMethodManager calls. This is generally more user friendly, especially when returning to search from navigation.
41 lines
1.5 KiB
XML
41 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".recycler.HeaderViewHolder">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="header"
|
|
type="org.oxycblt.auxio.music.Header" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/ui_header_dividers">
|
|
|
|
<TextView
|
|
android:id="@+id/header_title"
|
|
style="@style/Widget.TextView.Header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@{header.name}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Songs" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/header_button"
|
|
style="@style/Widget.Button.Unbounded.Small"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@drawable/ic_clear" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |