fix username displacement in compose

This commit is contained in:
sk 2023-04-13 23:03:07 +02:00
parent 3ad46926f1
commit 2dae662333
1 changed files with 6 additions and 6 deletions

View File

@ -73,7 +73,6 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:paddingLeft="16dp"> android:paddingLeft="16dp">
@ -81,6 +80,7 @@
android:id="@+id/self_avatar" android:id="@+id/self_avatar"
android:layout_width="46sp" android:layout_width="46sp"
android:layout_height="46sp" android:layout_height="46sp"
android:layout_marginTop="16dp"
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_marginEnd="12dp" /> android:layout_marginEnd="12dp" />
@ -90,8 +90,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toEndOf="@id/self_avatar" android:layout_toEndOf="@id/self_avatar"
android:paddingTop="3sp" android:layout_above="@+id/self_username"
android:minHeight="24sp"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/m3_title_medium" android:textAppearance="@style/m3_title_medium"
@ -103,7 +102,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8sp" android:layout_marginStart="8sp"
android:layout_toEndOf="@id/self_name" android:layout_toEndOf="@id/self_name"
android:paddingTop="3sp" android:layout_above="@id/self_username"
android:ellipsize="end" android:ellipsize="end"
android:fontFamily="sans-serif" android:fontFamily="sans-serif"
android:singleLine="true" android:singleLine="true"
@ -112,14 +111,15 @@
tools:text="@string/sk_local_only" /> tools:text="@string/sk_local_only" />
<TextView <TextView
android:id="@+id/self_username" android:id="@id/self_username"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/self_name"
android:layout_toEndOf="@id/self_avatar" android:layout_toEndOf="@id/self_avatar"
android:layout_alignBottom="@id/self_avatar"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:textAppearance="@style/m3_title_small" android:textAppearance="@style/m3_title_small"
android:paddingBottom="3sp"
tools:text="\@Gargron" /> tools:text="\@Gargron" />
</RelativeLayout> </RelativeLayout>