mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Fix layout bug in chatlist title (#2137)
Fix #2127 * Fix layout bug in chatlist title * Support RTL languages better
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
android:elevation="4dp"
|
||||
android:theme="?attr/actionBarStyle">
|
||||
|
||||
<RelativeLayout
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
@@ -28,10 +29,9 @@
|
||||
android:foreground="@drawable/contact_photo_background"
|
||||
android:layout_width="35dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:cropToPadding="true"
|
||||
android:clickable="true"
|
||||
app:inverted="true"
|
||||
@@ -40,13 +40,11 @@
|
||||
|
||||
<TextView style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
|
||||
android:id="@+id/toolbar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/app_name"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@+id/self_avatar"
|
||||
android:layout_toEndOf="@+id/self_avatar"
|
||||
android:layout_toLeftOf="@+id/search_action"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingRight="10dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"/>
|
||||
@@ -61,12 +59,10 @@
|
||||
android:paddingStart="12dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:contentDescription="@string/search"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user