阅读更多 发现Android中的AlertDialog原来可以使用方法链式来创建和显示
new AlertDialog.Builder(this).setTitle("提示").setMessage("提示消息").setPositiveButton("确定", new DialogInterface.OnClickListener() {@Overridepublic void onClick(DialogInterface dialog, int which) {}}).setNegativeButton("取消", new DialogInterface.OnClickListener() {@Overridepublic void onClick(DialogInterface dialog, int which) {}}).setCancelable(false).create().show();

更多相关文章

  1. Android(安卓)横向选择器(HorizontalPickerView.java)
  2. Android(安卓)广播 使用方法
  3. Android中Handler的作用和使用方法
  4. Android(安卓)Studio简单设置
  5. android map的使用方法
  6. Android(安卓)Span的各种使用方法,简单、易懂、全面、详细
  7. android EditText中的inputType
  8. Android自定义属性时TypedArray的使用方法
  9. Android(安卓)Studio中使用com.android.support.v4.view.ViewPag

随机推荐

  1. android系统体系结构
  2. Android(安卓)开发者必备的十个工具
  3. Android(安卓)中文 API――android.widge
  4. Android线程的学习
  5. Android全屏,隐藏状态栏和标题栏
  6. Android开发中的游戏开发使用View还是Sur
  7. 博文视点大讲堂35期-It's Android(安卓)T
  8. 经典Android系统源代码
  9. Android导出一个JAR库/Android如何将程序
  10. Android开发之旅:活动与任务