반응형
private fun OnClickHandler() {
val builder = AlertDialog.Builder(this)
builder.setTitle("11")
.setMessage("22")
.setPositiveButton("ㄱㄱㄱ",
DialogInterface.OnClickListener { dialog, id ->
})
.setNegativeButton("ㄴㄴㄴ",
DialogInterface.OnClickListener { dialog, id ->
})
val alertDialog = builder.create()
alertDialog.show()
}
반응형
'IT > Android' 카테고리의 다른 글
Kotlin] 안드로이드 Notification 창 클릭 // 버튼 x (0) | 2020.04.23 |
---|---|
Kotlin] 안드로이드 긴 텍스트 다 보여지게 // marquee (0) | 2020.04.22 |
Kotlin] 안드로이드 Recyclerview 아이템 폭 & 간격 & 구분선 표시 (0) | 2020.04.17 |
Kotlin] 안드로이드 구글 캘린더 일정 추가하기 (0) | 2020.04.13 |
Kotlin] 안드로이드 앱 실행 시 전면 광고 넣기 (0) | 2020.04.08 |
댓글