widgets_search_bar.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:background="@drawable/bg_widgets_searchbox">
  10. <com.android.launcher3.ExtendedEditText
  11. android:id="@+id/widgets_search_bar_edit_text"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:paddingVertical="12dp"
  15. android:paddingStart="12dp"
  16. android:paddingEnd="0dp"
  17. android:drawablePadding="8dp"
  18. android:drawableStart="@drawable/ic_allapps_search"
  19. android:background="@null"
  20. android:hint="@string/widgets_full_sheet_search_bar_hint"
  21. android:maxLines="1"
  22. android:layout_weight="1"
  23. android:inputType="text"
  24. android:imeOptions="actionSearch"
  25. android:textColor="?android:attr/textColorPrimary"
  26. android:textColorHint="?android:attr/textColorSecondary"/>
  27. <ImageButton
  28. android:id="@+id/widgets_search_cancel_button"
  29. android:layout_height="wrap_content"
  30. android:layout_width="wrap_content"
  31. android:padding="12dp"
  32. android:src="@drawable/ic_gm_close_24"
  33. android:background="@drawable/full_rounded_transparent_ripple"
  34. android:layout_gravity="center"
  35. android:contentDescription="@string/widgets_full_sheet_cancel_button_description"
  36. android:visibility="gone"/>
  37. </com.android.launcher3.widget.picker.search.LauncherWidgetsSearchBar>