team_setttins.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="群聊注意事项"
  58. android:textSize="16sp" />
  59. <TextView
  60. android:id="@+id/team_settings_introduction_TV"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:text="群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项群注意事项"
  64. android:textColor="@color/grey_light"
  65. android:textSize="16sp" />
  66. </LinearLayout>
  67. <View
  68. android:layout_width="match_parent"
  69. android:layout_height="1dp"
  70. android:background="@color/grey_light_light" />
  71. <LinearLayout
  72. android:id="@+id/team_settings_member_count_layout"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:layout_marginTop="16dp"
  76. android:gravity="center_horizontal"
  77. android:orientation="horizontal"
  78. android:padding="16dp">
  79. <TextView
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_weight="9"
  83. android:text="群聊成员"
  84. android:textSize="16sp" />
  85. <TextView
  86. android:id="@+id/team_settings_member_count_tv"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_weight="1"
  90. android:text="99人"
  91. android:textColor="@color/grey_light"
  92. android:textSize="16sp" />
  93. <ImageView
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:src="@drawable/right_arrow" />
  97. </LinearLayout>
  98. <View
  99. android:layout_width="match_parent"
  100. android:layout_height="1dp"
  101. android:background="@color/grey_light_light" />
  102. <HorizontalScrollView
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content">
  105. <LinearLayout
  106. android:id="@+id/team_settings_member_avatars_layout"
  107. android:layout_width="match_parent"
  108. android:layout_height="wrap_content"
  109. android:orientation="horizontal"
  110. android:padding="16dp"/>
  111. </HorizontalScrollView>
  112. <View
  113. android:layout_width="match_parent"
  114. android:layout_height="1dp"
  115. android:background="@color/grey_light_light" />
  116. <LinearLayout
  117. android:layout_width="match_parent"
  118. android:layout_height="wrap_content"
  119. android:orientation="horizontal"
  120. android:padding="16dp">
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_weight="9"
  125. android:text="消息免打扰"
  126. android:textSize="16sp" />
  127. <Switch
  128. android:id="@+id/team_settings_room_mute_switch"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:layout_weight="1"
  132. android:textColor="@color/grey_light"
  133. android:textSize="16sp" />
  134. </LinearLayout>
  135. <View
  136. android:layout_width="match_parent"
  137. android:layout_height="1dp"
  138. android:background="@color/grey_light_light" />
  139. <LinearLayout
  140. android:layout_width="match_parent"
  141. android:layout_height="wrap_content"
  142. android:orientation="horizontal"
  143. android:padding="16dp">
  144. <TextView
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_weight="9"
  148. android:text="置顶聊天"
  149. android:textSize="16sp" />
  150. <Switch
  151. android:id="@+id/team_settings_room_pin_switch"
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:layout_weight="1"
  155. android:textColor="@color/grey_light"
  156. android:textSize="16sp" />
  157. </LinearLayout>
  158. <View
  159. android:layout_width="match_parent"
  160. android:layout_height="1dp"
  161. android:background="@color/grey_light_light" />
  162. <LinearLayout
  163. android:id="@+id/team_settings_chat_record_layout"
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content"
  166. android:layout_marginTop="16dp"
  167. android:gravity="center_horizontal"
  168. android:orientation="horizontal"
  169. android:padding="16dp">
  170. <TextView
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:layout_weight="9"
  174. android:text="查看聊天记录"
  175. android:textSize="16sp" />
  176. <ImageView
  177. android:layout_width="wrap_content"
  178. android:layout_height="wrap_content"
  179. android:src="@drawable/right_arrow" />
  180. </LinearLayout>
  181. <View
  182. android:layout_width="match_parent"
  183. android:layout_height="1dp"
  184. android:background="@color/grey_light_light" />
  185. <LinearLayout
  186. android:id="@+id/team_settings_clear_chat_record_layout"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:layout_marginTop="16dp"
  190. android:gravity="center_horizontal"
  191. android:orientation="horizontal"
  192. android:padding="16dp">
  193. <TextView
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:layout_weight="9"
  197. android:text="清空聊天记录"
  198. android:textSize="16sp" />
  199. </LinearLayout>
  200. <Button
  201. android:id="@+id/team_settings_quit_btn"
  202. android:layout_width="128dp"
  203. android:layout_height="wrap_content"
  204. android:layout_gravity="center_horizontal"
  205. android:layout_marginTop="16dp"
  206. android:background="@drawable/btn1_selector"
  207. android:text="退出该房间"
  208. android:textColor="@color/white" />
  209. </LinearLayout>
  210. </ScrollView>
  211. </LinearLayout>