参考 http://www.cnblogs.com/chunhui588/archive/2010/10/01/android_toast_and_alertdialog.html   Android消息提示框和对话框  有多种样式。


比如我使用最简单的:

       AlertDialog show=new  AlertDialog.Builder(this)       .setTitle("退出播放" )       .setMessage("打开媒体源失败了" )       .setPositiveButton("确定" ,  null )       .show();  
是可以的。


还有

参考 http://stackoverflow.com/questions/11585099/alertdialog-show-new-alertdialog-builderthis-is-undefined和  http://techblogon.com/alert-dialog-with-edittext-in-android-example-with-source-code/#   可以构造  dialog activity


更多相关文章

  1. android 摄像头(我想在类里面直接编辑UI界面,但是老是提示空指针,麻
  2. 安卓自定义属性,Android(安卓)studio无法提示,只提示3个
  3. Android(安卓)Enter软件盘监听事件。
  4. Android中如何使用自定义对话框
  5. Android(安卓)中 AlertDialog 的多种创建方式(二)
  6. Android(安卓)实现沉浸式体验
  7. error: resource android:attr/fontVariationSettings resource
  8. Android布局自定义Shap圆形ImageView,可以单独设置背景与图片
  9. 定制自己的 Android(安卓)Dialog 信息提示对话框

随机推荐

  1. Android复习(七)
  2. Android文章收藏
  3. 【实战】android获取天气情况(Json来返回
  4. Android:Task '' not found in root proj
  5. android 底部菜单写法之FragmentTabHost
  6. android webview 设置
  7. AndroidStudio打包apk出现的问题 `Error:
  8. react-native开发实例之替换默认logo——
  9. Android(安卓)Studio如何引用外部Library
  10. Android(安卓)JNI和NDK学习(3)--Android.