Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- appbar
- textview
- LifeCycle
- TEST
- drift
- livedata
- intent
- 테스트
- ScrollView
- binding
- data
- scroll
- Kotlin
- Flutter
- textfield
- 앱
- Button
- tabbar
- android
- viewmodel
- Coroutines
- 안드로이드
- activity
- CustomScrollView
- Navigation
- DART
- Compose
- Dialog
- 계측
- 앱바
Archives
- Today
- Total
Study Record
[Android] Compose 다이얼로그 본문
728x90
😶 Alert Dialog
AlertDialog(
onDismissRequest = {
// Dismiss the dialog when the user clicks outside the dialog or on the back
// button. If you want to disable that functionality, simply use an empty
// onCloseRequest.
},
title = { Text(text = stringResource(R.string.congratulations)) },
text = { Text(text = stringResource(R.string.you_scored, score)) },
modifier = modifier,
dismissButton = {
TextButton(
onClick = {
activity.finish()
}
) {
Text(text = stringResource(R.string.exit))
}
},
confirmButton = {
TextButton(onClick = onPlayAgain) {
Text(text = stringResource(R.string.play_again))
}
}
)
androidx.compose.material3 | Android Developers
androidx.appsearch.builtintypes.properties
developer.android.com
Dialogs – Material Design 3
Dialogs provide important prompts in a user flow. They can require an action, communicate information for making decisions, or help users accomplish a focused task.
m3.material.io
728x90
'안드로이드 > compose' 카테고리의 다른 글
[Android] Compose 앱바와 Navigation 연결하기 (0) | 2023.11.17 |
---|---|
[Android] Compose 화면 간 이동(Navigation) (0) | 2023.09.19 |
[Android] Compose 단위 테스트 (0) | 2023.09.13 |
[Android] Compose ViewModel (0) | 2023.09.13 |
[Android] Compose 애니메이션 효과 (0) | 2023.09.06 |