(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
ISO C标准I/O库使用流的概念读写文件。流是对数据传输的抽象,可以把流理解为从起点到终点间的字节序列。
标准I/O库通过维护进程空间内的缓冲区,减少read/write系统调用次数来提高I/O效率。之前介绍的Unbuffered I/O和文件描述符fd打交道,标准I/O则使用FILE指针。
typedef struct{
short level;/*缓冲区满程度*/
uns...
分类:
其他好文 时间:
2014-05-10 09:37:37
阅读次数:
388
1、Cache中的块与主存储器中的块时按照什么样的规则建立对应关系的?2、在这种对应关系下,主存地址又是如何变换成Cache地址的?Cache信息:1、数据Cache和指令Cache是分开还是统一的?2、Cache的容量、块大小以及相联特性。3、Cache类型是写通的(Write-through)还...
分类:
其他好文 时间:
2014-05-09 16:42:15
阅读次数:
327
不使用什么repeater
gridview之类的控件,怎么才能输出数据库的数据到一个table ,我用response.write在后台,拼接 table 代码可以输出
但总是在页面的最上面 , 是不是要在aspx页面相应位置用 循环输出 但又提示找不到我后台填充的DATASET,因为听说公司做a...
分类:
数据库 时间:
2014-05-08 22:25:29
阅读次数:
368
C# driver Releases notesC# driver 指南(博客园友翻译)Mongodb
Connection Stringmongodb的write concern各版本驱动解决的问题(JIRA)
分类:
数据库 时间:
2014-05-08 22:01:44
阅读次数:
360
【题目】
原文:
1.3 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables are fine. An
extra copy of...
分类:
其他好文 时间:
2014-05-07 08:48:12
阅读次数:
372
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
代码中的两个按钮处理事件,分别进行了文本的读写操作。
1)文件写操作
首先调用Activity的openFileOutPut()方法获得文本文件的输出流,第一个参数为文本文件的名字,第二个为文件的打开方式
接着调用Outputstream对象的write()方法将Textview中获得文本信息写入outputstream对象,最后调用close()方法完成写入操作。
2)文件读操作
首先调用Activity的openFileInPut()方法获得文本文件的输入流,
接着...
分类:
移动开发 时间:
2014-05-07 03:15:13
阅读次数:
464
项目中用到了地图相关的东西,就把以前的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