修复我的界面--名字为10个文字时显示Ui问题

This commit is contained in:
老皮 2024-10-09 13:20:47 +08:00
parent 6e0094e653
commit 81cdd97fc4

View File

@ -75,32 +75,39 @@
android:textSize="12.44sp" />
</RelativeLayout>
<!--完善资料-->
<LinearLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/lt_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="21dp"
android:layout_marginTop="8dp"
android:gravity="center"
android:gravity="start"
android:orientation="horizontal">
<ImageView
android:id="@+id/btn_edit"
android:layout_width="25dp"
android:layout_height="25dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:src="@mipmap/home_btn_edit" />
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用戶名稱"
android:textColor="@color/black2"
android:textSize="19sp"
android:textSize="18sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_edit"
app:layout_constraintTop_toTopOf="parent"
android:maxLines="1"
android:ellipsize="end"
android:paddingEnd="6dp"
android:textStyle="bold" />
<ImageView
android:id="@+id/btn_edit"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginLeft="6dp"
android:src="@mipmap/home_btn_edit" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/signature"