|
@@ -1,36 +1,349 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
- android:orientation="vertical"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content">
|
|
|
+
|
|
|
<com.sheishuo.app.common.views.BaseToolbar
|
|
|
+ android:id="@+id/toolbar"
|
|
|
+ style="@style/fullToolbarStyle"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/action_bar_height"
|
|
|
android:title="设置"
|
|
|
- app:left_text="返回"
|
|
|
- style="@style/fullToolbarStyle"/>
|
|
|
+ app:left_text="返回" />
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="16dp"
|
|
|
- android:orientation="horizontal">
|
|
|
- <TextView
|
|
|
- android:layout_weight="9"
|
|
|
- android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="头像"
|
|
|
- android:layout_gravity="center_vertical"/>
|
|
|
-
|
|
|
- <!--官方给定长宽-->
|
|
|
- <com.netease.nim.uikit.common.ui.widget.SwitchButton
|
|
|
- android:layout_width="58dip"
|
|
|
- android:layout_height="36.67dp"
|
|
|
- android:layout_gravity="end"/>
|
|
|
- </LinearLayout>
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_avatar_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="头像" />
|
|
|
+
|
|
|
+ <!--官方给定长宽-->
|
|
|
+ <!--<com.netease.nim.uikit.common.ui.widget.SwitchButton-->
|
|
|
+ <!--android:layout_width="58dip"-->
|
|
|
+ <!--android:layout_height="36.67dp"-->
|
|
|
+ <!--android:layout_gravity="end"/>-->
|
|
|
+ <com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
+ android:id="@+id/personal_settings_avatar_img"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:src="@drawable/nim_avatar_default" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_nickname_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="昵称" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_nickname_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="昵称" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_gender_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="性别" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_gender_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="性别" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_location_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="地区" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_location_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="地区" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_age_is_public_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="是否公开年龄" />
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.widget.SwitchButton
|
|
|
+ android:id="@+id/personal_settings_age_is_public_switch"
|
|
|
+ android:layout_width="58dp"
|
|
|
+ android:layout_height="36.67dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_age_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="年龄" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_age_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="年龄" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_hobby_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="兴趣爱好" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_hobby_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="兴趣爱好" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/grey_light_light"
|
|
|
+ android:padding="8dp"
|
|
|
+ android:text="实名认证" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_real_name_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="姓名" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_real_name_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="姓名" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/personal_settings_ID_num_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_weight="9"
|
|
|
+ android:text="身份证" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/personal_settings_ID_num_TV"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:src="@drawable/nim_avatar_default"
|
|
|
+ android:text="身份证" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="4dp"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="@color/grey_light_light" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
</LinearLayout>
|