user_profile_activity.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView 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. <LinearLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:background="@color/color_background"
  11. android:orientation="vertical">
  12. <android.support.design.widget.AppBarLayout
  13. android:id="@+id/app_bar_layout"
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:theme="@style/AppTheme.AppBarOverlay"
  17. app:elevation="0dp">
  18. <android.support.v7.widget.Toolbar
  19. android:id="@+id/toolbar"
  20. android:layout_width="match_parent"
  21. android:layout_height="?attr/actionBarSize"
  22. android:background="?attr/colorPrimary"
  23. app:titleTextAppearance="@style/Toolbar.TitleText">
  24. <include layout="@layout/nim_action_bar_right_clickable_tv" />
  25. </android.support.v7.widget.Toolbar>
  26. </android.support.design.widget.AppBarLayout>
  27. <RelativeLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:paddingBottom="13dp"
  31. android:paddingTop="13dp">
  32. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  33. android:id="@+id/user_head_image"
  34. android:layout_width="@dimen/avatar_size_in_profile"
  35. android:layout_height="@dimen/avatar_size_in_profile"
  36. android:layout_alignParentLeft="true"
  37. android:layout_marginLeft="15dp" />
  38. <LinearLayout
  39. android:layout_width="wrap_content"
  40. android:layout_height="65dp"
  41. android:layout_marginLeft="20dip"
  42. android:layout_toRightOf="@id/user_head_image"
  43. android:orientation="vertical">
  44. <LinearLayout
  45. android:id="@+id/nick_layout"
  46. android:layout_width="wrap_content"
  47. android:layout_height="0dp"
  48. android:layout_weight="1"
  49. android:orientation="horizontal">
  50. <TextView
  51. android:id="@+id/user_name"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:textColor="@color/black"
  55. android:textSize="17sp" />
  56. <ImageView
  57. android:id="@+id/gender_img"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_gravity="center_vertical"
  61. android:layout_marginLeft="5dp"
  62. android:background="@drawable/nim_male" />
  63. </LinearLayout>
  64. <TextView
  65. android:id="@+id/user_account"
  66. android:layout_width="wrap_content"
  67. android:layout_height="0dp"
  68. android:layout_weight="1"
  69. android:textColor="@color/color_black_ff666666"
  70. android:textSize="15sp" />
  71. <TextView
  72. android:id="@+id/user_nick"
  73. android:layout_width="wrap_content"
  74. android:layout_height="0dp"
  75. android:layout_weight="1"
  76. android:textColor="@color/color_black_ff666666"
  77. android:textSize="15sp"
  78. android:visibility="gone" />
  79. </LinearLayout>
  80. </RelativeLayout>
  81. <View
  82. android:layout_width="match_parent"
  83. android:layout_height="2px"
  84. android:layout_below="@+id/attribute"
  85. android:background="@color/color_split_line_d9d9d9" />
  86. <include
  87. android:id="@+id/alias"
  88. layout="@layout/user_profile_item"
  89. android:visibility="gone" />
  90. <include
  91. android:id="@+id/birthday"
  92. layout="@layout/user_profile_item" />
  93. <include
  94. android:id="@+id/phone"
  95. layout="@layout/user_profile_item" />
  96. <include
  97. android:id="@+id/email"
  98. layout="@layout/user_profile_item" />
  99. <include
  100. android:id="@+id/signature"
  101. layout="@layout/user_profile_item" />
  102. <LinearLayout
  103. android:id="@+id/toggle_layout"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:layout_marginTop="15dp"
  107. android:orientation="vertical" />
  108. <LinearLayout
  109. android:id="@+id/operate_layout"
  110. android:layout_width="match_parent"
  111. android:layout_height="match_parent"
  112. android:gravity="bottom"
  113. android:orientation="vertical"
  114. android:paddingBottom="30dp"
  115. android:paddingLeft="15dp"
  116. android:paddingRight="15dp"
  117. android:paddingTop="30dp">
  118. <Button
  119. android:id="@+id/begin_chat"
  120. android:layout_width="match_parent"
  121. android:layout_height="wrap_content"
  122. android:layout_marginBottom="10dip"
  123. android:background="@drawable/nim_team_create_btn_selector"
  124. android:minHeight="50dp"
  125. android:text="@string/begin_chat"
  126. android:textColor="@color/white"
  127. android:textSize="@dimen/text_size_17"
  128. android:visibility="gone" />
  129. <Button
  130. android:id="@+id/remove_buddy"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. android:layout_marginBottom="15dip"
  134. android:background="@drawable/nim_white_round_button_selector"
  135. android:minHeight="50dp"
  136. android:text="@string/remove_friend"
  137. android:textColor="@color/color_red_f04c62"
  138. android:textSize="@dimen/text_size_17"
  139. android:visibility="gone" />
  140. <Button
  141. android:id="@+id/add_buddy"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:layout_marginBottom="15dip"
  145. android:background="@drawable/nim_team_create_btn_selector"
  146. android:minHeight="50dp"
  147. android:text="@string/add_friend"
  148. android:textColor="@color/white"
  149. android:textSize="@dimen/text_size_17"
  150. android:visibility="gone" />
  151. </LinearLayout>
  152. </LinearLayout>
  153. </ScrollView>