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.

Check out Compose for TV packages which makes it simpler to use Jetpack Compose to build TV applications.

Links

34 questions
1
vote
2 answers

How to scroll column so that all its children are brought into view?

I have a column which consists of multiple composables of one Text (For row title) and one lazyrow (For row items), for TV screens For reference : Column { AlignedRow(data) } fun AlignedRow(data) { if (data != null) Column { …
1
vote
1 answer

Shadow clipping in LazyColumn/LazyRow

The shadow is clipping in a very odd way when it's overlapping other items in a LazyRow and I can't figure out why. I'm running this code on TV emulator but I can't imagine that would make any difference. Attempt 1: Modifier.shadow() val colors =…
1
vote
0 answers

Jetpack Compose and Wireless Direct

I know this is way too general, but I have a reason. I am looking forward to make a simple app that can transfer strings from my mobile device to my TV. I wish to transfer this data over Wi-Fi, provided that the TV and my phone are on the same…
1
vote
2 answers

Hook Compose Slider to MediaPlayer

I have the MediaPlayer configured inside my ViewModel. All I want is a way to observe the mediaPlayer.currentPosition in a Composable. However, I cannot find a way to store it in a MutableState value for Compose to observe. I just have a simple…
1
vote
1 answer

Unable to Focus Anything other than TextField

I have already viewed other posts on the site. They suggest using the focusRequestor modifier and I've tried that. val scope = rememberCoroutineScope() val focusRequester = remember { FocusRequester() } Text( modifier = Modifier …
1
vote
1 answer

How to use jetpack compose in Android TV with remote control?

how to use jetpack compose in android tv? The graphics are displayed normally, but the remote control cannot be used.
0
votes
0 answers

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 header style (1 row header text) so the padding…
0
votes
0 answers

Make Column scroll item farther into view

I have an app with a pretty standard TV layout with a list of video shelves. I implemented it as a TvLazyColumn with each shelf being a TvLazyRow of items. Everything worked fine. Due to business requirements, I had to change the parent composable…
0
votes
1 answer

Compose ConstraintLayout Scrolling

Hey guy's im working on porting my Android TV app to Compose. The only issue i have is the EPG guide..There is not much info on this yet. I got a good idea but need help with this.. Top Hours scroll is done Side channels Vertical scroll is done The…
0
votes
0 answers

Restore focus when navigating back

I'm writing a TV app using Jetpack Compose (1.0.0-alpha06). The main screen of my app is a pretty basic list of shelves/rows implemented using a TvLazyColumn with several TvLazyRows. When I navigate to child/detail screen and pop back to the main…
0
votes
0 answers

androidx.core.view.accessibility.AccessibilityNodeInfoCompat.setStateDescription AccessibilityNodeInfoCompat.java Jetpack Compose

I used Jetpack Compose for an AndroidTV project which has a video player, for some users in the video player, after playing for 5-10 minutes the app crashes and logs this error (I'm using Appcenter to log errors in…
0
votes
1 answer

Animate UI in jetpack compose

I need some help animating the entire UI of my project for android TV, based on some live data. The following the structure I have gone for: @Composable fun MainPageUI(){ var isClicked by remember { mutableStateOf(false) } Scaffold(topBar =…
0
votes
0 answers

Kotlin Desktop Compose : two displays app with 2 windows, each occupy it's display and have a choice

I've been looking through docs and didn't find any info on how to set a display on which the window should be shown. The idea of my app is to be shown on 2 displays, one is full-screen on a TV for presentation and 2nd is on a desktop with a…
0
votes
1 answer

Crash when tapping clear on Fire Tv which has an Outlined Text Field on jetpack compose but it works perfectly fine on Android Tv

FATAL EXCEPTION: main Process: com.abc.firetv.screen.debug, PID: 3070 java.lang.RuntimeException: Error while applying EditCommand batch to buffer (length=1, composition=null, selection=TextRange(1, 1)): CommitTextCommand(text.length=0,…
0
votes
0 answers

Setting up Ime Action as search has no effect on fire tv

I have an Outlined Text Field to which my ImeAction is set as ImeAction.Search.The search action is visible for the soft keyboard in Android TV But does not work for fire Tv.Any solution for this. passed KeyboardActions.Default.copy(imeAction =…