google / google/ExoPlayer

Set DefaultTimeBar focusable="false" in .xml not working

Open
#10,358 4 comments 0 reactions 1 assignee Claimed by @icbaker View on GitHub
enhancement
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### [REQUIRED] Use case description
I was dev a TV app
When I using dpad, DefaultTimeBar take my focus and take out the onKeyDown events.
I just want display a simple progress bar there.

### Proposed solution

I read the DefaultTimeBar.java, saw that constructor `setFocusable(true);` on line 369
I think that is the couse?

### Alternatives considered
I have a solution is when Activity onCreate, findViewById get my DefaultTimeBar and set focusable to false.
but that seems kind dirty code...
Its there a better way solve this prob?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.