diff --git a/.Jules/palette.md b/.Jules/palette.md index 5e5130d..ae48fec 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -29,3 +29,7 @@ ## 2026-04-11 - Prevent unreadable hardcoded text sizing **Learning:** Hardcoding `android:textSize="12sp"` directly on Android TextView elements creates an accessibility barrier for users with poor vision and ignores system-level font scaling preferences, particularly for dynamic data fields like bitrate readouts. **Action:** Remove overly restrictive `android:textSize` attributes from informational UI elements, allowing them to inherit accessible default text sizes from the application theme. + +## 2026-04-14 - Descriptive Labels for Brief/Destructive Actions +**Learning:** Brief or destructive action buttons (like 'STOP') may lack context for screen reader users and sighted users hovering with a mouse, especially when the visual label is short. +**Action:** Enhance brief or destructive buttons with `android:contentDescription` and `android:tooltipText` that explicitly describe their full outcome (e.g., 'Stop camera server') to provide clear context across input modalities. diff --git a/app/src/main/res/layout/fragment_camera.xml b/app/src/main/res/layout/fragment_camera.xml index 3714d5d..2184e5a 100644 --- a/app/src/main/res/layout/fragment_camera.xml +++ b/app/src/main/res/layout/fragment_camera.xml @@ -90,7 +90,9 @@ android:layout_height="wrap_content" android:layout_gravity="end|fill_vertical" android:includeFontPadding="false" - android:text="@string/stop_button" /> + android:text="@string/stop_button" + android:contentDescription="@string/stop_button_desc" + android:tooltipText="@string/stop_button_desc" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f77ec82..39136d3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -20,6 +20,7 @@ RemoteCam STOP + Stop camera server Preview Stream RTSP