Skip to content

ADFA-7133 | Layout Editor: show the Help button's icon and link Learn more to its guide - #174

Open
Daniel-ADFA wants to merge 1 commit into
mainfrom
bugfix/ADFA-7133-layout-editor-help
Open

Daniel-ADFA wants to merge 1 commit into
mainfrom
bugfix/ADFA-7133-layout-editor-help

Conversation

@Daniel-ADFA

@Daniel-ADFA Daniel-ADFA commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

ADFA-7133

The Help button at the top of the nav rail was blank. Plugin classes load parent-first, so its FloatingActionButton is the IDE's copy, which reads app: attributes by the IDE's attribute IDs and never sees the plugin's app:srcCompat. The icon now comes from the framework attribute android:src, and the button is labelled "Help" for TalkBack. The Help tooltip's Learn more now opens i/layout-editor.html.

layout_preview_drawable.xml and layout_drawable_grid_item.xml also use app:srcCompat; they are left alone here.

Verified on an emulator: the icon shows at font scale 1.0 and 2.0, and the button's content description is "Help". The Learn more link is not verified on a device, because debug builds ship a documentation.db older than version 3, so no tooltip renders there.

… more to its guide

Plugin classes load parent-first, so the nav rail's FloatingActionButton is the IDE's copy. It reads app: attributes by the IDE's attribute IDs and never saw the plugin's app:srcCompat, which left the button blank. The icon now comes from the framework attribute android:src, the button is labelled Help for TalkBack, and the Help tooltip's Learn more opens i/layout-editor.html.
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

  • Help tooltip in the Layout Editor now links "Learn more" to i/layout-editor.html, not the IDE plugin documentation. The detail text now refers to the Layout Editor guide.
  • Nav-rail Help button icon changes from app:srcCompat to android:src. The stated reason is that the parent-first-loaded FloatingActionButton does not recognize app:srcCompat.
  • Help button adds android:contentDescription="@string/help". The tools namespace and its ContentDescription lint suppression are removed.
  • Version bumps from 1.0.0 (code 1) to 1.0.1 (code 2). The PR objectives do not mention this.

Risks:

  • The Learn more link was not verified on a device. Debug builds use an older documentation.db, so the tooltip does not render there.
  • Icon was checked only at font scales 1.0 and 2.0, on an emulator.
  • layout_preview_drawable.xml and layout_drawable_grid_item.xml still use app:srcCompat. Same class-loading issue may apply there.
  • Version bump is unrelated to the stated intent. Confirm it is intended for this release.
  • Verify that @string/help resolves to the intended "Help" text.

The Layout Editor plugin version advances to 2 and 1.0.1. The Help tooltip now links to the Layout Editor guide. The help FAB sets its accessibility description and icon with Android attributes.

Changes: Layout Editor update

Layer / File(s) Summary
Help destination and button
plugins/Layout-Editor/src/main/kotlin/org/appdevforall/codeonthego/layouteditor/LayoutEditorPlugin.kt, plugins/Layout-Editor/src/main/res/layout/layout_navigation_header.xml
The Help tooltip links to the Layout Editor guide. The help FAB sets its content description with android:contentDescription and its icon with android:src.
Plugin version
plugins/Layout-Editor/build.gradle.kts
The Android default configuration changes the version code from 1 to 2 and the version name from 1.0.0 to 1.0.1.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: hal-eisen-adfa

Merge Risk: Minimal · up to a6531

The Layout Editor Help button now shows its icon and is labeled "Help" for accessibility, and Learn more points to the Layout Editor guide. The changes are small and low risk. The guide link could not be checked on a device, so confirm the page is served by the host documentation.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two changes in the PR: the nav-rail Help button now shows its icon via android:src, and the Help tooltip's Learn more link now opens the Layout Editor guide. It also carries the ti…
Description check Passed The description explains the cause (the IDE's parent-first loaded FloatingActionButton ignores the plugin's app:srcCompat), the fix (android:src icon and a 'Help' TalkBack label), and the Learn more l…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two changes in the PR: the nav-rail Help button now shows its icon via android:src, and the Help tooltip's Learn more link now opens the Layout Editor guide. It also carries the ticket ID. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description explains the cause (the IDE's parent-first loaded FloatingActionButton ignores the plugin's app:srcCompat), the fix (android:src icon and a 'Help' TalkBack label), and the Learn more link change to i/layout-editor.html. It also gives verification notes. It relates directly to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the guide’s new place,
Then taps the help button with grace.
A fresh version hops in the file,
While icons shine in Android style.
The rabbit bounds along the trail.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 8439960a-ff32-4fc1-8be4-bdc8c64eec21
Commits

Reviewing files that changed from the base of the PR and between 13c36ee and a65311c.

Files selected for processing: 3

  • plugins/Layout-Editor/build.gradle.kts
  • plugins/Layout-Editor/src/main/kotlin/org/appdevforall/codeonthego/layouteditor/LayoutEditorPlugin.kt
  • plugins/Layout-Editor/src/main/res/layout/layout_navigation_header.xml

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

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