mirror of
https://github.com/tuskyapp/Tusky
synced 2024-12-27 01:06:25 +01:00
fix item_account layout for rtl locales (#1252)
This commit is contained in:
parent
561d4cc284
commit
47104bf2cf
@ -1,23 +1,23 @@
|
|||||||
<?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"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
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"
|
||||||
android:id="@+id/account_container"
|
android:id="@+id/account_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="72dp"
|
android:layout_height="72dp"
|
||||||
android:gravity="center_vertical"
|
android:paddingStart="16dp"
|
||||||
android:paddingLeft="16dp"
|
android:paddingEnd="16dp">
|
||||||
android:paddingRight="16dp">
|
|
||||||
|
|
||||||
<com.keylesspalace.tusky.view.RoundedImageView
|
<com.keylesspalace.tusky.view.RoundedImageView
|
||||||
android:id="@+id/account_avatar"
|
android:id="@+id/account_avatar"
|
||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:foregroundGravity="center_vertical"
|
|
||||||
android:layout_marginEnd="24dp"
|
android:layout_marginEnd="24dp"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
android:foregroundGravity="center_vertical"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
tools:src="@drawable/avatar_default" />
|
||||||
|
|
||||||
<com.keylesspalace.tusky.view.RoundedImageView
|
<com.keylesspalace.tusky.view.RoundedImageView
|
||||||
android:id="@+id/account_avatar_inset"
|
android:id="@+id/account_avatar_inset"
|
||||||
@ -31,36 +31,34 @@
|
|||||||
tools:src="@color/accent"
|
tools:src="@color/accent"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
app:layout_constraintStart_toEndOf="@id/account_avatar"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:layout_marginStart="14dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<androidx.emoji.widget.EmojiTextView
|
<androidx.emoji.widget.EmojiTextView
|
||||||
android:id="@+id/account_display_name"
|
android:id="@+id/account_display_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="14dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed"
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:textSize="?attr/status_text_large"
|
android:textSize="?attr/status_text_large"
|
||||||
android:textStyle="normal|bold"
|
android:textStyle="normal|bold"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/account_username"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/account_avatar"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:text="Display name" />
|
tools:text="Display name" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/account_username"
|
android:id="@+id/account_username"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="14dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
android:textSize="?attr/status_text_medium"
|
android:textSize="?attr/status_text_medium"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/account_avatar"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/account_display_name"
|
||||||
tools:text="\@username" />
|
tools:text="\@username" />
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user