Skip to content

tv grid view

milan jurkulák edited this page Aug 29, 2024 · 2 revisions

//tvlib/org.mjdev.tvlib.ui.components.gridview/TvGridView

TvGridView

[androidJvm]\

@Composable

fun TvGridView(modifier: Modifier = Modifier, items: List<Any?> = listOf( Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit, Unit ), state: LazyGridState = rememberLazyGridState(), cardWidth: Dp = computeCardWidth(), aspectRatio: Float = 16f / 9f, contentScale: ContentScale = ContentScale.Crop, onItemFocus: (item: Any?, fromUser: Boolean) -> Unit? = null, onItemClick: (item: Any?) -> Unit? = null, verticalArrangement: Arrangement.HorizontalOrVertical = Arrangement.spacedBy(16.dp), horizontalArrangement: Arrangement.HorizontalOrVertical = Arrangement.spacedBy(16.dp), contentOfItem: @Composable(item: Any?) -> Unit = { item -> PhotoCard( item = item, aspectRatio = aspectRatio, contentScale = contentScale, cardWidth = cardWidth, onClick = onItemClick, onFocus = onItemFocus ) })

Clone this wiki locally