mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
- Mirror search icon in RTL (b/184162989) - Fix spacing between edit text and cancel button, to make it consistent with space between search icon and edit text. (b/183602001) - Scroll to top on every search result. (b/183602001) - Fix keyboard overlap on orientation change. This is fixed by clearing text on edit text differently (b/184048899) Test: Manually tested Bug: 184162989 Bug: 183602001 Bug: 184048899 Change-Id: I72ed51e1968a55a3105bd8b389d1bbd74d50d8af
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/widgets_search_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="16dp"
|
|
android:background="@drawable/bg_widgets_searchbox"
|
|
android:elevation="2dp">
|
|
|
|
<com.android.launcher3.ExtendedEditText
|
|
android:id="@+id/widgets_search_bar_edit_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="12dp"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="0dp"
|
|
android:drawablePadding="8dp"
|
|
android:drawableStart="@drawable/ic_allapps_search"
|
|
android:background="@null"
|
|
android:hint="@string/widgets_full_sheet_search_bar_hint"
|
|
android:maxLines="1"
|
|
android:layout_weight="1"
|
|
android:inputType="text"
|
|
android:imeOptions="actionSearch"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textColorHint="?android:attr/textColorTertiary"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/widgets_search_cancel_button"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:paddingVertical="12dp"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="12dp"
|
|
android:src="@drawable/ic_gm_close_24"
|
|
android:background="?android:selectableItemBackground"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/widgets_full_sheet_cancel_button_description"
|
|
android:visibility="gone"/>
|
|
</com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar> |