master_fragment.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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:background="@color/color_background"
  6. android:orientation="vertical">
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content"
  10. android:layout_marginTop="10dp"
  11. android:background="@color/white"
  12. android:paddingBottom="13dp"
  13. android:paddingTop="13dp">
  14. <com.sheishuo.app.chatroom.widget.ChatRoomImageView
  15. android:id="@+id/master_head_image"
  16. android:layout_width="@dimen/avatar_size_in_profile"
  17. android:layout_height="@dimen/avatar_size_in_profile"
  18. android:layout_alignParentLeft="true"
  19. android:layout_marginLeft="15dp" />
  20. <LinearLayout
  21. android:layout_width="wrap_content"
  22. android:layout_height="50dp"
  23. android:layout_marginLeft="10dip"
  24. android:layout_toRightOf="@id/master_head_image"
  25. android:orientation="vertical">
  26. <LinearLayout
  27. android:id="@+id/nick_layout"
  28. android:layout_width="wrap_content"
  29. android:layout_height="0dp"
  30. android:layout_weight="1"
  31. android:orientation="horizontal">
  32. <TextView
  33. android:id="@+id/master_name"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:textColor="@color/color_black_333333"
  37. android:textSize="15sp" />
  38. </LinearLayout>
  39. <TextView
  40. android:id="@+id/online_total"
  41. android:layout_width="wrap_content"
  42. android:layout_height="0dp"
  43. android:layout_weight="1"
  44. android:drawableLeft="@drawable/head_icon"
  45. android:drawablePadding="6dp"
  46. android:gravity="center"
  47. android:textColor="@color/color_black_ff666666"
  48. android:textSize="13sp" />
  49. </LinearLayout>
  50. </RelativeLayout>
  51. <LinearLayout
  52. android:id="@+id/announce_layout"
  53. android:layout_width="match_parent"
  54. android:layout_height="match_parent"
  55. android:layout_marginLeft="15dp"
  56. android:orientation="vertical">
  57. <TextView
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_marginTop="20dp"
  61. android:drawableLeft="@drawable/chat_room_announce"
  62. android:drawablePadding="6dp"
  63. android:gravity="center"
  64. android:text="@string/chat_room_announcement"
  65. android:textColor="@color/color_black_ff666666"
  66. android:textSize="14sp" />
  67. <ScrollView
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginBottom="10dp"
  71. android:layout_marginTop="12dp">
  72. <TextView
  73. android:id="@+id/announce_content"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_marginRight="15dp"
  77. android:textColor="@color/color_black_ff999999"
  78. android:textSize="@dimen/text_size_13" />
  79. </ScrollView>
  80. </LinearLayout>
  81. <LinearLayout
  82. android:id="@+id/no_announce_layout"
  83. android:layout_width="match_parent"
  84. android:layout_height="match_parent"
  85. android:gravity="center"
  86. android:orientation="vertical"
  87. android:visibility="gone">
  88. <TextView
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:drawablePadding="10dp"
  92. android:gravity="center"
  93. android:text="@string/no_announcement"
  94. android:textSize="17sp" />
  95. </LinearLayout>
  96. </LinearLayout>