(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
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using
System.IO;namespace DirectoryCopy...
分类:
其他好文 时间:
2014-05-08 20:30:59
阅读次数:
381
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using
System.Net;using ...
分类:
其他好文 时间:
2014-05-08 20:30:34
阅读次数:
389
今天在编译程序时遇到“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
Windows
Phone程序中,并没有之前的类似于“App.Exit()”之类的函数用来让你退出程序。这是怎么回事儿呢? 很简单,在Windows Phone
7中系统要求配备了硬件的“Back”键,该键用于在程序中导航(返回)到上一个页面(屏幕)或者应用程序。 当菜单、对话框、搜索框、虚...
分类:
其他好文 时间:
2014-05-05 12:10:49
阅读次数:
227
返回数据格式:{"total":7,"rows":[ {"id":1,"name":"All
Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"}, {"id":2,"name":"Designi...
分类:
其他好文 时间:
2014-05-05 11:02:30
阅读次数:
355
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