Minamp 1.6: adjustable UI size, larger text and controls

- 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>
This commit is contained in:
xockoandClaude Opus 5.5 committed 2026-10-15 08:02:49 +02:00
1 parent fa67e95fde
commit bbdab09f83
32 files changed
+457 -190

No files matched your search

+7 -7
View File
@@ -1,20 +1,20 @@
<?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="54dp"
android:layout_height="@dimen/row"
android:orientation="horizontal"
android:gravity="center_vertical"
android:paddingLeft="6dp"
android:paddingRight="4dp">
<FrameLayout android:layout_width="44dp" android:layout_height="44dp">
<FrameLayout android:layout_width="@dimen/row_art" android:layout_height="@dimen/row_art">
<ImageView android:id="@+id/row_art"
android:layout_width="44dp" android:layout_height="44dp"
android:layout_width="@dimen/row_art" android:layout_height="@dimen/row_art"
android:scaleType="centerCrop" />
<TextView android:id="@+id/row_num"
android:layout_width="44dp" android:layout_height="44dp"
android:layout_width="@dimen/row_art" android:layout_height="@dimen/row_art"
android:gravity="center" android:textColor="@color/text2"
android:textSize="13sp" android:visibility="gone" />
android:textSize="@dimen/text_sub" android:visibility="gone" />
</FrameLayout>
<LinearLayout
@@ -23,13 +23,13 @@
android:paddingLeft="9dp">
<TextView android:id="@+id/row_title" style="@style/Title"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:textSize="14sp" android:textStyle="normal" />
android:textSize="@dimen/text_body" android:textStyle="normal" />
<TextView android:id="@+id/row_sub" style="@style/Sub"
android:layout_width="match_parent" android:layout_height="wrap_content" />
</LinearLayout>
<TextView android:id="@+id/row_right"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/text2" android:textSize="11sp"
android:textColor="@color/text2" android:textSize="@dimen/text_tiny"
android:paddingLeft="6dp" android:paddingRight="6dp" />
</LinearLayout>