在android项目的开发中,有时为了实现和用户更好的交互,在通知栏这一小小的旮旯里,我们通常须要将内容丰富起来,这个时候我们就须要去实现自己定义的通知栏,比如以下360或者网易的样式:首先我们要了解的是 自己定义布局文件支持的控件类型:Notification的自己定义布局是RemoteViews...
分类:
移动开发 时间:
2014-08-15 19:31:49
阅读次数:
211
1,ios6屏幕旋转,所有被push出来的controller的旋转属性都由root controller中以下函数- (NSInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll;}- (BOOL)...
分类:
其他好文 时间:
2014-08-15 19:24:39
阅读次数:
254
通知栏 设置提醒标志符Flags功能:提醒标志符,向通知添加声音、闪灯和振动效果等设置达到通知提醒效果,可以组合多个属性使用方法(其一):Notification notify = mBuilder.build();notify.flags = Notification.FLAG_AUTO_CANC...
分类:
移动开发 时间:
2014-08-15 19:13:19
阅读次数:
2231
一个简单的三维BFS:
刚开始说内存超出了,就把 标记走过的路语句 和 判断到达终点的语句 放在了push(next)之前
#include
#include
#include
#include
#define N 51
using namespace std;
struct node{
int x,y,z;
int t;
};
int dir[8]...
分类:
其他好文 时间:
2014-08-15 14:45:28
阅读次数:
292
由于Android市场管理的不健全,很多APP都通过向通知栏投广告的方式诱导用户点击,广告多了,很是烦心。
因此好多安全软件提供了去通知栏广告的功能,甚至Android在4.2以后提供了disable某个app的notification功能,来净化通知栏。可见通知栏的控制对于用户来说至关重要。
安卓安全小分队在研究这一功能时,希望提出一些建设性的意见供大家参考。
一、组织结构...
分类:
移动开发 时间:
2014-08-15 12:52:08
阅读次数:
351
std::vector::emplace_backC++Containers librarystd::vectortemplatevoidemplace_back(Args&&...args);(since C++11)Appends a new element to the end of the ...
分类:
其他好文 时间:
2014-08-14 23:27:06
阅读次数:
212
Pushlet(一种comet 架构的实现)是基于Servlet 机制,数据从server端的Java 对象直接推送(push)到客户端浏览器的(动态)HTML 页面,而无需任何Java applet 或者插件的帮助。在MyEclipse中创建工程。附件包含了从官方下载的Pushlet包已经本次的源...
分类:
其他好文 时间:
2014-08-14 19:54:39
阅读次数:
190
TCP三次握手
TCP提供可靠的连接服务,采用三次握手确认建立一个连接。
TCP标志位有6种。
?SYN:synchronous建立联机。
?ACK:acknowledgment确认。
?PSH:push传送。
?FIN:finish结束。
?RST:reset重置。
?URG:urgent紧急。
三次握手主要依靠的是SYN和ACK标志位。
握手详细流程图如下。
简化步骤...
分类:
编程语言 时间:
2014-08-14 16:44:13
阅读次数:
333
Problem:How to create a layer that looks like your notification center's or control center's backgroundSolution:Using UIImage+ImageEffects to Create a...
分类:
移动开发 时间:
2014-08-14 16:31:38
阅读次数:
253
# pragma clang diagnostic push# pragma clang diagnostic ignored "-Warc-performSelector-leaks" [self performSelector:callFunc withObject:array[1]];#...
分类:
其他好文 时间:
2014-08-14 01:24:27
阅读次数:
245