how to use jetpack compose in android tv? The graphics are displayed normally, but the remote control cannot be used.
Asked
Active
Viewed 1,944 times
1

vighnesh153
- 4,354
- 2
- 13
- 27

DeeHY
- 206
- 2
- 6
-
2Have you tried setting `focusable()` modifier as suggested in [this comment](https://stackoverflow.com/a/66652181/6835732)? – Primož Ivančič May 28 '21 at 10:51
-
`focusable()` doesn't work unfortunately – BapNesS Jul 10 '21 at 23:32
-
You can check out [jetpack compose for tv packages](https://developer.android.com/jetpack/androidx/releases/tv) which makes it simpler to use Jetpack Compose to build TV applications – vighnesh153 Mar 06 '23 at 11:06
1 Answers
0
Add a Modifier.focusable()
– that should do the trick.

Adrian Mole
- 49,934
- 160
- 51
- 83

Richard Onslow Roper
- 5,477
- 2
- 11
- 42