fix [注册界面-按钮与输入重叠]
This commit is contained in:
parent
6a5272d39f
commit
dcf7cfa889
@ -1,167 +1,178 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<ScrollView 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="@color/white">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView11"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="fitStart"
|
||||
android:src="@mipmap/bg_activity_message"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="28dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:text="@string/activity_reg_user_info_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="30sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:src="@mipmap/ic_message_hi_config_image_add"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title"
|
||||
app:riv_corner_radius="25dp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_change"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_marginTop="-34dp"
|
||||
android:background="@drawable/bg_btn_activity_user_info_avatar_change"
|
||||
android:text="@string/activity_reg_user_info_avatar_change"
|
||||
android:textSize="13sp"
|
||||
android:maxLines="2"
|
||||
app:autoSizeMaxTextSize="13sp"
|
||||
app:autoSizeMinTextSize="5sp"
|
||||
app:autoSizeStepGranularity="1sp"
|
||||
app:autoSizeTextType="uniform"
|
||||
app:layout_constraintEnd_toEndOf="@+id/avatar"
|
||||
app:layout_constraintTop_toBottomOf="@+id/avatar" />
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_reg_user_info_sex_sex"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/text_1" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:id="@+id/imageView11"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/bg_activity_message"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_reg_user_info_birthday_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sex_layout" />
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="28dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:text="@string/activity_reg_user_info_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="30sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="@string/activity_reg_user_info_sex_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/avatar" />
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="35dp"
|
||||
android:src="@mipmap/ic_message_hi_config_image_add"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title"
|
||||
app:riv_corner_radius="25dp" />
|
||||
|
||||
<include
|
||||
android:id="@+id/text_1"
|
||||
layout="@layout/view_message_hi_config_item_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:tag="text1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title1" />
|
||||
<Button
|
||||
android:id="@+id/btn_change"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="34dp"
|
||||
android:layout_marginTop="-34dp"
|
||||
android:background="@drawable/bg_btn_activity_user_info_avatar_change"
|
||||
android:maxLines="2"
|
||||
android:text="@string/activity_reg_user_info_avatar_change"
|
||||
android:textSize="13sp"
|
||||
app:autoSizeMaxTextSize="13sp"
|
||||
app:autoSizeMinTextSize="5sp"
|
||||
app:autoSizeStepGranularity="1sp"
|
||||
app:autoSizeTextType="uniform"
|
||||
app:layout_constraintEnd_toEndOf="@+id/avatar"
|
||||
app:layout_constraintTop_toBottomOf="@+id/avatar" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/sex_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title2">
|
||||
|
||||
<include
|
||||
android:id="@+id/sex_man"
|
||||
layout="@layout/view_user_info_sex"
|
||||
android:layout_width="153dp"
|
||||
android:layout_marginEnd="17dp"
|
||||
android:layout_height="72dp"/>
|
||||
<include
|
||||
android:id="@+id/sex_woman"
|
||||
layout="@layout/view_user_info_sex"
|
||||
android:layout_width="153dp"
|
||||
android:layout_height="72dp"/>
|
||||
<TextView
|
||||
android:id="@+id/title2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_reg_user_info_sex_sex"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/text_1" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="@string/activity_reg_user_info_birthday_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/sex_layout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="27dp"
|
||||
android:layout_marginTop="25dp"
|
||||
android:text="@string/activity_reg_user_info_sex_title"
|
||||
android:textColor="#333333"
|
||||
android:textSize="15sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/avatar" />
|
||||
|
||||
<include
|
||||
android:id="@+id/text_1"
|
||||
layout="@layout/view_message_hi_config_item_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
android:tag="text1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title1" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/sex_layout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title2">
|
||||
|
||||
<include
|
||||
android:id="@+id/sex_man"
|
||||
layout="@layout/view_user_info_sex"
|
||||
android:layout_width="153dp"
|
||||
android:layout_height="72dp"
|
||||
android:layout_marginEnd="17dp" />
|
||||
|
||||
<include
|
||||
android:id="@+id/sex_woman"
|
||||
layout="@layout/view_user_info_sex"
|
||||
android:layout_width="153dp"
|
||||
android:layout_height="72dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/birthday"
|
||||
layout="@layout/view_user_info_birthday"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title3" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView14"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:text="@string/activity_reg_user_info_sex_sex_tips"
|
||||
android:textColor="#FF4874"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/title2"
|
||||
app:layout_constraintStart_toEndOf="@+id/title2"
|
||||
app:layout_constraintTop_toTopOf="@+id/title2" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<Button
|
||||
android:id="@+id/submit"
|
||||
android:layout_width="186dp"
|
||||
android:layout_height="54dp"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:background="@drawable/bg_msg_address_book_user_btn_fan"
|
||||
android:text="@string/activity_reg_user_info_submit"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginTop="42dp"
|
||||
android:layout_gravity="center"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<include
|
||||
android:id="@+id/birthday"
|
||||
layout="@layout/view_user_info_birthday"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginEnd="26dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title3" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/submit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="32dp"
|
||||
android:text="@string/activity_reg_user_info_submit"
|
||||
android:textAllCaps="false"
|
||||
android:background="@drawable/bg_msg_address_book_user_btn_fan"
|
||||
android:textColor="#FFFFFF"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView14"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:textColor="#FF4874"
|
||||
android:textSize="11sp"
|
||||
android:text="@string/activity_reg_user_info_sex_sex_tips"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/title2"
|
||||
app:layout_constraintStart_toEndOf="@+id/title2"
|
||||
app:layout_constraintTop_toTopOf="@+id/title2" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</ScrollView>
|
Loading…
Reference in New Issue
Block a user