microsoft / microsoft/AdaptiveCards

[Android Renderer] TextBlock with two links does not property receive focus

Open
#8,077 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Accessibility
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.