Action bar是一个标识应用程序和用户位置的窗口功能,并且给用户提供操作和导航模式。在大多数的情况下,当你需要突出展现用户行为或全局导航的activity中使用action bar,因为action bar能够使应用程序给用户提供一致的界面,并且系统能够很好根据不同的屏幕配置来适应操作栏的.....
分类:
移动开发 时间:
2015-06-05 15:39:10
阅读次数:
186
1、const用于类成员变量定义,一旦定义且不能改变其值。define定义全局常量,在任何地方都可以访问。2、define不能在类中定义而const可以。3、const不能在条件语句中定义常量if (...) { const FOO = 'BAR'; // invalid}butif (...) {...
分类:
其他好文 时间:
2015-06-05 15:30:33
阅读次数:
165
http://www.cnblogs.com/Wayou/p/gmail_like_page_loading_progress_bar.html
http://developer.51cto.com/art/201404/436336.htm
这就是宇宙第一IDE Visual Studio的启动画面,学名叫Splash Screen(或者Splash Window)。同样,Jav...
分类:
Web程序 时间:
2015-06-05 10:13:50
阅读次数:
122
Description:Need to turn page by operating scroll bar and find out the element in the current page.Previous page will not exist in DOM structure when ...
分类:
其他好文 时间:
2015-06-04 19:00:18
阅读次数:
137
压力单位MPa、Psi和bar之间换算公式1bar=10^5PaPsi为英制压力单位.“磅力每平方英寸(1bf/in2)为1psi=6894.76 pa; 1bar等于10的5次方=10^5 pa ;1atm等于一个标准大气压=101325pa ;1at等于一project大气压(千克力每平方厘米k...
分类:
其他好文 时间:
2015-06-04 13:18:20
阅读次数:
86
转载需注明出处:http://blog.csdn.net/minimicall,http://cloudtrader.top
1. 代码
package org.cryptocoinpartners.schema;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter...
分类:
其他好文 时间:
2015-06-04 06:13:32
阅读次数:
196
/*** 包含了方法和标准的常量用来设置UI的超时、大小和距离*/public class ViewConfiguration { // 设定水平滚动条的宽度和垂直滚动条的高度,单位是像素px private static final int SCROLL_BAR_SIZE = 10; ...
分类:
其他好文 时间:
2015-06-03 22:55:45
阅读次数:
90
当拖动滚动条时,自动加载内容
1. 首先计算li的总数
2. 计算每一行显示的li的数量
3. 计算li自身的高度
4. 计算li的margin-bottom高度
///////////要实现的效果,当滚动条向下滚动到快接近底部时,自动加载内容
首先计算滚动条的scrollTop,即距离滚动条顶部的距离,计为scroll_top
其次,计算出接近滚动条底部的距离,计为scroll_h...
分类:
Web程序 时间:
2015-06-03 21:34:25
阅读次数:
158
private void dgvLoad_Scroll(object sender, ScrollEventArgs e) { if (e.ScrollOrientation == ScrollOrientation.VerticalScroll) ...
回到顶部 回到底部
回到顶部的俩种方式
一、使用js
$('html, body').animate({ scrollTop: 0 }, 'fast');//带动画
$('html,body').scrollTop(0); //不带动画
$(window).scroll(function () {
//You'v...
分类:
Web程序 时间:
2015-06-03 17:46:01
阅读次数:
566