fix [注册界面-按钮与输入重叠]

This commit is contained in:
zlzw 2024-03-28 14:01:52 +08:00
parent 6a5272d39f
commit dcf7cfa889

View File

@ -1,167 +1,178 @@
<?xml version="1.0" encoding="utf-8"?> <?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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="@color/white"> android:background="@color/white">
<ImageView <LinearLayout
android:id="@+id/imageView11"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scaleType="fitStart" android:orientation="vertical">
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" />
<TextView <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/title2" android:layout_width="match_parent"
android:layout_width="wrap_content" android:layout_height="match_parent">
android:layout_height="wrap_content" <ImageView
android:layout_marginStart="27dp" android:id="@+id/imageView11"
android:layout_marginTop="20dp" android:layout_width="match_parent"
android:text="@string/activity_reg_user_info_sex_sex" android:layout_height="match_parent"
android:textColor="#333333" android:scaleType="centerCrop"
android:textSize="15sp" android:src="@mipmap/bg_activity_message"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text_1" /> app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView <TextView
android:id="@+id/title3" android:id="@+id/title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="27dp" android:layout_marginStart="28dp"
android:layout_marginTop="20dp" android:layout_marginTop="100dp"
android:text="@string/activity_reg_user_info_birthday_title" android:text="@string/activity_reg_user_info_title"
android:textColor="#333333" android:textColor="#333333"
android:textSize="15sp" android:textSize="30sp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/sex_layout" /> app:layout_constraintTop_toTopOf="parent" />
<TextView <com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/title1" android:id="@+id/avatar"
android:layout_width="wrap_content" android:layout_width="100dp"
android:layout_height="wrap_content" android:layout_height="100dp"
android:layout_marginStart="27dp" android:layout_marginStart="27dp"
android:layout_marginTop="25dp" android:layout_marginTop="35dp"
android:text="@string/activity_reg_user_info_sex_title" android:src="@mipmap/ic_message_hi_config_image_add"
android:textColor="#333333" app:layout_constraintStart_toStartOf="parent"
android:textSize="15sp" app:layout_constraintTop_toBottomOf="@+id/title"
app:layout_constraintStart_toStartOf="parent" app:riv_corner_radius="25dp" />
app:layout_constraintTop_toBottomOf="@+id/avatar" />
<include <Button
android:id="@+id/text_1" android:id="@+id/btn_change"
layout="@layout/view_message_hi_config_item_edit" android:layout_width="46dp"
android:layout_width="match_parent" android:layout_height="34dp"
android:layout_height="50dp" android:layout_marginTop="-34dp"
android:layout_marginStart="26dp" android:background="@drawable/bg_btn_activity_user_info_avatar_change"
android:layout_marginTop="15dp" android:maxLines="2"
android:layout_marginEnd="26dp" android:text="@string/activity_reg_user_info_avatar_change"
android:tag="text1" android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent" app:autoSizeMaxTextSize="13sp"
app:layout_constraintStart_toStartOf="parent" app:autoSizeMinTextSize="5sp"
app:layout_constraintTop_toBottomOf="@+id/title1" /> 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 <TextView
android:id="@+id/sex_man" android:id="@+id/title2"
layout="@layout/view_user_info_sex" android:layout_width="wrap_content"
android:layout_width="153dp" android:layout_height="wrap_content"
android:layout_marginEnd="17dp" android:layout_marginStart="27dp"
android:layout_height="72dp"/> android:layout_marginTop="20dp"
<include android:text="@string/activity_reg_user_info_sex_sex"
android:id="@+id/sex_woman" android:textColor="#333333"
layout="@layout/view_user_info_sex" android:textSize="15sp"
android:layout_width="153dp" app:layout_constraintStart_toStartOf="parent"
android:layout_height="72dp"/> 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> </LinearLayout>
</ScrollView>
<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>