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

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

View File

@ -1,16 +1,25 @@
<?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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView <ImageView
android:id="@+id/imageView11" 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:scaleType="centerCrop"
android:src="@mipmap/bg_activity_message" android:src="@mipmap/bg_activity_message"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_bias="0.0"
@ -46,9 +55,9 @@
android:layout_height="34dp" android:layout_height="34dp"
android:layout_marginTop="-34dp" android:layout_marginTop="-34dp"
android:background="@drawable/bg_btn_activity_user_info_avatar_change" android:background="@drawable/bg_btn_activity_user_info_avatar_change"
android:maxLines="2"
android:text="@string/activity_reg_user_info_avatar_change" android:text="@string/activity_reg_user_info_avatar_change"
android:textSize="13sp" android:textSize="13sp"
android:maxLines="2"
app:autoSizeMaxTextSize="13sp" app:autoSizeMaxTextSize="13sp"
app:autoSizeMinTextSize="5sp" app:autoSizeMinTextSize="5sp"
app:autoSizeStepGranularity="1sp" app:autoSizeStepGranularity="1sp"
@ -119,13 +128,14 @@
android:id="@+id/sex_man" android:id="@+id/sex_man"
layout="@layout/view_user_info_sex" layout="@layout/view_user_info_sex"
android:layout_width="153dp" android:layout_width="153dp"
android:layout_marginEnd="17dp" android:layout_height="72dp"
android:layout_height="72dp"/> android:layout_marginEnd="17dp" />
<include <include
android:id="@+id/sex_woman" android:id="@+id/sex_woman"
layout="@layout/view_user_info_sex" layout="@layout/view_user_info_sex"
android:layout_width="153dp" android:layout_width="153dp"
android:layout_height="72dp"/> android:layout_height="72dp" />
</LinearLayout> </LinearLayout>
@ -140,28 +150,29 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title3" /> 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 <TextView
android:id="@+id/textView14" android:id="@+id/textView14"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:text="@string/activity_reg_user_info_sex_sex_tips"
android:textColor="#FF4874" android:textColor="#FF4874"
android:textSize="11sp" android:textSize="11sp"
android:text="@string/activity_reg_user_info_sex_sex_tips"
app:layout_constraintBottom_toBottomOf="@+id/title2" app:layout_constraintBottom_toBottomOf="@+id/title2"
app:layout_constraintStart_toEndOf="@+id/title2" app:layout_constraintStart_toEndOf="@+id/title2"
app:layout_constraintTop_toTopOf="@+id/title2" /> app:layout_constraintTop_toTopOf="@+id/title2" />
</androidx.constraintlayout.widget.ConstraintLayout> </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>
</ScrollView>