49 questions
1
vote
1
answer
308
views
Android TV Compose: How to auto-focus selected NavigationDrawerItem when ModalNavigationDrawer opens
Problem:
I'm developing an Android TV app using Jetpack Compose with ModalNavigationDrawer. When the drawer opens, I want the focus to automatically move to the currently selected NavigationDrawerItem ...
0
votes
0
answers
225
views
How to manage focus (and restore it) between TVLazyRow/LazyRow and focusable buttons in Android TV app?
I am developing an Android TV app using Jetpack Compose and D-pad navigation.
My main screen UI looks like this:
A Column as the main container
The first item is a TVLazyRow or a normal LazyRow (...
0
votes
2
answers
484
views
Jetpack Compose - Is it possible to use focusRestorer in a LazyRow with changing content?
I am working on a TV app with many LazyRows of content. Most are static, but some can be changed depending on the user's actions. For example, a Keep Watching row with Cards that lead to content the ...
1
vote
0
answers
183
views
DPAD events handling with Jetpack Compose when Talkback is ON (Media 3 exoplayer)
I am using ExoPlayer (Media3) in Android TV with compose, a streaming application, but when Accessibility/Talkback is ON, DPAD events are not being captured at client side, only back/Enter/Center ...
2
votes
2
answers
537
views
Why is my Jetpack Compose TV preview showing a mobile layout instead of TV_720p in Android Studio?
I'm trying to preview my Jetpack Compose layout on a TV device configuration (TV_720p), but despite specifying TV_720p as the device, the preview in Android Studio still looks like a mobile phone. ...
1
vote
1
answer
466
views
How to move focus back to the restored position in Android TV by Compose?
I use a LazyColumn which contains several LazyRow.
When the focus moves to another row, for example, from row A to row B, I need to restore the last focused position in row A; And when the focus is ...
1
vote
1
answer
136
views
How to return focus back the the previous view (remote control click)
There is such a screen (Android TV)
I need to implement the following:
When the screen opens, the focus should be on the first view in the left panel (Left Panel: 0).
The user can navigate (with the ...
1
vote
0
answers
495
views
Android Compose (TV) wrong focus when TTS is on
Using jetpack compose to create an APP for TV platforms and I've been trying to create a Vertical List of Horizontal Lists using a LazyColum/LazyRow having a enter Focus (first item Top Left), when ...
0
votes
1
answer
171
views
How to match the TvLazyRow Title with the piviot offset of the items
Here is what i want my TvLazyColumnn to Look like:
I need to show the last passed item which is not a problem
but i also want to show the title of the TvLazyColumnn to match to the start or the ...
0
votes
0
answers
139
views
Android jetpack compose TV, How to overlap items inside TvLazyColumn
TvLazyColumn{
item{
// item1 Banner video playing
}
item{
//item2 Row data
}
item{
//item3 Row data
}
}
My requirement is while open screen , i want to ...
0
votes
1
answer
177
views
PiviotOffset of TvLazyColunm not working for nested lists
I have a TvLazyColunm and inside that many TvLazyRows
ComposeTvAppTheme {
// A surface container using the 'background' color from the theme
Column(modifier ...
1
vote
1
answer
2k
views
How to focus on a specific item in a TvLazyRow?
Consider the following code :
val tvListState = rememberTvLazyListState()
val coScope = rememberCoroutineScope()
Column{
TvLazyRow(
horizontalArrangement = Arrangement.spacedBy(15.dp),
...
0
votes
1
answer
115
views
How to discover the selected item in TvLazyColumn
I would like to animate the title of a row in a TVLazyColumn depending on whether it is the one in focus or not.
I can't find how to get which item in the column has the focus.
1
vote
0
answers
256
views
How to achieve smooth scroll like google home tv application
I am using TvLazyColumn to render multiple rows and TvLazyRow to render multiple items inside each row. I am able to render data however the app crashes sometimes when user scrolls fast using ...
3
votes
0
answers
425
views
Focus restore doesn't work for Jetpack-Compose Android
I have this compose code:
@Composable
fun TabItems(
viewableViewState: ViewableViewState.Ready,
onPlayClicked: (viewableInterface: ViewableInterface) -> Unit,
modifier: Modifier = ...