mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
To corrent, I added 1dp of bottom margin. Not doing this, the framework ignores the dropped shadow due to the elevation when some text is entered in the box, leading to the observed cropping. Fix: 186722040 Test: Manually Change-Id: I746a8f014197552416ed9c40e9736baf22794c5f
43 lines
1.8 KiB
XML
43 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:layout_marginBottom="1dp"
|
|
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> |