Questions tagged [android-jetpack-compose-tv]
Jetpack Compose for TV is Android’s modern toolkit for building native declarative UI for TV using the framework made by Google.
android-jetpack-compose-tv
45
questions
1
vote
1
answer
50
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
121
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
79
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
64
views
For Jetpack Compose Tv the remote switches not working in page where i show video view
For Jetpack Compose Tv the remote switches not working in page where i show video view
Like in home page i was able to select different cards and by clicking it i am able to navigate to showMovie page ...
0
votes
0
answers
87
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
102
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 ...
0
votes
2
answers
638
views
How to focus on a specific item in a row based on some flag?
Consider the following code :
val tvListState = rememberTvLazyListState()
val coScope = rememberCoroutineScope()
Column{
TvLazyRow(
horizontalArrangement = Arrangement.spacedBy(15.dp),
...
0
votes
1
answer
63
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
183
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
229
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 = ...
1
vote
1
answer
416
views
Compose TV scrolling with D-PAD
I have this code
LazyVerticalStaggeredGrid(
columns = StaggeredGridCells.Fixed(2),
modifier = modifier.fillMaxSize(),
contentPadding = PaddingValues(
top = 16.dp,
end = 12....
2
votes
1
answer
280
views
Image offset in Android TV auto-slider (Jetpack Compose)
The first image of the slider works fine, but from the second on it seems so that the images are not centered, and the second one seems to displace the first one, the third one displaces the first and ...
0
votes
0
answers
133
views
How to add blur effect to a lazy column on Android versions lower than 12?
This works perfectly on Android versions 12+
LazyColumn(modifier = Modifier
.testTag(TestTag)
.fillMaxSize()
.blur(blurredBackground)
I tried Cloudy library but it ...
0
votes
0
answers
606
views
Jetpack Compose + Fragment using AndroidViewBinding: how to direct Focus back to side menu from the Fragment?
I am trying to create an app with Jetpack Compose on Android TV. The app implements a Side Drawer Menu, a Navhost and corresponding routes. One of the routes consists of a Fragment, which I have ...
0
votes
1
answer
670
views
Jetpack Compose TvLazyColumn PivotOffset for items with different sizes
I am using TvLazyColumn composable with 7 items, and inside of each item has a title and a TvLazyRow with a list of video thumbnail images which are focusable.
Out of the 7 items, 6 have identical ...