https://kotlinlang.org logo
#compose
Title
# compose
s

Sean Oh

02/21/2023, 6:50 PM
I'm trying to build a super simple TV app using jetpack compose, with
Copy code
implementation "<http://androidx.tv:tv-foundation:1.0.0-alpha04|androidx.tv:tv-foundation:1.0.0-alpha04>"
implementation "<http://androidx.tv:tv-material:1.0.0-alpha04|androidx.tv:tv-material:1.0.0-alpha04>"
but I ran into an issue where items in
TvLazyRow
doesn't have any default focus indication. It also doesn't register focus unless I specifically call
focusRequester.requestFocus()
(and yes, even with given focus, it doesn't have that default orange indicator). Also I used ExoPlayer with default UI, but D-pad can't really move any focus. Overall I feel like composable widgets just can't grab focus automatically? Has anyone run into this issue? I wanted to try compose with TV app, and I thought this would be implemented even for alpha build. Thank you in advance!
t

timrijckaert

04/02/2023, 9:41 AM
There is a
<http://androidx.tv|androidx.tv>.material3.Surface
which you can use which has a default Scale en Glow indicator if I remember correctly
But yes leanback API's have always been treated poorly at Google's side
7 Views