Skip to content

🎨 Palette: Enhance sample app UX and accessibility - #14

Draft
juankyc wants to merge 1 commit into
mainfrom
palette/ux-enhancements-16828581755377275052
Draft

🎨 Palette: Enhance sample app UX and accessibility#14
juankyc wants to merge 1 commit into
mainfrom
palette/ux-enhancements-16828581755377275052

Conversation

@juankyc

@juankyc juankyc commented Jul 13, 2026

Copy link
Copy Markdown
Owner

💡 What: The UX enhancement added

This PR introduces several micro-UX improvements to the ShadowHook sample app:

  1. Interactive ADB Command: The ADB logcat command at the top is now clickable. Tapping it copies the command to the clipboard, shows a Toast, and provides visual feedback via a ripple effect.
  2. Improved Button State: The "load libhookee2.so" button now disables itself and updates its label to "libhookee2.so loaded" once clicked, providing immediate and clear state feedback.
  3. State Persistence: The UI state (whether the library is loaded) is now correctly preserved during Activity recreation (e.g., screen rotation).
  4. Resource Externalization: Hardcoded strings in the layout have been moved to strings.xml.

🎯 Why: The user problem it solves

  • Developers no longer need to manually type or copy-paste the ADB command from the UI text.
  • Users get clear feedback that the library loading action was successful and that it doesn't need to be repeated.
  • The app remains consistent across device rotations.
  • Standardizing strings improves accessibility and localization readiness.

♿ Accessibility: Any a11y improvements made

  • Added android:contentDescription="@string/adb_command_description" to the interactive ADB command TextView so screen readers clearly identify its purpose as a copy action.
  • Moving strings to strings.xml allows for better support by accessibility services and future localization.
  • Improved state feedback (disabled button + text change) helps all users understand the current state of the application.

PR created automatically by Jules for task 16828581755377275052 started by @juankyc

- Move hardcoded strings to `strings.xml` for better maintainability and accessibility.
- Make the ADB command TextView interactive: clickable to copy with visual ripple feedback.
- Add `contentDescription` to the ADB command TextView.
- Update the 'load libhookee2.so' button to disable and change text upon success.
- Persist the library loaded state across configuration changes using `onSaveInstanceState`.

Co-authored-by: juankyc <150547187+juankyc@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 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