推荐安卓开发神器(里面有各种UI特效和android代码库实例)
LayoutInflater factory = LayoutInflater.from(Test.this);
final View textEntryView = factory.inflate(R.layout.test, null);
AlertDialog dlg = new AlertDialog.Builder(Test.this)
.setTitle("Input password")
.setView(textEntryView)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
EditText etPassword = (EditText)textEntryView.findViewById(R.id.et_name);
}
})
.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
//finish();
}
})
.create();
dlg.show();
相关推荐
本文实例讲述了Android编程实现在自定义对话框中获取EditText中数据的方法。分享给大家供大家参考,具体如下: 在项目中忽然遇到这样的问题,需要自定义对话框,对话框需要有一个输入框,以便修改所选中的价格,然后...
使用Orca在VS安装项目中创建自定义对话框
WPF 自定义对话框,修正完美版,下载可以用,可以自定义样式
Android例子源码自定义对话框
自定义对话框实例,为了让自己的对话框更有个性和特色,这个源码可以让大家实现
InstallShield自定义对话框浅谈
Android自定义对话框Dialog(界面美化)
防开源中国android客户端的登陆对话框
android自定义对话框、dianlog;详细讲解请参考:http://blog.csdn.net/tangron/article/details/19474385
微信小程序开发——自定义对话框+弹出和隐藏动画,博客地址http://blog.csdn.net/pcaxb/article/details/56276180
若要使用当前自定义对话框,只需把单元文件加入工程. 调用ShowMsg函数,定义如下: function ShowMsg(Text:String;Caption:String= 软件名称 ;OptionText:string= 详细的信息 ;ShowType:Integer=SB_OK;ShowIcon:...
纯代码自定义对话框可打印,其实 就是把窗体以类的方式实现。 纯代码自定义对话框可打印,其实 就是把窗体以类的方式实现。
界面比较简单,就是弹出一个自定义的对话框,对话框中自动播放视频,播放完毕后对话框消失,与视频广告功能相似。
Android应用源码之android 自定义对话框.zip
安卓Android源码——android 自定义对话框.rar
在swing实际开发中,使用自定义对话框是非常有用的。 该例子是翻写sun JDK中CustomDialog.java和DialogDemo.java
pyqt自定义对话框,有两个输入框,有两个按钮:ok和cancel
通过一个简单的例子实现了Android系统对话框和自定义对话框,有需要的可以看看!
Android自定义对话框(代码),拿着便可使用