(1)Popupwindow在显示之前一定要设置宽高,Dialog无此限制。
(2)Popupwindow默认不会响应物理键盘的back,除非显示设置了popup.setFocusable(true);而在点击back的时候,Dialog会消失。
(3)Popupwindow不会给页面其他的部分添加蒙层,而Dialog会。
(4)Popupwindow没有标题,Dialog默认有标题,可以通过dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);取消标题
...
分类:
移动开发 时间:
2014-05-10 09:50:05
阅读次数:
566
今天在编译程序时遇到“0x00e304f7 处有未经处理的异常: 0xC00000FD: Stack
overflow”的错误,也就是栈溢出了,google了一下,原来是我申请的一个变量太大了,const int maxnum = 10000;
改小一些就好了。局部变量的定义是在栈中申请空间的,栈溢...
分类:
其他好文 时间:
2014-05-08 19:53:07
阅读次数:
268
G++ 2.91.57,cygnus\cygwin-b20\include\g++\stl_stack.h 完整列表
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its do...
分类:
其他好文 时间:
2014-05-07 07:40:07
阅读次数:
322
One evening Johnny found some funny looking beens in his grandfather's garden shed, and decided to plant one of them. Next morning, to his surprise he found an enormous beanstalk growing in his back y...
分类:
其他好文 时间:
2014-05-07 05:17:42
阅读次数:
303
不小心重命名了libc.so.6动态库,运行命令
#mv /lib/libc.so.6 /lib/libc.so.6.back
#ls
ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
各种命令都不好...
分类:
其他好文 时间:
2014-05-07 04:49:53
阅读次数:
319
Windows
Phone程序中,并没有之前的类似于“App.Exit()”之类的函数用来让你退出程序。这是怎么回事儿呢? 很简单,在Windows Phone
7中系统要求配备了硬件的“Back”键,该键用于在程序中导航(返回)到上一个页面(屏幕)或者应用程序。 当菜单、对话框、搜索框、虚...
分类:
其他好文 时间:
2014-05-05 12:10:49
阅读次数:
227
WP7中如何阻止Back后退键的后退事件呢?
WP7上提供了物理的Back按键,获取Back物理键按下可以通过PhoneApplicationPage的BackKeyPress事件。 具体实现方法如下:
1、在xaml中的PhoneApplicationPage节点加入BackKeyPr...
分类:
其他好文 时间:
2014-05-05 12:10:22
阅读次数:
192
LDAP Guide? Back to documentation
indexIntroductionThis document details how to configure your Openfire
installation to use an external directory such...
分类:
其他好文 时间:
2014-05-04 20:53:28
阅读次数:
712
行编辑程序、括号匹配检验程序都是利用的栈的数据结构。而这两个
小程序也非常好的显示了栈先进后出的思想。由于程序本身很简短、清晰,所
以也就不做多的解释了,直接上代码了。
行编辑程序:
#include
#include
using namespace std;
int main()
{
stack sta;
char ch = getchar();
while(ch!=EOF)
...
分类:
其他好文 时间:
2014-05-04 18:55:11
阅读次数:
423
vector > p1(pt1.size(), vector(2));
vector> ps;
vector pp;
for(int i = 0; i
{
p1[i][0] = pt1[i].x;
p1[i][1] = pt1[i].y;
pp.push_back(pt1[i].x);
pp.push_back(pt1[i].y);
ps.push_back(pp...
分类:
其他好文 时间:
2014-05-04 18:05:41
阅读次数:
238