Enhance chapter items

This commit is contained in:
Zakhar Timoshenko
2024-01-17 16:09:55 +03:00
parent 12047a85c7
commit 0b4dd5beef
5 changed files with 43 additions and 38 deletions

View File

@@ -4,27 +4,13 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?attr/listPreferredItemHeight"
android:background="?selectableItemBackground"
android:baselineAligned="false"
android:gravity="center_vertical"
android:minHeight="@dimen/chapter_list_item_height"
android:orientation="horizontal">
<TextView
android:id="@+id/textView_number"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="?android:listPreferredItemPaddingStart"
android:background="@drawable/bg_badge_default"
android:ellipsize="none"
android:gravity="center"
android:singleLine="true"
android:textAlignment="center"
android:textSize="14sp"
tools:text="13"
tools:textColor="?attr/colorOnPrimary" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
@@ -38,7 +24,7 @@
android:id="@+id/textView_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="4dp"
android:drawablePadding="8dp"
android:ellipsize="end"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceBodyLarge"