(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
keycode------------>KEYCODE_BACK,KEYCODE_MENUevent.getAction------->ACTION_DOWN,ACTION_UP,ACTION_MULTIPLE|_____onKeyUp,onKeyDown,onKeyLongPresshttp://...
分类:
其他好文 时间:
2014-05-09 05:47:01
阅读次数:
313
题目链接在这题各种RE和WA。 方法上就是BFS,
还是基础不扎实的原因,很明显的一点就是这里使用二维vector, 开始的时候我竟然没有给ans分配空间,然后直接push_back,
导致RE到死。这点是必须引起注意的!附上代码: 1 /** 2 * Definition for binary ....
分类:
其他好文 时间:
2014-05-08 18:00:37
阅读次数:
292
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390
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
Last seen only a couple of years back, this
approaching discharge of theJordan 6 Carminewill arrive just like they did
included in the 2008 Countdown ...
分类:
其他好文 时间:
2014-05-07 01:50:27
阅读次数:
264
项目中用到了地图相关的东西,就把以前的demo搬了出来,结果发现直接运行之前的demo没有问题,在xcode5下新建项目再把代码粘贴过来就会提示
May 5 11:36:21 infomedia-iPod-touch TestLocation[1465] : CGBitmapContextCreate: unsupported parameter combination: 5 integer ...
分类:
移动开发 时间:
2014-05-06 15:17:46
阅读次数:
769
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
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