设置基本资料

This commit is contained in:
hch
2023-10-16 18:18:35 +08:00
parent 427d10158b
commit 9ae47dffc2
31 changed files with 1258 additions and 188 deletions

View File

@@ -0,0 +1,54 @@
<?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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp">
<TextView
android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:padding="10dp"
android:text="跳过"
android:textColor="@color/black2"
android:textSize="14sp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="我的标签"
android:textColor="@color/black2"
android:textSize="16sp" />
<com.xuexiang.xui.widget.flowlayout.FlowTagLayout
android:id="@+id/myLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginBottom="10dp"
app:ftl_check_mode="none" />
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</ScrollView>
</LinearLayout>

View File

@@ -1,7 +1,6 @@
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@mipmap/bg_login"
@@ -10,137 +9,148 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@mipmap/bg_w">
android:background="@mipmap/bg_w"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="80dp"
android:layout_marginTop="120dp"
android:gravity="center"
android:text="完善资料"
android:text="完善个人信息"
android:textColor="#FFFFFF"
android:textSize="33sp"
android:textStyle="bold" />
<RelativeLayout
android:id="@+id/editHead"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_gravity="center"
android:layout_marginTop="10dp">
android:layout_marginTop="20dp">
<ImageView
android:layout_width="90dp"
android:layout_height="90dp"
android:background="@color/red"/>
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/userAvatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_centerHorizontal="true"
android:scaleType="centerCrop"
android:src="@mipmap/icon_avatar_placeholder"
app:riv_oval="true" />
<TextView
android:id="@+id/text_choose"
android:layout_width="70dp"
android:layout_height="30dp"
android:textSize="12sp"
android:textColor="#FFFFFF"
android:gravity="center"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/background_8f7cdf"
android:text="去选择"/>
android:gravity="center"
android:text="去选择"
android:textColor="#FFFFFF"
android:textSize="12sp" />
</RelativeLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="60dp"
android:text="昵称"
android:textColor="#ff333333"
android:layout_marginTop="60dp"
android:layout_marginLeft="15dp"
android:textSize="16sp"/>
android:textSize="16sp" />
<EditText
android:id="@+id/userNickName"
android:layout_width="match_parent"
android:layout_height="47dp"
android:background="@mipmap/ws_ind"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textColor="#999999"
android:background="@mipmap/ws_ind"
android:gravity="center"
android:maxEms="15"
android:paddingBottom="5dp"
android:textColor="#999999"
android:textColorHint="#999999"
android:textSize="14sp"/>
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="20dp"
android:text="性别"
android:textColor="#ff333333"
android:layout_marginTop="20dp"
android:layout_marginLeft="15dp"
android:textSize="16sp"/>
android:textSize="16sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/user_sex_1"
android:layout_width="119dp"
android:layout_height="45dp"
android:layout_weight="1"
android:background="@mipmap/wi_c"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textColor="#999999"
android:layout_weight="1"
android:background="@mipmap/icon_user_sex_00"
android:gravity="center"
android:textColorHint="#999999"
android:text="女"
android:textSize="14sp"/>
android:textColor="#999999"
android:textColorHint="#999999"
android:textSize="14sp" />
<TextView
android:id="@+id/user_sex_2"
android:layout_width="119dp"
android:layout_height="45dp"
android:layout_weight="1"
android:background="@mipmap/wi_c"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textColor="#999999"
android:layout_weight="1"
android:background="@mipmap/icon_user_sex_00"
android:gravity="center"
android:textColorHint="#999999"
android:text="男"
android:textSize="14sp"/>
android:textColor="#999999"
android:textColorHint="#999999"
android:textSize="14sp" />
</LinearLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginTop="20dp"
android:text="生日"
android:textColor="#ff333333"
android:layout_marginTop="20dp"
android:layout_marginLeft="15dp"
android:textSize="16sp"/>
android:textSize="16sp" />
<TextView
android:id="@+id/userBirthday"
android:layout_width="match_parent"
android:layout_height="47dp"
android:background="@mipmap/ws_ind"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:textColor="#999999"
android:background="@mipmap/ws_ind"
android:gravity="center"
android:paddingBottom="5dp"
android:textColor="#999999"
android:textColorHint="#999999"
android:textSize="14sp"/>
android:textSize="14sp" />
<Button
android:id="@+id/btn_register"
android:layout_width="match_parent"
android:layout_height="47dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="30dp"
android:layout_marginRight="30dp"
android:background="@drawable/background_8f7cdf"
android:gravity="center"
android:onClick="registerClick"
android:text="完成"
android:textColor="@color/white"
android:textSize="16sp"
/>
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,43 @@
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@drawable/bg_user_avatar"
android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
app:spanCount="4"
tools:itemCount="18"
tools:listitem="@layout/item_user_avatar_select" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="70dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="20dp"
android:gravity="center">
<ImageView
android:id="@+id/camera"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:src="@mipmap/icon_camera" />
<ImageView
android:id="@+id/album"
android:layout_width="0dp"
android:layout_height="60dp"
android:layout_weight="1"
android:src="@mipmap/icon_album" />
</LinearLayout>
</LinearLayout>

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_marginStart="10dp"
android:layout_marginTop="20dp">
<View
android:id="@+id/showCover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_user_avatar_select_selected"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.yunbao.common.custom.RatioRoundImageView
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_marginStart="2dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="2dp"
android:layout_marginBottom="2dp"
android:src="@mipmap/icon_green_science"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:ri_ratio="0.5"
app:riv_oval="true" />
<View
android:id="@+id/hideCover"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="2dp"
android:layout_marginTop="2dp"
android:layout_marginEnd="2dp"
android:layout_marginBottom="2dp"
android:background="@drawable/bg_user_avatar_select_unselected"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="invisible" />
</androidx.constraintlayout.widget.ConstraintLayout>