item_template.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical"
  6. android:layout_marginStart="@dimen/margin_ss"
  7. android:layout_marginEnd="@dimen/margin_ss">
  8. <View
  9. android:layout_width="match_parent"
  10. android:layout_height="@dimen/width_stroke"
  11. android:background="@color/green_divider"
  12. android:layout_marginTop="@dimen/margin_s" />
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:orientation="horizontal">
  17. <View
  18. android:layout_width="@dimen/width_stroke"
  19. android:layout_height="match_parent"
  20. android:background="@color/green_divider" />
  21. <FrameLayout
  22. android:id="@+id/rl_template"
  23. android:layout_width="0dp"
  24. android:layout_weight="1"
  25. android:layout_height="wrap_content"
  26. android:background="@color/white"
  27. android:foreground="@drawable/selectable_item_background">
  28. <ImageView
  29. android:id="@+id/iv_template"
  30. android:layout_width="match_parent"
  31. android:layout_height="@dimen/height_cover"
  32. android:src="@mipmap/logo_gray" />
  33. <TextView
  34. android:id="@+id/tv_template"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:paddingStart="@dimen/margin_s"
  38. android:paddingEnd="@dimen/margin_s"
  39. android:paddingTop="@dimen/margin_ss"
  40. android:paddingBottom="@dimen/margin_ss"
  41. android:layout_gravity="bottom"
  42. android:textColor="@color/white"
  43. android:textSize="@dimen/text_normal"
  44. android:background="@color/black_light_transparent"/>
  45. </FrameLayout>
  46. <View
  47. android:layout_width="@dimen/width_stroke"
  48. android:layout_height="match_parent"
  49. android:background="@color/green_divider" />
  50. </LinearLayout>
  51. <View
  52. android:layout_width="match_parent"
  53. android:layout_height="@dimen/width_stroke"
  54. android:background="@color/green_divider" />
  55. </LinearLayout>