123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <?xml version="1.0" encoding="utf-8"?>
- <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"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- 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>
|