//菜单栏始终浮动在顶部var navH = $(".trade-tab-bot").offset().top;//获取要定位元素距离浏览器顶部的距离//滚动条事件$(window).scroll(function(){ //获取滚动条的滑动距离 var scroH = $(this)....
分类:
Web程序 时间:
2015-06-08 19:18:18
阅读次数:
291
一.通过activity启动Context Action Bar1.主javapublic class ActivityActionModeFrgmt extends Fragment implements OnCheckedChangeListener, ActionMode.Cal...
分类:
其他好文 时间:
2015-06-08 18:44:07
阅读次数:
184
一.Context Action Bar简介它是一个ActionBar,有各种操作项,但它不是始终显示的ActionBar,它需要上下文才显示.样式如下:二.Context Action Bar的启动有多种启动context action bar的方式,常见的如下:1:通过activity的Acti...
分类:
其他好文 时间:
2015-06-08 18:43:25
阅读次数:
503
A search bar provides an interface for text-based searches with a text box and buttons such as search and cancel. A search bar
accepts text from users, which can be used as input for a search (shown...
分类:
其他好文 时间:
2015-06-08 17:22:13
阅读次数:
118
在当前用户的家目录下有个.hivestory文件,里面存放了用户执行的hive操作记录,如下:[hadoop@hadoop1 hive-0.14]$ cat ~/.hivehistoryshow databases;quit;quit;create table pokes(foo int, bar ...
分类:
其他好文 时间:
2015-06-08 13:19:32
阅读次数:
290
本文翻译了这篇文章:Using the Android action bar (ActionBar) - Tutorial1、ActionBar的简介ActionBar位于Activity的顶部,可用来显示activity的标题、Icon、Actions和一些用于交互的View。它也可被用于应用的导...
分类:
移动开发 时间:
2015-06-07 23:16:06
阅读次数:
188
原文摘自:http://blog.csdn.net/android2me/article/details/88748461.Action Bar 介绍我们能在应用中看见的actionbar一般就是下图的样子,比如快图应用1.App icon应用的图标,左侧带应用相当于back返回键2.ViewCon...
分类:
移动开发 时间:
2015-06-07 23:02:21
阅读次数:
342
在Info.plist中添加 key:“Status bar is initially hidden”,设置为yes 则在启动app时显示的LaunchScreen界面隐藏状态栏,反之不显示。在Info.plist中添加 key:“View controller-based status bar a...
分类:
移动开发 时间:
2015-06-06 14:42:40
阅读次数:
142
一、实习过程中被要求做一个二级菜单,点击展开覆盖主页面。在手机上测试,滑动过程中十分卡顿。在二级菜单最外层加上-webkit-overflow-scrolling:touch ,之后就完全消除卡顿问题。通过搜索知道,overflow:scroll可以使内容可以滚动,但是没有物理弹性,比较生硬,没有滚...
分类:
移动开发 时间:
2015-06-06 11:50:55
阅读次数:
141
为了加强鼠标响应事件,Android提供了GestureDetector手势识别类。通过GestureDetector.OnGestureListener来获取当前被触发的操作手势(Single Tap Up、Show Press、Long Press、Scroll、Down、Fling),具体包括...
分类:
移动开发 时间:
2015-06-05 20:56:56
阅读次数:
179