일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Hilt
- 프로그래머스
- relay
- pandas
- ProGuard
- Compose
- 코루틴
- Gradle
- boj
- textfield
- Python
- 암호학
- Rxjava
- Codeforces
- architecture
- AWS
- TEST
- GitHub
- MiTweet
- 쿠링
- 코드포스
- NGINX
- 백준
- MyVoca
- Kotlin
- livedata
- android
- androidStudio
- Coroutines
- Coroutine
- Today
- Total
목록Compose (29)
이동식 저장소
아래 글에 나와있는 내용대로 하면 99%는 해결된다. Guide - Accompanist Jetpack Navigation Compose Animation A library which provides Compose Animation support for Jetpack Navigation Compose. Warning This library is deprecated, with official navigation-compose support in androidx.navigation.compose. The original documentation google.github.io 그러나 ``AnimatedContentScope``를 migrate하는 방법은 글에 나와있지 않은데, ``AnimatedContentT..
Compose Material 컴포넌트 중 ``TextField`` 종류가 TalkBack의 포커스를 받지 못하는 경우가 있다. 마치 해당 컴포넌트가 없는 것처럼 그냥 지나쳐 버린다. 원인 은 솔직히 잘 모르겠다. 그런데 ``TextField``에 label을 추가해 주면 정상 작동한다. OutlinedTextField( label = { TitleSmall(text = stringResource(R.string.school_text_field_label)) }, // ... ) 접근성 차원에서라도 라벨을 꼬박꼬박 붙여주는 걸로..?
``tint = Color.Unspecifed``를 설정하자. 하... Icon( painter = painterResource(...), contentDescription = null, tint = Color.Unspecified, )
Compose로 혼자 뚝딱뚝딱 하던 도중 composable이 어떠한 방식으로든 터치되고 있는지 확인해야 하는 경우가 생겼다. 어떤 방식으로든 focus를 받고 있을 때 아이콘을 보여주고 싶었기 때문이다. 이 기능을 구현하려면 일단 Compose에서의 터치 이벤트를 공부해야 한다. 일단 터치 이벤트가 발생했는지 판단하는 ``isFocused`` 변수를 선언하자. 이 값이 true이면 터치 이벤트가 발생한 것이므로 아이콘을 보여줘야 한다. @Composable fun RotatingIndicatorGradient() { var isFocused by rememberSaveable { mutableStateOf(false) } RotatingGradient { AnimatedVisibility( visibl..
CompositionLocal 값 중 ``LocalInspectionMode``를 참조하면 된다. True if the composition is composed inside a Inspectable component. 사용 예시는 다음과 같다. val isPreview = LocalInspectionMode.current Box { if (isPreview) { // 이 구문은 Preview에서만 실행됨 } // 이 구문은 항상 실행됨 } 참고자료 androidx.compose.ui.platform | Android Developers androidx.car.app.managers developer.android.com