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 | 31 |
Tags
- CustomScrollView
- DART
- scroll
- data
- Navigation
- binding
- textfield
- TEST
- 계측
- Kotlin
- tabbar
- 안드로이드
- Flutter
- Dialog
- 테스트
- textview
- intent
- ScrollView
- 앱
- 앱바
- Coroutines
- drift
- LifeCycle
- Compose
- Button
- appbar
- activity
- viewmodel
- livedata
- android
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))
}
}
)
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 |