Skip to content

🎨 Palette: Fix TableLayout Column Alignment & Spanning#63

Open
manupawickramasinghe wants to merge 1 commit intomainfrom
palette-fix-tablelayout-spans-6271716387024429792
Open

🎨 Palette: Fix TableLayout Column Alignment & Spanning#63
manupawickramasinghe wants to merge 1 commit intomainfrom
palette-fix-tablelayout-spans-6271716387024429792

Conversation

@manupawickramasinghe
Copy link
Member

🎨 Palette: Fix TableLayout Column Alignment & Spanning

💡 What: Restructured the 3 Switches (Preview, Stream, RTSP) by wrapping them in a <LinearLayout> with android:layout_span="2". Added android:layout_span="2" to the decorative divider line. Removed android:minWidth="10dp" from the STOP button.
🎯 Why: The 3 switches were placed directly in a <TableRow>, inadvertently forcing the parent <TableLayout> into a 3-column structure. Since all other rows only had 2 columns, this broke the alignment of the labels and spinners below. Grouping them inside a spanning layout preserves the intended 2-column structure and aligns the UI neatly. Additionally, the divider was only spanning column 0; it now correctly spans both columns. Finally, the artificial 10dp minimum width on the STOP button restricted accessible touch target sizes.
♿ Accessibility: Removing minWidth="10dp" from the Button allows it to reach standard minimum touch target sizes. Grouping the switches visually and logically improves the predictability of the UI for users.


PR created automatically by Jules for task 6271716387024429792 started by @manupawickramasinghe

- Grouped `switch1`, `switch2`, and `switchRTSP` into a spanning `<LinearLayout>` to prevent them from unintentionally forcing a 3rd table column, which broke the UI alignment.
- Added `android:layout_span="2"` to the divider `<View>` to ensure it acts as a proper full-width separator across the 2-column layout.
- Removed the inaccessible `android:minWidth="10dp"` constraint on the `buttonKill` (STOP button) to ensure it can utilize proper accessible minimum touch target defaults.
- Added spacing between the grouped switches.

Co-authored-by: manupawickramasinghe <73810867+manupawickramasinghe@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant