microsoft / microsoft/AdaptiveCards
[Android Renderer] TextBlock with two links does not property receive focus
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Platform
- Android
Issue
Example TextBlock: "this is a string link and this is another link"
This scenario is not properly handled in the Android renderer. If a TextBlock contains a url, we allow the entire control to receive focus. If there are two separate links, we cannot navigate between them, and pressing "Enter" does not activate either link.
Seems like the problem here is that URLSpan is not a view, so we cannot use the SetFocus method.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Android renderer's TextBlock handling and inspect how URLSpan links interact with SetFocus. Reproduce the example with two links, then verify that keyboard focus can move between both links and pressing Enter activates the focused link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- accessibility, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100