adapter_folder.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content">
  5. <FrameLayout
  6. android:id="@+id/fl_folder"
  7. android:layout_width="wrap_content"
  8. android:layout_height="wrap_content"
  9. android:background="@drawable/folder_bg"
  10. android:layout_margin="10dp"
  11. android:paddingRight="3dp"
  12. android:paddingBottom="3dp">
  13. <ImageView
  14. android:id="@+id/iv_image"
  15. android:layout_width="80dp"
  16. android:layout_height="80dp"
  17. android:background="@android:color/white"
  18. android:scaleType="centerCrop" />
  19. </FrameLayout>
  20. <ImageView
  21. android:id="@+id/iv_select"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_alignParentRight="true"
  25. android:layout_centerVertical="true"
  26. android:layout_marginRight="15dp"
  27. android:src="@drawable/icon_image_select" />
  28. <LinearLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_centerVertical="true"
  32. android:layout_marginLeft="5dp"
  33. android:layout_marginRight="5dp"
  34. android:layout_toLeftOf="@+id/iv_select"
  35. android:layout_toRightOf="@+id/fl_folder"
  36. android:orientation="vertical">
  37. <TextView
  38. android:id="@+id/tv_folder_name"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:singleLine="true"
  42. android:textColor="@android:color/black"
  43. android:textSize="16sp" />
  44. <TextView
  45. android:id="@+id/tv_folder_size"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginTop="3dp"
  49. android:singleLine="true"
  50. android:textColor="@android:color/darker_gray"
  51. android:textSize="14sp" />
  52. </LinearLayout>
  53. <View
  54. android:layout_width="match_parent"
  55. android:layout_height="1px"
  56. android:layout_below="@+id/fl_folder"
  57. android:layout_marginLeft="10dp"
  58. android:layout_marginRight="10dp"
  59. android:background="@android:color/darker_gray" />
  60. </RelativeLayout>