mine_settings_privacy_activity.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/grey_light_light">
  8. <android.support.design.widget.AppBarLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <com.sheishuo.app.common.views.BaseToolbar
  12. android:id="@+id/toolbar"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/action_bar_height"
  15. android:title="隐私"
  16. app:left_text="返回"/>
  17. </android.support.design.widget.AppBarLayout>
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:padding="16dp"
  22. android:orientation="horizontal"
  23. android:background="@color/white">
  24. <TextView
  25. android:layout_weight="7"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="加我为好友需要验证"/>
  29. <Switch
  30. android:id="@+id/settings_privacy_layout_add_friends_switch"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content" />
  33. </LinearLayout>
  34. <View
  35. android:layout_width="match_parent"
  36. android:layout_height="1dp"
  37. android:background="@color/grey_light"/>
  38. <LinearLayout
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:padding="16dp"
  42. android:orientation="horizontal"
  43. android:background="@color/white"
  44. android:layout_marginTop="8dp">
  45. <TextView
  46. android:layout_weight="7"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:text="通过手机号找到我"/>
  50. <Switch
  51. android:id="@+id/settings_privacy_layout_find_by_mobile_switch"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content" />
  54. </LinearLayout>
  55. <View
  56. android:layout_width="match_parent"
  57. android:layout_height="1dp"
  58. android:background="@color/grey_light"/>
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:padding="16dp"
  63. android:orientation="horizontal"
  64. android:background="@color/white">
  65. <TextView
  66. android:layout_weight="7"
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="通过谁说号找到我"/>
  70. <Switch
  71. android:id="@+id/settings_privacy_layout_find_by_sheishuo_switch"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content" />
  74. </LinearLayout>
  75. <View
  76. android:layout_width="match_parent"
  77. android:layout_height="1dp"
  78. android:background="@color/grey_light"/>
  79. <LinearLayout
  80. android:layout_width="match_parent"
  81. android:layout_height="wrap_content"
  82. android:padding="16dp"
  83. android:orientation="horizontal"
  84. android:background="@color/white">
  85. <TextView
  86. android:layout_weight="7"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:text="通过用户名找到我"/>
  90. <Switch
  91. android:id="@+id/settings_privacy_layout_find_by_username_switch"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content" />
  94. </LinearLayout>
  95. <View
  96. android:layout_width="match_parent"
  97. android:layout_height="1dp"
  98. android:background="@color/grey_light"/>
  99. <LinearLayout
  100. android:layout_width="match_parent"
  101. android:layout_height="wrap_content"
  102. android:padding="16dp"
  103. android:orientation="horizontal"
  104. android:background="@color/white"
  105. android:layout_marginTop="8dp">
  106. <TextView
  107. android:layout_weight="7"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:text="允许陌生人查看我的10条动态"/>
  111. <Switch
  112. android:id="@+id/settings_privacy_layout_public_to_everyone_switch"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content" />
  115. </LinearLayout>
  116. <View
  117. android:layout_width="match_parent"
  118. android:layout_height="1dp"
  119. android:background="@color/grey_light"/>
  120. <LinearLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:padding="16dp"
  124. android:orientation="horizontal"
  125. android:background="@color/white"
  126. android:layout_marginTop="8dp">
  127. <TextView
  128. android:layout_weight="7"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:text="特效开关"/>
  132. <Switch
  133. android:id="@+id/settings_privacy_layout_effects_switch"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content" />
  136. </LinearLayout>
  137. <View
  138. android:layout_width="match_parent"
  139. android:layout_height="1dp"
  140. android:background="@color/grey_light"/>
  141. <LinearLayout
  142. android:id="@+id/settings_privacy_layout_blacklist"
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:padding="16dp"
  146. android:orientation="horizontal"
  147. android:background="@color/white"
  148. android:gravity="center_vertical">
  149. <TextView
  150. android:layout_weight="7"
  151. android:layout_width="wrap_content"
  152. android:layout_height="wrap_content"
  153. android:text="黑名单"/>
  154. <ImageView
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:src="@drawable/right_arrow"/>
  158. </LinearLayout>
  159. <View
  160. android:layout_width="match_parent"
  161. android:layout_height="1dp"
  162. android:background="@color/grey_light"/>
  163. </LinearLayout>