1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-06 10:06:23 +00:00
NewPipe/app/src/main/res/layout/toolbar_search_layout.xml

53 lines
1.9 KiB
XML
Raw Normal View History

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"
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"
tools:background="?attr/colorPrimary">
2017-04-26 19:24:33 +00:00
<EditText
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"
android:background="@null"
2017-04-26 19:24:33 +00:00
android:focusable="true"
android:focusableInTouchMode="true"
android:hint="@string/search"
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"
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"
android:contentDescription="@string/clear"
android:focusable="true"
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
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="center"
android:contentDescription="@string/search"
android:scaleType="fitCenter"
app:srcCompat="?attr/ic_close"
tools:ignore="RtlHardcoded" />
2017-04-26 19:24:33 +00:00
</FrameLayout>
</FrameLayout>