1.解决android自定义dialog无法弹出输入法:
在show()方法调用之前,用dialog.setView(new EditText(context))添加一个空的EditText,由于是自定义的AlertDialog,有我们指定的布局,所以设置这个不会影响我们的功能,这样就可以弹出输入法了……
2.可以弹出输入法了,但了为了增强用户体验性,当dialog中含有editText时应该,在显示dialog的同...
分类:
移动开发 时间:
2015-02-04 11:03:47
阅读次数:
133
方法一:1,布局xml页面<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><TextViewandroid:id="@+id/tv_content..
分类:
其他好文 时间:
2015-02-04 00:43:38
阅读次数:
127
用 Dialog 对话框来实现窗体的随意切割。在资源中加入 Dialog 选择 IDD_FORMVIEW 资源。。分别新建FormViewOne,FormViewTwo FormViewThree 类,分别继承基类 CFormView。class CMyFormViewOne : public CF...
今天我们学习的内容是实现两种对话框(Dialog),第一种是询问是否退出对话框,另外一种是带图标的列表对话框,程序的执行效果是,我们点击button1的时候,弹出第一种对话框,我们点击button2的时候,弹出另外一种对话框。(1) 首先是布局方面,有三个xml文件,一个是Activity的布局文件...
分类:
移动开发 时间:
2015-02-03 19:17:16
阅读次数:
213
新手总结的开发中所遇到错误及解决办法,如有不对,欢迎指正,如有更好的解决办法,也请不吝赐教。
一、dialog.show()引起的android.view.WindowManager$BadTokenException错误
错误日志
android.view.WindowManager$BadTokenException: Unable to add window -- toke...
分类:
移动开发 时间:
2015-02-03 15:06:54
阅读次数:
287
转自: http://www.cnblogs.com/salam/archive/2010/11/15/1877512.html Activities提供了一种方便管理的创建、保存、回复的对话框机制,例如onCreateDialog(int),onPrepareDialog(int, Dialog....
分类:
移动开发 时间:
2015-02-03 14:41:37
阅读次数:
213
mDateDialog.setButton(DialogInterface.BUTTON_POSITIVE, "确定",
new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
resetDialog(mDateDialog, t...
分类:
其他好文 时间:
2015-02-03 11:15:58
阅读次数:
119
Zebra_Dialog has no dependencies other than jQuery 1.4.1+website:https://github.com/stefangabos/Zebra_Dialog/截止目前为止,该项目已经一年多没有人维护了。1.加载 ...
分类:
其他好文 时间:
2015-02-02 17:54:20
阅读次数:
293
This page demonstrates how to display a simple modal dialog. The button below will invoke blockUI with a custom message. Depending upon the user respo...
分类:
Web程序 时间:
2015-02-02 15:24:52
阅读次数:
204
网页开发中,弹窗还是很有必要的。本人比较喜欢jquery ui的dialog。但是jquerydialog中也有一些略显不方便的,如:没有z-index的参数设置,脚部的按钮样式没办法自定义……我自己简单地写了个使用jquerydialog封装函数,有兴趣的朋友看看。JavaScript(看起来有点...
分类:
Web程序 时间:
2015-02-02 10:44:05
阅读次数:
173