global_search_controller_card.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="wrap_content"
  7. android:orientation="vertical">
  8. <RelativeLayout
  9. android:id="@+id/title_wrapper"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content">
  12. <TextView
  13. android:id="@+id/title"
  14. style="@style/TextAppearance.Regular.SubHeading"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:padding="@dimen/material_component_text_fields_padding_above_and_below_label"
  18. tools:text="Title" />
  19. <ImageView
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_alignParentEnd="true"
  23. android:layout_centerVertical="true"
  24. android:padding="@dimen/material_component_text_fields_padding_above_and_below_label"
  25. app:srcCompat="@drawable/ic_arrow_forward_24dp"
  26. app:tint="?android:attr/textColorPrimary"
  27. tools:ignore="ContentDescription" />
  28. </RelativeLayout>
  29. <androidx.cardview.widget.CardView
  30. android:id="@+id/source_card"
  31. style="@style/Theme.Widget.CardView.Item"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:minHeight="144dp">
  35. <ProgressBar
  36. android:id="@+id/progress"
  37. style="?android:attr/progressBarStyleSmall"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_gravity="center" />
  41. <androidx.recyclerview.widget.RecyclerView
  42. android:id="@+id/recycler"
  43. android:layout_width="match_parent"
  44. android:layout_height="wrap_content"
  45. android:clipToPadding="false"
  46. android:orientation="horizontal"
  47. android:paddingStart="4dp"
  48. android:paddingEnd="4dp"
  49. tools:listitem="@layout/global_search_controller_card_item" />
  50. </androidx.cardview.widget.CardView>
  51. </LinearLayout>