Fix RTL for the bookmarks

This commit is contained in:
Nicolas Pomepuy 2024-11-14 07:17:36 +01:00
parent 8c741b77eb
commit be8d878f83
2 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/orange500focus"/>
<corners
android:topLeftRadius="36dp"
android:bottomLeftRadius="36dp"/>
</shape>

View File

@ -56,7 +56,6 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:gravity="center_vertical"
android:maxLines="1" android:maxLines="1"
android:singleLine="true" android:singleLine="true"
android:text="@{bookmark.title}" android:text="@{bookmark.title}"
@ -67,7 +66,6 @@
app:layout_constraintEnd_toStartOf="@+id/item_more" app:layout_constraintEnd_toStartOf="@+id/item_more"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Bookmark 1" /> tools:text="Bookmark 1" />
<TextView <TextView
@ -97,7 +95,8 @@
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginRight="4dp" android:layout_marginEnd="4dp"
android:padding="8dp"
android:contentDescription="@string/more_actions" android:contentDescription="@string/more_actions"
android:background="?attr/selectableItemBackgroundBorderless" android:background="?attr/selectableItemBackgroundBorderless"
android:onClick="@{(view) -> holder.onMoreClick(view, bookmark)}" android:onClick="@{(view) -> holder.onMoreClick(view, bookmark)}"