Scafford에서 bottomBar, topBar 안보이게 하기 bottomBar = { Text( modifier = Modifier.height(0.dp), text = "Bottom Bar")}, rememberAppState를 만들어서 상태에 따라 변화 하게 만들 수도 있지만, 위와 같이 단순히 보여주기 싫을 경우에는 height를 0으로 만들면 비용이 들지 않는다. 꼼수라면 꼼수. [안드로이드 공부]/Compose 2024.04.26
Scaffold에 Shape 적용하기 Scafford 자체에는 shape를 적용 하지 못하고, 아래와 같이 Surface로 감싸서 적용 하면 된다. Surface( modifier = Modifier .padding(Dimens.PaddingNormal), shape = MaterialTheme.shapes.large, ) { Scaffold( modifier = Modifier .padding(Dimens.PaddingSmall), topBar = { [안드로이드 공부]/Compose 2024.04.22
Caused by: java.lang.IllegalArgumentException: MaterialThemeUsingMdcTheme requires the host context's theme to extend Theme.MaterialComponents Caused by: java.lang.IllegalArgumentException: MaterialThemeUsingMdcTheme requires the host context's theme to extend Theme.MaterialComponents at com.google.android.material.composethemeadapter.MdcTheme.createMdcTheme(MdcTheme.kt:134) at com.google.android.material.composethemeadapter.MdcTheme.createMdcTheme$default(MdcTheme.kt:125) at com.google.android.material.composethemeadapter.MdcTheme.Mdc.. [안드로이드 공부]/Compose 2023.07.21
[Crash] java.lang.IllegalStateException: removeReporter() called when all reporters have already been removed. 재현 경로 Sunflower Compose 앱에서 앱 종료 > 히스토리 삭제 > 앱 시작 > Crash No solutions in google search 구글에도 해결 방법이 안나온다. add below line in build.gradle(app) >>> 아래 줄 추가 하면 해결 됨. implementation("androidx.activity:activity-compose:1.7.2") [안드로이드 공부]/안드로이드 스튜디오 2023.07.12