widgets_search_bar.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:id="@+id/widgets_search_bar"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:orientation="horizontal"
  8. android:layout_marginTop="24dp"
  9. android:layout_marginHorizontal="@dimen/widget_list_horizontal_margin"
  10. android:background="@drawable/bg_widgets_searchbox">
  11. <com.android.launcher3.ExtendedEditText
  12. android:id="@+id/widgets_search_bar_edit_text"
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:paddingVertical="12dp"
  16. android:paddingStart="12dp"
  17. android:paddingEnd="0dp"
  18. android:drawablePadding="8dp"
  19. android:drawableStart="@drawable/ic_allapps_search"
  20. android:background="@null"
  21. android:hint="@string/widgets_full_sheet_search_bar_hint"
  22. android:maxLines="1"
  23. android:layout_weight="1"
  24. android:inputType="text"
  25. android:imeOptions="actionSearch"
  26. android:textColor="?android:attr/textColorPrimary"
  27. android:textColorHint="?android:attr/textColorSecondary"/>
  28. <ImageButton
  29. android:id="@+id/widgets_search_cancel_button"
  30. android:layout_height="wrap_content"
  31. android:layout_width="wrap_content"
  32. android:padding="12dp"
  33. android:src="@drawable/ic_gm_close_24"
  34. android:background="@drawable/full_rounded_transparent_ripple"
  35. android:layout_gravity="center"
  36. android:contentDescription="@string/widgets_full_sheet_cancel_button_description"
  37. android:visibility="gone"/>
  38. </com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar>