Use expanded SearchView in Toolbar instead of an menu option

This commit is contained in:
ztimms73
2021-06-21 14:06:08 +03:00
parent 445128f462
commit 0b9013e8b2
4 changed files with 51 additions and 43 deletions

View File

@@ -39,7 +39,19 @@
app:layout_scrollFlags="scroll|enterAlways"
app:titleTextAppearance="@style/TextAppearance.Kotatsu.PersistentToolbarTitle"
app:titleTextColor="?android:colorControlNormal"
tools:title="@string/app_name" />
android:focusableInTouchMode="true"
android:focusable="true"
tools:title="@string/app_name">
<androidx.appcompat.widget.SearchView
android:id="@+id/searchView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:iconifiedByDefault="false"
app:queryHint="@string/search_manga"
android:paddingStart="-12dp"/>
</com.google.android.material.appbar.MaterialToolbar>
</com.google.android.material.card.MaterialCardView>