0

I have a ListView with a custom row type that contains the following:

|Text|Spinner|

I have the row currently clickable on the spinner but not on the text. My problem is that if I used the built in keyboard D-Pad to browse the ListView then the entire row is highlighted when I only want it to highlight the Spinner. How do you handle the D-PAD in such a fashion?

0

1 Answer 1

1

In your XML file, locate the Spinner and add:

android:focusable="true"

Then disable focusing on the layout that contains them. For instance, if you have those side-by-side inside of a LinearLayout, then find the LinearLayout and add:

android:focusable="false"

It's also a good idea to ensure the text is focusable so that users with vision impairment can use a screen reader to hear the text read aloud.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.