mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
SearchBarController - Use Extended Edit Text to handle close keyboard action well. - On press enter while search remove focus from bar and hide keyboard. - On cancel button press hide keyboard and also reset search targets to empty so that on next search session the previous results dont flash (show for a short time before reflecting users query). WidgetsFullSheet - Make sure expanded header are reset when user leaves personal/work recycler views. Search recycler view resets its expanded header on every search already. - Show 'no search results' view if no search result present. - Update WidgetListBaseRowEntryComparator to show personal profile widgets first. Test: Tested prototype locally. Bug: b/157286785 Change-Id: Ibaa208c4091783e14ac0887caf559e867185df5a
32 lines
1.3 KiB
XML
32 lines
1.3 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:padding="12dp">
|
|
|
|
<com.android.launcher3.ExtendedEditText
|
|
android:id="@+id/widgets_search_bar_edit_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/widgets_search_cancel_button"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
android:src="@drawable/ic_gm_close_24"
|
|
android:background="?android:selectableItemBackground"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"/>
|
|
</com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar> |