码迷,mamicode.com
首页 >  
搜索关键字:back    ( 14518个结果
android实现双击back键退出
private int mBackKeyPressedTimes = 0; @Override public void onBackPressed() { if (mBackKeyPressedTimes == 0) { Toast.makeText(this, "再次按返回键退出", To...
分类:移动开发   时间:2014-11-01 17:38:13    阅读次数:167
sort 对坐标 排序
bool compare(const pair &a,const pair&b) { return a.first v; v.push_back(make_pair(4,2)); v.push_back(make_pair(2,4)); sort(v.begin(),v.end(),compare);...
分类:编程语言   时间:2014-11-01 14:54:47    阅读次数:1098
ZOJ 3633 Alice's present(线段树)
As a doll master, Alice owns a wide range of dolls, and each of them has a number tip on it's back, the tip can be treated as a positive integer. (the number can be repeated). One day, Alice hears t...
分类:其他好文   时间:2014-11-01 06:19:48    阅读次数:244
EventDispatch机制
cocos2dx 3.x中的事件机制原理: 通过访问Node的全局Zorder来排列优先级。             _globalZOrderNodeMap[node->getGlobalZOrder()].push_back(node); _globalZOrderNodeMap 作为迭代的容器,最后处理根节点排序的结果(会清理掉当前存放的节点),真正有效的数据时排列好的:_...
分类:其他好文   时间:2014-10-31 06:23:29    阅读次数:193
iOS定制修改navigation的back按钮
iOS开发中,navigation的返回按钮是英文“back”,想修改成中文“返回”或者自定义的文字;这么简单的事情却折腾了小半个小时。原来是被leftBarButtonItem和rightBarButtonItem的设置方法给迷惑了。 我们设置leftBarButtonItem和rightBarButtonItem的时候都是在当前页面;而backBarButtonItem却是在父页面;所以需要...
分类:移动开发   时间:2014-10-30 13:32:06    阅读次数:195
delphi XE7 判断手机返回键
Using the Android Device's Back Button To make your application handle when users press the Back button on their Android device, add an event handler....
分类:移动开发   时间:2014-10-29 12:24:52    阅读次数:530
android_双击退出
/** * 设置快速双击退出程序 */ @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == KeyEvent.KEYCODE_BACK) { exitBy2Click(); } retu...
分类:移动开发   时间:2014-10-29 10:50:55    阅读次数:160
mongodump and mongorestore of mogodb
The another tool will be mentioned in this blog, namely mongodump and mongorestore.  General speaking, it’s very useful to back up or to restore the data of database or collection by means of mongodu...
分类:数据库   时间:2014-10-29 02:00:22    阅读次数:224
Reverting back to the R12.1.1 and R12.1.3 Homepage Layout
Reverting back to the 12.1.1 Homepage Layout Set the following profiles: FND: Applications Navigator Menu Consolidation count : 25 FND Slideout menu: ...
分类:其他好文   时间:2014-10-29 00:04:52    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!