user_profile_gender_layout.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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="match_parent"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:background="@color/color_background"
  7. android:orientation="vertical">
  8. <android.support.design.widget.AppBarLayout
  9. android:id="@+id/app_bar_layout"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. android:theme="@style/AppTheme.AppBarOverlay"
  13. app:elevation="0dp">
  14. <android.support.v7.widget.Toolbar
  15. android:id="@+id/toolbar"
  16. android:layout_width="match_parent"
  17. android:layout_height="?attr/actionBarSize"
  18. android:background="?attr/colorPrimary"
  19. app:titleTextAppearance="@style/Toolbar.TitleText">
  20. <include layout="@layout/nim_action_bar_right_clickable_tv" />
  21. </android.support.v7.widget.Toolbar>
  22. </android.support.design.widget.AppBarLayout>
  23. <View
  24. android:layout_width="match_parent"
  25. android:layout_height="2px"
  26. android:layout_below="@+id/attribute"
  27. android:layout_marginTop="10dp"
  28. android:background="@color/color_split_line_d9d9d9" />
  29. <RelativeLayout
  30. android:id="@+id/male_layout"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:background="@color/white"
  34. android:paddingBottom="17dp"
  35. android:paddingTop="17dp">
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginLeft="15dp"
  40. android:text="@string/male"
  41. android:textColor="@color/color_black_333333"
  42. android:textSize="@dimen/text_size_17" />
  43. <ImageView
  44. android:id="@+id/male_check"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_alignParentRight="true"
  48. android:layout_marginRight="15dp"
  49. android:background="@drawable/nim_contact_checkbox_checked_green" />
  50. </RelativeLayout>
  51. <View
  52. android:layout_width="match_parent"
  53. android:layout_height="2px"
  54. android:layout_below="@+id/attribute"
  55. android:background="@color/color_split_line_d9d9d9" />
  56. <RelativeLayout
  57. android:id="@+id/female_layout"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:background="@color/white"
  61. android:paddingBottom="17dp"
  62. android:paddingTop="17dp">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_marginLeft="15dp"
  67. android:text="@string/female"
  68. android:textColor="@color/color_black_333333"
  69. android:textSize="@dimen/text_size_17" />
  70. <ImageView
  71. android:id="@+id/female_check"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_alignParentRight="true"
  75. android:layout_marginRight="15dp"
  76. android:background="@drawable/nim_checkbox_not_checked" />
  77. </RelativeLayout>
  78. <View
  79. android:layout_width="match_parent"
  80. android:layout_height="2px"
  81. android:layout_below="@+id/attribute"
  82. android:background="@color/color_split_line_d9d9d9" />
  83. <RelativeLayout
  84. android:id="@+id/other_layout"
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:background="@color/white"
  88. android:paddingBottom="17dp"
  89. android:paddingTop="17dp">
  90. <TextView
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_marginLeft="15dp"
  94. android:text="@string/other"
  95. android:textColor="@color/color_black_333333"
  96. android:textSize="@dimen/text_size_17" />
  97. <ImageView
  98. android:id="@+id/other_check"
  99. android:layout_width="wrap_content"
  100. android:layout_height="wrap_content"
  101. android:layout_alignParentRight="true"
  102. android:layout_marginRight="15dp"
  103. android:background="@drawable/nim_checkbox_not_checked" />
  104. </RelativeLayout>
  105. <View
  106. android:layout_width="match_parent"
  107. android:layout_height="2px"
  108. android:layout_below="@+id/attribute"
  109. android:background="@color/color_split_line_d9d9d9" />
  110. </LinearLayout>