티스토리 뷰

노트/Android

AlertDialog

태엽푸는새 2016. 8. 19. 09:07

(new AlertDialog.Builder(MainActivity.this))
.setMessage("삭제할까요?")
.setPositiveButton("예", new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
        // Do something...
    }
})
.setNeutralButton("취소", new DialogInterface.OnClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which) {
        dialog.cancel();
    }
}).create().show();

'노트 > Android' 카테고리의 다른 글

Disable spell checking  (0) 2016.08.19
Don't reload application when orientation changes  (0) 2016.08.19
Get WebSource  (0) 2016.08.19
postDelayed  (0) 2016.08.19
TextView scroll  (0) 2016.08.19
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
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
글 보관함