global_search_controller_card.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. <TextView
  8. android:id="@+id/title"
  9. style="@style/TextAppearance.Regular.SubHeading"
  10. android:layout_width="0dp"
  11. android:layout_height="0dp"
  12. android:padding="@dimen/material_component_text_fields_padding_above_and_below_label"
  13. app:layout_constraintBottom_toTopOf="@+id/source_card"
  14. app:layout_constraintHeight_default="wrap"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintTop_toTopOf="parent"
  17. tools:text="Title" />
  18. <androidx.cardview.widget.CardView
  19. android:id="@+id/source_card"
  20. style="@style/Theme.Widget.CardView.Item"
  21. android:layout_width="0dp"
  22. android:layout_height="0dp"
  23. android:minHeight="144dp"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintEnd_toEndOf="parent"
  26. app:layout_constraintHeight_default="wrap"
  27. app:layout_constraintStart_toStartOf="parent">
  28. <ProgressBar
  29. android:id="@+id/progress"
  30. style="?android:attr/progressBarStyleSmall"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="center" />
  34. <androidx.recyclerview.widget.RecyclerView
  35. android:id="@+id/recycler"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:clipToPadding="false"
  39. android:orientation="horizontal"
  40. android:paddingStart="4dp"
  41. android:paddingEnd="4dp"
  42. tools:listitem="@layout/global_search_controller_card_item" />
  43. </androidx.cardview.widget.CardView>
  44. </androidx.constraintlayout.widget.ConstraintLayout>