|
@@ -1,16 +1,233 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- android:orientation="vertical" android:layout_width="match_parent"
|
|
|
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:id="@+id/mine_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- style="@style/fullToolbarStyle"
|
|
|
- android:fitsSystemWindows="true">
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <ImageView
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="192dp"
|
|
|
- android:src="@drawable/avchat_call_bg"
|
|
|
- android:scaleType="center"/>
|
|
|
- <com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content" />
|
|
|
-</android.support.design.widget.CoordinatorLayout>
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <android.support.design.widget.CoordinatorLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="240dp">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/mine_fragment_banner"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="192dp"
|
|
|
+ android:scaleType="center"
|
|
|
+ android:src="@drawable/avchat_call_bg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/mine_fragment_personal_settings"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/mine_settings_white"
|
|
|
+ app:layout_anchor="@id/mine_fragment_banner"
|
|
|
+ app:layout_anchorGravity="top|end"
|
|
|
+ android:layout_margin="16dp"/>
|
|
|
+
|
|
|
+ <com.netease.nim.uikit.common.ui.imageview.HeadImageView
|
|
|
+ android:id="@+id/mine_fragment_avatar"
|
|
|
+ android:layout_width="96dp"
|
|
|
+ android:layout_height="96dp"
|
|
|
+ android:src="@drawable/nim_avatar_group"
|
|
|
+ app:layout_anchor="@id/mine_fragment_banner"
|
|
|
+ app:layout_anchorGravity="bottom|center" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/mine_fragment_gender"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/mine_gender_male"
|
|
|
+ app:layout_anchor="@id/mine_fragment_avatar"
|
|
|
+ app:layout_anchorGravity="right|bottom"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:layout_marginRight="10dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ </android.support.design.widget.CoordinatorLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/mine_fragment_username_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:text="用户昵称"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/mine_fragment_id_tv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:text="id:000000000" />
|
|
|
+
|
|
|
+ <GridLayout
|
|
|
+ android:id="@+id/mine_fragment_photos_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:columnCount="4">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="96dp"
|
|
|
+ android:layout_height="96dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/mine_fragment_edit_photos_img"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/mine_edit_photos" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="添加照片" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </GridLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/mine_fragment_options_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/color_background"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingBottom="4dp"
|
|
|
+ android:paddingTop="4dp">
|
|
|
+
|
|
|
+ <!--附近的人-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/mine_fragment_nearby_people"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:clickable="true"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:src="@drawable/mine_nearby_people" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_weight="7"
|
|
|
+ android:text="附近的人"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <!--我的便民帖-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/mine_fragment_trade"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:clickable="true"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:src="@drawable/mine_trade" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_weight="7"
|
|
|
+ android:text="我的便民帖"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!--设置-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/mine_fragment_setting"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:clickable="true"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="8dp">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:src="@drawable/mine_settings" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginLeft="8dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_weight="8"
|
|
|
+ android:text="设置"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:layout_marginRight="8dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:src="@drawable/right_arrow" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+</ScrollView>
|