AsyncTask是抽象类.AsyncTask定义了三种泛型类型 Params,Progress和Result。
Params 启动任务执行的输入参数,比如HTTP请求的URL。 一般用String类型;
Progress 后台任务执行的百分比。 一般用Integer类型;
Result 后台执行任务最终返回的结果,一般用byte[]或者String。...
分类:
移动开发 时间:
2014-08-07 13:24:25
阅读次数:
290
一、通过动画实现定义res/anim/loading.xml如下:[html]view plaincopyprint?二、通过自定义颜色实现定义res/drawable/progress_small.xml如下:[html]view plaincopyprint?三、使用一张图片进行自定义定义res...
分类:
移动开发 时间:
2014-08-07 12:37:19
阅读次数:
352
Action bar允许你为与当前应用上下文相关的最重要的action items添加action按钮。那些直接显示在action bar上的icon或者文字都被称作action buttons。那些不适合action bar或者不是那么重要的Actions将会被隐藏在action overflow(译者注:action bar最右侧的垂直的三个点)里。...
分类:
移动开发 时间:
2014-08-07 03:08:28
阅读次数:
409
The action bar provides your users a familiar and predictable way to perform actions and navigate your app, but that doesn't mean it needs to look exactly the same as it does in other apps. If you want to style the action bar to better fit your product bra...
分类:
移动开发 时间:
2014-08-07 03:07:49
阅读次数:
605
By default, the action bar appears at the top of your activity window, slightly reducing the amount of space available for the rest of your activity's layout. If, during the course of user interaction, you want to hide and show the action bar, you can do s...
分类:
移动开发 时间:
2014-08-07 03:07:19
阅读次数:
344
设置一个基本的action bar需要你的应用使用支持action bar的主题。如何来请求这样的主题要看你所选择的你的应用最低支持的Android版本。因此本课会根据应用支持的不同的Android最低版本分为两个部分。...
分类:
移动开发 时间:
2014-08-07 00:50:57
阅读次数:
416
Action bar 是你可以为你的应用的Activity实现的最为重要的设计元素之一。它提供了集中UI特性,并且通过提供和其他的Android应用的一致性体验让你的应用能够很快被用户熟悉。主要的功能包括:
一个专用的显示应用表示的地方,并且能够指出用户当前在应用中的位置。
用户能够很方便地访问重要的功能(例如搜索)。
提供视图切换导航(通过tab,或者下拉列表)。...
分类:
移动开发 时间:
2014-08-06 22:55:42
阅读次数:
355
压力单位MPa、Psi和bar之间换算公式1bar=10^5PaPsi为英制压力单位.“磅力每平方英寸(1bf/in2)为1psi=6894.76 pa; 1bar等于10的5次方=10^5 pa ;1atm等于一个标准大气压=101325pa ;1at等于一project大气压(千克力每平方厘米k...
分类:
其他好文 时间:
2014-08-06 22:04:32
阅读次数:
267
$data = array(‘foo‘, ‘bar‘, ‘baz‘, ‘boom‘, ‘cow‘ => ‘milk‘, ‘php‘ =>‘hypertext processor‘, ‘words‘ =>‘你好 啊‘); $a = http_build_query($data); echo $a; $a = urldecode($a); echo $a; 根据数组产生一个...
分类:
Web程序 时间:
2014-08-06 19:33:22
阅读次数:
375
还是我们自定View的那几个步骤:
1、自定义View的属性
2、在View的构造方法中获得我们自定义的属性
3、重写onMesure (不是必须)
4、重写onDraw
自定义View的属性
自定义View,并且使用自定义的View
pub...
分类:
移动开发 时间:
2014-08-05 19:33:42
阅读次数:
247