I work on the screen for android TV (Jetpack Compose) implementation where (specifically) Card size looks differently for (emulator) 720p TV and 1080p TV
720:
1080:
Card code:
...
Card(
modifier = Modifier
.width(412.dp)
.height(200.dp),
border = CardDefaults.border(border = Border.None),
colors = CardDefaults.colors(
containerColor = ColorTokens.grey_40,
contentColor = ColorTokens.white,
focusedContainerColor = Color.White,
focusedContentColor = Color.Black,
pressedContainerColor = Color.Gray,
pressedContentColor = Color.LightGray
),
shape = CardDefaults.shape (shape = RoundedCornerShape(CornerRadiusTokens.radius_300.withDPIOffset(LocalContext.current))),
onClick = { /*TODO*/ },
)
...
I would expect Cards to looks the same for both screens since dp
in use, what am I missing here?