pop_modify_header.xml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content">
  6. <androidx.constraintlayout.widget.ConstraintLayout
  7. android:layout_width="match_parent"
  8. android:layout_marginStart="12dp"
  9. android:layout_marginEnd="12dp"
  10. android:layout_height="wrap_content">
  11. <androidx.constraintlayout.widget.ConstraintLayout
  12. android:id="@+id/cl_content"
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:background="@drawable/bg_white_10dp"
  16. app:layout_constraintLeft_toLeftOf="parent"
  17. app:layout_constraintTop_toTopOf="parent">
  18. <TextView
  19. android:id="@+id/tv_title"
  20. android:layout_width="match_parent"
  21. android:layout_height="@dimen/dp_52"
  22. android:gravity="center"
  23. android:text="选择图片"
  24. android:textColor="@color/color_999999"
  25. android:textSize="@dimen/sp_16"
  26. app:layout_constraintLeft_toLeftOf="parent"
  27. app:layout_constraintTop_toTopOf="parent" />
  28. <View
  29. android:id="@+id/view_line1"
  30. android:layout_width="match_parent"
  31. android:layout_height="1dp"
  32. android:background="@color/color_f5f5f5"
  33. app:layout_constraintTop_toBottomOf="@+id/tv_title" />
  34. <TextView
  35. android:id="@+id/tv_camera"
  36. android:layout_width="match_parent"
  37. android:layout_height="@dimen/dp_52"
  38. android:gravity="center"
  39. android:text="拍照"
  40. android:textColor="@color/color_2dc7aa"
  41. android:textSize="@dimen/sp_18"
  42. app:layout_constraintLeft_toLeftOf="parent"
  43. app:layout_constraintTop_toBottomOf="@+id/view_line1" />
  44. <View
  45. android:id="@+id/view_line2"
  46. android:layout_width="match_parent"
  47. android:layout_height="1dp"
  48. android:background="@color/color_f5f5f5"
  49. app:layout_constraintTop_toBottomOf="@+id/tv_camera" />
  50. <TextView
  51. android:id="@+id/tv_album"
  52. android:layout_width="match_parent"
  53. android:layout_height="@dimen/dp_52"
  54. android:gravity="center"
  55. android:text="相册"
  56. android:textColor="@color/color_2dc7aa"
  57. android:textSize="@dimen/sp_18"
  58. app:layout_constraintLeft_toLeftOf="parent"
  59. app:layout_constraintTop_toBottomOf="@+id/view_line2" />
  60. </androidx.constraintlayout.widget.ConstraintLayout>
  61. <androidx.constraintlayout.widget.ConstraintLayout
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:layout_marginTop="10dp"
  65. android:layout_marginBottom="16dp"
  66. android:background="@drawable/bg_white_10dp"
  67. app:layout_constraintBottom_toBottomOf="parent"
  68. app:layout_constraintLeft_toLeftOf="parent"
  69. app:layout_constraintTop_toBottomOf="@+id/cl_content">
  70. <TextView
  71. android:id="@+id/tv_cancel"
  72. android:layout_width="match_parent"
  73. android:layout_height="@dimen/dp_52"
  74. android:gravity="center"
  75. android:text="取消"
  76. android:textColor="@color/black_444"
  77. android:textSize="@dimen/sp_18"
  78. android:textStyle="bold"
  79. app:layout_constraintLeft_toLeftOf="parent"
  80. app:layout_constraintTop_toTopOf="parent" />
  81. </androidx.constraintlayout.widget.ConstraintLayout>
  82. </androidx.constraintlayout.widget.ConstraintLayout>
  83. </RelativeLayout>