title_search.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/layout_navigationBar"
  4. android:layout_width="match_parent"
  5. android:layout_height="?attr/actionBarSize">
  6. <ImageView
  7. android:id="@+id/title_img_back"
  8. android:layout_width="wrap_content"
  9. android:layout_height="match_parent"
  10. android:layout_centerVertical="true"
  11. android:gravity="center_vertical"
  12. android:minWidth="?attr/actionBarSize"
  13. android:scaleType="centerInside"
  14. android:tint="@color/text33"
  15. android:src="@drawable/arrow_back_ios_new_24" />
  16. <androidx.appcompat.widget.AppCompatAutoCompleteTextView
  17. android:id="@+id/title_search_input"
  18. android:layout_width="match_parent"
  19. android:layout_height="30dp"
  20. android:layout_centerVertical="true"
  21. android:layout_toEndOf="@+id/title_img_back"
  22. android:layout_toStartOf="@+id/title_search_commit"
  23. android:background="@drawable/shape_f5_solid_rectangle_15"
  24. android:drawablePadding="4dp"
  25. android:drawableStart="@drawable/index_search"
  26. android:gravity="center|start"
  27. android:imeOptions="actionSearch"
  28. android:maxLength="40"
  29. android:singleLine="true"
  30. android:hint="搜索游戏、礼包、福利"
  31. android:paddingEnd="6dp"
  32. android:paddingStart="6dp"
  33. android:textColor="#ff666666"
  34. android:textSize="14sp" />
  35. <TextView
  36. android:id="@+id/title_search_commit"
  37. android:layout_width="50dp"
  38. android:layout_height="?attr/actionBarSize"
  39. android:layout_alignParentEnd="true"
  40. android:gravity="center"
  41. android:text="搜索"
  42. android:textColor="#ff2ebef2"
  43. android:textSize="14sp" />
  44. <include
  45. layout="@layout/title_bottom_line"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_alignParentBottom="true" />
  49. </RelativeLayout>