求一个安卓程序,要求进入程序以后就会html弹出确认对话框一个对话框,点击确认后继续html弹出确认对话框,html弹出确认对话框5个普通对话框以后html弹出确认对话框

CustomDialog android自定义对话框源代码,点击后弹出 ,简化录入操作。可以用作登录、注
238万源代码下载-
&文件名称: CustomDialog
& & & & &&]
&&所属分类:
&&开发工具: Others
&&文件大小: 138 KB
&&上传时间:
&&下载次数: 80
&&提 供 者:
&详细说明:android自定义对话框源代码,点击后弹出自动对话框,简化录入操作。可以用作登录、注册等对话框使用。-android custom dialog source code, automatic dialog box, click the pop-up and simplify the entry operation. Can be used as a dialog box using the login, registration, etc..
文件列表(点击判断是否您需要的文件,如果是垃圾请在下面评价投诉):
&&CustomDialog\.classpath&&............\.project&&............\.settings\org.eclipse.core.resources.prefs&&............\AndroidManifest.xml&&............\bin\classes\com\test\CustomDialog$AlertType.class&&............\...\.......\...\....\CustomDialog.class&&............\...\.......\...\....\CustomDialogActivity$1.class&&............\...\.......\...\....\CustomDialogActivity$2.class&&............\...\.......\...\....\CustomDialogActivity.class&&............\...\.......\...\....\R$anim.class&&............\...\.......\...\....\R$attr.class&&............\...\.......\...\....\R$drawable.class&&............\...\.......\...\....\R$id.class&&............\...\.......\...\....\R$layout.class&&............\...\.......\...\....\R$string.class&&............\...\.......\...\....\R$style.class&&............\...\.......\...\....\R.class&&............\...\classes.dex&&............\...\.om\test\CustomDialog$AlertType.class&&............\...\...\....\CustomDialog.class&&............\...\...\....\CustomDialogActivity$1.class&&............\...\...\....\CustomDialogActivity$2.class&&............\...\...\....\CustomDialogActivity.class&&............\...\...\....\R$anim.class&&............\...\...\....\R$attr.class&&............\...\...\....\R$drawable.class&&............\...\...\....\R$id.class&&............\...\...\....\R$layout.class&&............\...\...\....\R$string.class&&............\...\...\....\R$style.class&&............\...\...\....\R.class&&............\...\CustomDialog.apk&&............\...\res\drawable-hdpi\a1.png&&............\...\...\.............\dialog_bg.9.png&&............\...\...\.............\icon.png&&............\...\...\.........ldpi\icon.png&&............\...\...\.........mdpi\icon.png&&............\...\resources.ap_&&............\gen\com\test\R.java&&............\project.properties&&............\res\anim\cycle_anim.xml&&............\...\drawable-hdpi\dialog_bg.9.png&&............\...\.............\dialog_cycle.png&&............\...\.............\icon.png&&............\...\.........ldpi\icon.png&&............\...\.........mdpi\icon.png&&............\...\layout\dialog_alert.xml&&............\...\......\dialog_waiting.xml&&............\...\......\main.xml&&............\...\values\strings.xml&&............\...\......\styles.xml&&............\src\com\test\CustomDialog.java&&............\...\...\....\CustomDialogActivity.java&&............\bin\classes\com\test&&............\...\.......\com&&............\...\.om\test&&............\...\res\drawable-hdpi&&............\...\...\drawable-ldpi&&............\...\...\drawable-mdpi&&............\gen\com\test&&............\src\com\test&&............\bin\classes&&............\...\com&&............\...\res&&............\gen\com&&............\res\anim&&............\...\drawable-hdpi&&............\...\drawable-ldpi&&............\...\drawable-mdpi&&............\...\layout&&............\...\values&&............\src\com&&............\.settings&&............\assets&&............\bin&&............\gen&&............\res&&............\src&&CustomDialog
&近期下载过的用户:
&相关搜索:
&输入关键字,在本站238万海量源码库中尽情搜索:
&[] - android TextView各种文本特效显示,包括:文本放大、旋转、移动、跑马灯效果、阴影等,很有参考价值。
&[] - android控制相机拍照的示例程序源代码,拍照后将文件存入指定文件夹中(如SD卡目录)。开发拍照程序可以参考
&[] - android的团购软件,各地热信团购的信息
&[] - Android上的一个五子棋游戏,在eclpse3.7下开发,调试可用
&[] - Android Dialog对话框,android手机任意界面都可以弹出窗口。
&[] - android自定义弹出窗口的实现,对于作出自己特色效果的界面有一定帮助。
&[] - Android之用PopupWindow实现弹出菜单,可以看看代码是怎样实现的
&[] - 和同学写的android的QQ客户端。该程序实现了android设备平台的即时通讯。有注册、登陆、即时通讯等功能模块。能够进行注册验证和登录用户名和密码验证,所有的校验都在server服务器上完成;通过Socket网络通信给客户端发送相应的通知;能够进行添加好友、删除好友;能够显示在线用户和下线用户
&[] - 利用asmack实现android手机客户端之间的即使通信功能,代码主要实现了注册、登录、点对点聊天功能
&[] - android示例开发,人人网的登录注册java Android 应用弹出一个提示对话框 - 为程序员服务
为程序员服务
Android 应用弹出一个提示对话框
new AlertDialog.Builder(this)
.setMessage(&着火了,快把手机扔掉啊&)
.setPositiveButton(&Ok&, null)
//该片段来自于
您可能的代码
相关聚客文章
相关专栏文章[Android开发][文章]AlertDialog弹出对话框里面于输入框,点击ok的时候如果输入
[Android开发][文章]AlertDialog弹出对话框里面于输入框,点击ok的时候如果输入
更新: 06:02:09
AlertDialog 弹出对话框里面于输入框,点击ok的时候如果输入框没有填写,则AlertDialog 弹出的对话框不关闭怎么实现。
在确定里面进行判断&&判断如果为空弹出提示
在OKbutton的click事件里判断,输入框是否为空,就行了,不为空做什么,为空做什么这不是很好做么
AlertDialog弹出的对话框点击setNegativeButton&&或者setPositiveButton 都会自动关闭对话框吧?
添加一个继承AlertDailog的类并且重写dismiss方法,如果输入框为空则不调用父类方法。
做一下判断就可以弹出对话框,根据你自己的需要
楼上正解& && && && && && && && && && && && &
在positivebutton点击事件里做个判断啊,如果edittextview.gettext.length()&0 再相应消失呗
这个很简单啊。只要你点击ok那个按钮的时候做一个判断,判断输入框的内容如果为空则不做任何操作就行了
final EditText editText = new EditText(this);
& & & & & & & & AlertDialog alertDialog = & & & & new AlertDialog.Builder(this)
& & & &&&& & & & .setTitle(&请输入&)
& & & &&&& & & & .setIcon(android.R.drawable.ic_dialog_info)
& & & &&&& & & & .setView(editText)
& & & &&&& & & & .setPositiveButton(&确定&,new DialogInterface.OnClickListener(){
& & & &&&& & & & & & & & @Override
& & & &&&& & & & & & & & public void onClick(DialogInterface dialog, int arg1) {
& & & &&&& & & & & & & & & & & &&&try {
& & & & & & & & & & & & & & & & & & & & Field field = dialog.getClass().getSuperclass().getDeclaredField(&mShowing&);&&
& & & & & & & & & & & & & & & & & & & &&&field.setAccessible(true);&&
& & & & & & & & & & & & & & & & & & & && &//设置mShowing值,欺骗android系统& &
& & & & & & & & & & & & & & & & & & & &&&if(&&.equals(editText.getText().toString())){
& & & & & & & & & & & & & & & & & & & & & & & &&&Toast.makeText(getApplicationContext(), &不能为空&, 0).show();
& & & & & & & & & & & & & & & & & & & & & & & &&&field.set(dialog, false);
& & & & & & & & & & & & & & & & & & & &&&}else{
& & & & & & & & & & & & & & & & & & & & & & & &&&field.set(dialog, true);
& & & & & & & & & & & & & & & & & & & &&&}
& & & & & & & & & & & & & & & & } catch (Exception e) {
& & & & & & & & & & & & & & & & & & & & e.printStackTrace();
& & & & & & & & & & & & & & & & }&&
& & & &&&& & & & & & & & }
& & & &&&& & & & }).create();
& & & &&&& & & & alertDialog.show();复制代码
可以利用反射来实现
获取一下 和空比较。
判断edittext.length()是否大于0
他们说的应该能解决把,我来弄点e币
继承系统的ALERTDIALOG 自己怎么定义就机怎么定义按钮的点击事件
查看原网页[0]&
举报本内容
&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&& 15:03:51
&&网站联系: qq: email:&
Android开发资料网

我要回帖

更多关于 php弹出确认对话框 的文章

 

随机推荐