반응형
Card(
onClick = {},
colors = CardDefaults.cardColors(
containerColor = MaterialTheme.colorScheme.surfaceVariant,
),
modifier = Modifier.fillMaxWidth()
)
containerColor 옵션을 사용해서 카드뷰의 배경색상을 변경해줄 수 있다.
출처 :
How to set Background Color for Material3 Card in Android Compose?
I try to set the background color for the Material3 Card in Android Jetpack Compose, using the backgroundColor parameter. implementation 'androidx.compose.material3:material3:1.0.0-alpha14' // * Card
stackoverflow.com
How to set Background Color for Material3 Card in Android Compose?
I try to set the background color for the Material3 Card in Android Jetpack Compose, using the backgroundColor parameter. implementation 'androidx.compose.material3:material3:1.0.0-alpha14' // * Card
stackoverflow.com
반응형
'Android' 카테고리의 다른 글
Android Fragment간 통신방법 (0) | 2023.07.05 |
---|---|
Android FragmentContainerView Error (0) | 2023.06.16 |
Single Live Event란 + 사용방법 (0) | 2023.06.12 |
Android Compose에서 dimens.xml 리소스 사용하는 방법 (0) | 2023.06.10 |
Android Widget 만들기 (0) | 2023.05.27 |
댓글