activity_collection.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout 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. <data >
  6. <variable
  7. name="vm"
  8. type="com.quansu.heifengwuliu.vmodel.CollectionVModel" />
  9. </data >
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:background="@color/color_bg"
  14. android:orientation="vertical" >
  15. <com.quansu.heifengwuliu.widget.SearchView
  16. android:id="@+id/search"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. app:vm="@{vm}" />
  20. <FrameLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="match_parent" >
  23. <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
  24. android:id="@+id/refresh_layout"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent" >
  27. <androidx.recyclerview.widget.RecyclerView
  28. android:id="@+id/recycler_view"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:paddingBottom="106dp"
  32. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  33. tools:listitem="@layout/item_collection" />
  34. </androidx.swiperefreshlayout.widget.SwipeRefreshLayout >
  35. <FrameLayout
  36. android:id="@+id/fl_sure"
  37. android:layout_width="match_parent"
  38. android:layout_marginStart="16dp"
  39. android:layout_marginEnd="@dimen/dp_16"
  40. android:layout_gravity="bottom"
  41. android:layout_height="wrap_content">
  42. <ImageView
  43. android:layout_width="match_parent"
  44. android:layout_height="106dp"
  45. android:src="@drawable/ic_details_grab" />
  46. <TextView
  47. android:id="@+id/tv_sure"
  48. android:layout_width="wrap_content"
  49. android:layout_gravity="center"
  50. android:text="添加车辆"
  51. android:textColor="@color/white"
  52. android:textSize="16sp"
  53. android:layout_height="wrap_content">
  54. </TextView>
  55. </FrameLayout>
  56. </FrameLayout >
  57. </LinearLayout >
  58. </layout >