Private
Public Access
- New setting "Text and button size" (Normal / Large / Extra large): scales text, icons and buttons on top of the phone's density (App.UI_SCALES) - Larger default text, rows, tiles, touch targets and player icons; all sizes now live in res/values/dimens.xml - Seek bar knob drawn in code, since Android 2.x caches XML shapes at the size they were first loaded - Full-width buttons wrap to two lines instead of cutting words off - Shorter labels so they fit 240x320 screens in both languages - tools/check_fit.py checks that UI texts fit their slots at every size and language using Droid Sans metrics; build.sh runs it and setup_toolchain.sh fetches the font Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.4 KiB
XML
48 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="10dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<ImageView android:id="@+id/detail_art"
|
|
android:layout_width="@dimen/detail_art" android:layout_height="@dimen/detail_art"
|
|
android:scaleType="centerCrop" />
|
|
<LinearLayout
|
|
android:layout_width="0dp" android:layout_height="wrap_content"
|
|
android:layout_weight="1" android:orientation="vertical"
|
|
android:paddingLeft="12dp" android:paddingTop="4dp">
|
|
<TextView android:id="@+id/detail_title"
|
|
android:layout_width="match_parent" android:layout_height="wrap_content"
|
|
android:textSize="@dimen/text_detail_title" android:textStyle="bold" android:maxLines="3"
|
|
android:ellipsize="end" android:textColor="@color/text" />
|
|
<TextView android:id="@+id/detail_sub"
|
|
android:layout_width="match_parent" android:layout_height="wrap_content"
|
|
android:textSize="@dimen/text_np_sub" android:textColor="@color/accent"
|
|
android:paddingTop="2dp" android:singleLine="true" android:ellipsize="end" />
|
|
<TextView android:id="@+id/detail_meta" style="@style/Sub"
|
|
android:layout_width="match_parent" android:layout_height="wrap_content"
|
|
android:paddingTop="2dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="10dp">
|
|
<Button android:id="@+id/detail_play" style="@style/ButtonAccent"
|
|
android:layout_width="0dp" android:layout_weight="1"
|
|
android:layout_marginRight="5dp" android:text="@string/play"
|
|
android:paddingLeft="4dp" android:paddingRight="4dp" />
|
|
<Button android:id="@+id/detail_shuffle" style="@style/ButtonOutline"
|
|
android:layout_width="0dp" android:layout_weight="1"
|
|
android:layout_marginLeft="5dp" android:text="@string/shuffle"
|
|
android:paddingLeft="4dp" android:paddingRight="4dp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|