Develop
2015.07.09 10:04
[android] AlertDialog 메시지 창 띄우기
조회 수 981 댓글 0
메세지를 띄우고 [확인] 버튼만 적용할 경우
AlertDialog.Builder alert = new AlertDialog.Builder(MyActivity.this); alert.setPositiveButton("확인", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); //닫기 } }); alert.setMessage("테스트 메세지"); alert.show();
메세지를 띄우고 [확인], [취소] 버튼으로 적용할 경우
AlertDialog.Builder alert_confirm = new AlertDialog.Builder(MyActivity.this); alert_confirm.setMessage("Yes or No?").setCancelable(false).setPositiveButton("YES", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // 'YES' } }).setNegativeButton("NO", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // 'No' return; } }); AlertDialog alert = alert_confirm.create(); alert.show();
[출처] http://shstarkr.tistory.com/144
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
201 | Develop |
[php] 탐색기와 같은 다이나믹 트리(xml/xsl 이용)
![]() |
hooni | 2013.04.23 | 7200 |
200 | PPT |
[php] 프레임워크 발표자료 및 샘플 구현 소스
![]() |
hooni | 2013.04.23 | 17541 |
199 | Develop |
[php] 피코맥스용 검색엔진 ㅋㅋ
![]() |
hooni | 2013.04.23 | 6814 |
198 | Develop | [php] 하루 전 날짜 쉽게 구하기. | hooni | 2013.12.25 | 12285 |
197 | Develop | [php] 한글 문자열 자르기 (utf-8) | hooni | 2015.11.10 | 1458 |
196 | Develop |
[php] 한샘 전자발주 시스템..
![]() |
hooni | 2013.04.23 | 12021 |
195 | Develop | [php] 현재에서 일정한 날짜 더하기.. | hooni | 2013.04.23 | 7157 |
194 | Develop |
[php][laravel] 라라벨 개발환경 세팅하기 (Mac, Window)
2 ![]() |
hooni | 2017.12.15 | 2765 |
193 | Develop |
[php][laravel] 라라벨 프로젝트 생성 및 구조
![]() |
hooni | 2017.12.15 | 2551 |
192 | Develop | [php][laravel] 초간단 MacOS에서 Laravel 개발 환경 구축 | hooni | 2017.12.15 | 2111 |
191 | PPT |
[ppt] Equation Solving 발표 자료 (@AjaxUI랩 밋업데이 2012.02.28)
![]() |
hooni | 2015.07.22 | 994 |
190 | PPT |
[ppt] Equation Solving 발표 자료 (@PWE랩 톡데이 2011.07.26)
![]() |
hooni | 2013.04.23 | 24723 |