From 25657104d784058a98ea36ec083aa62cdff4d953 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 8 Feb 2026 20:29:22 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20semantic=20labe?= =?UTF-8?q?ls=20to=20camera=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💡 What: Added `android:labelFor` to `TextView`s in the camera settings `TableLayout`. 🎯 Why: Semantically links labels to their `Spinner` controls, improving accessibility for screen readers. ♿ Accessibility: Ensures `Spinner` controls are properly labeled in the accessibility tree. Co-authored-by: manupawickramasinghe <73810867+manupawickramasinghe@users.noreply.github.com> --- app/src/main/res/layout/fragment_camera.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/res/layout/fragment_camera.xml b/app/src/main/res/layout/fragment_camera.xml index 3b47910..c409af1 100644 --- a/app/src/main/res/layout/fragment_camera.xml +++ b/app/src/main/res/layout/fragment_camera.xml @@ -154,6 +154,7 @@ android:id="@+id/textViewEncoding" android:layout_width="match_parent" android:layout_height="wrap_content" + android:labelFor="@+id/spinnerEncoding" android:text="@string/encoding_label" android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> @@ -176,6 +177,7 @@ android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" + android:labelFor="@+id/spinnerCam" android:text="@string/sensor_label" android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> @@ -197,6 +199,7 @@ android:id="@+id/textView3" android:layout_width="match_parent" android:layout_height="wrap_content" + android:labelFor="@+id/spinnerRes" android:text="@string/resolution_label" android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> @@ -220,6 +223,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" + android:labelFor="@+id/spinnerQua" android:text="@string/quality_label" android:textAppearance="@style/TextAppearance.AppCompat.Medium" />