2017-04-26 19:24:33 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-10-09 18:24:02 +00:00
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-04-05 19:25:44 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-10-09 18:24:02 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-04-26 19:24:33 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
2020-04-05 19:25:44 +00:00
|
|
|
tools:background="?attr/colorPrimary">
|
2017-04-26 19:24:33 +00:00
|
|
|
|
2021-09-04 17:40:24 +00:00
|
|
|
<org.schabi.newpipe.views.NewPipeEditText
|
2017-04-26 19:24:33 +00:00
|
|
|
android:id="@+id/toolbar_search_edit_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginTop="4dp"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:layout_marginRight="48dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
2020-04-05 19:25:44 +00:00
|
|
|
android:background="@null"
|
2017-04-26 19:24:33 +00:00
|
|
|
android:focusable="true"
|
2017-09-03 06:04:18 +00:00
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:hint="@string/search"
|
2021-03-29 11:44:29 +00:00
|
|
|
android:textColor="?attr/toolbarSearchColor"
|
2017-04-26 19:24:33 +00:00
|
|
|
android:imeOptions="actionSearch|flagNoFullscreen"
|
|
|
|
android:inputType="textFilter|textNoSuggestions"
|
|
|
|
android:maxLines="1"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:nextFocusDown="@+id/suggestions_list"
|
2021-03-29 11:47:46 +00:00
|
|
|
android:theme="@style/ToolbarSearchInputTheme"
|
2020-10-09 18:24:02 +00:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2017-04-26 19:24:33 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/toolbar_search_clear"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_gravity="right|center_vertical"
|
2020-04-05 19:25:44 +00:00
|
|
|
android:contentDescription="@string/clear"
|
2019-02-01 13:02:28 +00:00
|
|
|
android:focusable="true"
|
2019-10-05 20:57:33 +00:00
|
|
|
tools:ignore="RtlHardcoded">
|
2017-04-26 19:24:33 +00:00
|
|
|
|
2017-06-26 12:19:42 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="28dp"
|
|
|
|
android:layout_height="28dp"
|
|
|
|
android:layout_gravity="center"
|
2020-10-09 18:24:02 +00:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" />
|
2017-06-26 12:19:42 +00:00
|
|
|
|
2017-04-26 19:24:33 +00:00
|
|
|
<ImageView
|
2021-03-31 17:17:58 +00:00
|
|
|
android:id="@+id/toolbar_search_clear_icon"
|
2017-04-26 19:24:33 +00:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:contentDescription="@string/search"
|
|
|
|
android:scaleType="fitCenter"
|
2021-03-29 11:44:29 +00:00
|
|
|
app:tint="?attr/toolbarSearchColor"
|
2021-03-27 14:45:49 +00:00
|
|
|
app:srcCompat="@drawable/ic_close"
|
2020-05-14 15:05:09 +00:00
|
|
|
tools:ignore="RtlHardcoded" />
|
2017-04-26 19:24:33 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
2020-05-14 15:05:09 +00:00
|
|
|
</FrameLayout>
|