我现在AlertDialog中,有三个EditViet.他们三个都不能为空.
然后他们三个我都用了setError的方法提示.
但是每次我按了确定,然后对话框就消失了.这个问题怎么解决.
我想在其中一个为空的时候,点了确定,对话框还不消失,应该怎么解决呢?
然后他们三个我都用了setError的方法提示.
但是每次我按了确定,然后对话框就消失了.这个问题怎么解决.
我想在其中一个为空的时候,点了确定,对话框还不消失,应该怎么解决呢?
解决方案 »
- Android自动连接PC问题
- 初学Android运行遇到问题,高手请进
- 怎么把文件流变成的字符串变回文件?
- android怎么实现文件加密、解密、以及隐藏
- 像瑞星卡卡助手那样的弹出动画怎样实现?
- 请哪位能查Android源码的亲帮查一下WebChromeClient的一个神秘方法:openFileBrowser
- 在SDK模拟器里,安装了网易应用,又下载安装了植物大战僵尸,为啥玩不了?有声音没画面。
- android客户端与服务器交互,传的数据是JSON格式,请问用webservice好呢还是http好呢?
- android自动打包
- Android如何顺序加载图片?
- gridview 图片问题 android 急急急!
- popupwindow的问题
new AlertDialog.Builder(this).setPositiveButton("a",
new DialogInterface.OnClickListener() { @Override
public void onClick(DialogInterface dialog, int which) {
try {
Field f = dialog.getClass().getSuperclass()
.getDeclaredField("mShowing");
f.setAccessible(true);
f.set(dialog, false);// 不关闭
// f.set(dialog, true);关闭
}
catch(Exception e) {
// TODO: handle exception
}
}
}).show();