team_setttins.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. android:orientation="vertical">
  6. <android.support.design.widget.AppBarLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content">
  9. <com.sheishuo.app.common.views.BaseToolbar
  10. android:id="@+id/toolbar"
  11. android:layout_width="match_parent"
  12. android:layout_height="@dimen/action_bar_height"
  13. android:title="群聊设置" />
  14. </android.support.design.widget.AppBarLayout>
  15. <ScrollView
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content">
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:orientation="vertical">
  22. <LinearLayout
  23. android:id="@+id/team_settings_room_name_layout"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:gravity="center"
  27. android:orientation="horizontal"
  28. android:padding="16dp">
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="9"
  33. android:text="群聊名称"
  34. android:textSize="16sp" />
  35. <TextView
  36. android:id="@+id/team_settings_room_name_TV"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:text="群聊名称"
  41. android:textColor="@color/grey_light"
  42. android:textSize="16sp" />
  43. </LinearLayout>
  44. <View
  45. android:layout_width="match_parent"
  46. android:layout_height="1dp"
  47. android:background="@color/grey_light_light" />
  48. <LinearLayout
  49. android:id="@+id/team_settings_introduction_layout"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:orientation="vertical"
  53. android:padding="16dp">
  54. <TextView
  55. android:id="@+id/team_settings_introduction_title_TV"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:text="群聊注意事项"
  59. android:textSize="16sp" />
  60. <TextView
  61. android:id="@+id/team_settings_introduction_TV"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:text="群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项"
  65. android:textColor="@color/grey_light"
  66. android:textSize="16sp" />
  67. </LinearLayout>
  68. <View
  69. android:layout_width="match_parent"
  70. android:layout_height="1dp"
  71. android:background="@color/grey_light_light" />
  72. <LinearLayout
  73. android:id="@+id/team_settings_member_count_layout"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_marginTop="16dp"
  77. android:gravity="center_horizontal"
  78. android:orientation="horizontal"
  79. android:padding="16dp">
  80. <TextView
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_weight="9"
  84. android:text="群聊成员"
  85. android:textSize="16sp" />
  86. <TextView
  87. android:id="@+id/team_settings_member_count_tv"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_weight="1"
  91. android:text="99人"
  92. android:textColor="@color/grey_light"
  93. android:textSize="16sp" />
  94. <ImageView
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:src="@drawable/right_arrow" />
  98. </LinearLayout>
  99. <View
  100. android:layout_width="match_parent"
  101. android:layout_height="1dp"
  102. android:background="@color/grey_light_light" />
  103. <HorizontalScrollView
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content">
  106. <LinearLayout
  107. android:id="@+id/team_settings_member_avatars_layout"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:orientation="horizontal"
  111. android:padding="16dp"/>
  112. </HorizontalScrollView>
  113. <View
  114. android:layout_width="match_parent"
  115. android:layout_height="1dp"
  116. android:background="@color/grey_light_light" />
  117. <LinearLayout
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:orientation="horizontal"
  121. android:padding="16dp">
  122. <TextView
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_weight="9"
  126. android:text="消息免打扰"
  127. android:textSize="16sp" />
  128. <Switch
  129. android:id="@+id/team_settings_room_mute_switch"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:layout_weight="1"
  133. android:textColor="@color/grey_light"
  134. android:textSize="16sp" />
  135. </LinearLayout>
  136. <View
  137. android:layout_width="match_parent"
  138. android:layout_height="1dp"
  139. android:background="@color/grey_light_light" />
  140. <LinearLayout
  141. android:layout_width="match_parent"
  142. android:layout_height="wrap_content"
  143. android:orientation="horizontal"
  144. android:padding="16dp">
  145. <TextView
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content"
  148. android:layout_weight="9"
  149. android:text="置顶聊天"
  150. android:textSize="16sp" />
  151. <Switch
  152. android:id="@+id/team_settings_room_pin_switch"
  153. android:layout_width="wrap_content"
  154. android:layout_height="wrap_content"
  155. android:layout_weight="1"
  156. android:textColor="@color/grey_light"
  157. android:textSize="16sp" />
  158. </LinearLayout>
  159. <View
  160. android:layout_width="match_parent"
  161. android:layout_height="1dp"
  162. android:background="@color/grey_light_light" />
  163. <LinearLayout
  164. android:id="@+id/team_settings_chat_record_layout"
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content"
  167. android:layout_marginTop="16dp"
  168. android:gravity="center_horizontal"
  169. android:orientation="horizontal"
  170. android:padding="16dp">
  171. <TextView
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:layout_weight="9"
  175. android:text="查看聊天记录"
  176. android:textSize="16sp" />
  177. <ImageView
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:src="@drawable/right_arrow" />
  181. </LinearLayout>
  182. <View
  183. android:layout_width="match_parent"
  184. android:layout_height="1dp"
  185. android:background="@color/grey_light_light" />
  186. <LinearLayout
  187. android:id="@+id/team_settings_clear_chat_record_layout"
  188. android:layout_width="match_parent"
  189. android:layout_height="wrap_content"
  190. android:layout_marginTop="16dp"
  191. android:gravity="center_horizontal"
  192. android:orientation="horizontal"
  193. android:padding="16dp">
  194. <TextView
  195. android:layout_width="wrap_content"
  196. android:layout_height="wrap_content"
  197. android:layout_weight="9"
  198. android:text="清空聊天记录"
  199. android:textSize="16sp" />
  200. </LinearLayout>
  201. <Button
  202. android:id="@+id/team_settings_quit_btn"
  203. android:layout_width="128dp"
  204. android:layout_height="wrap_content"
  205. android:layout_gravity="center_horizontal"
  206. android:layout_marginTop="16dp"
  207. android:background="@drawable/btn1_selector"
  208. android:text="退出该房间"
  209. android:textColor="@color/white" />
  210. </LinearLayout>
  211. </ScrollView>
  212. </LinearLayout>