其实很简单,上代码!
在res下创建drawable文件夹,新建文件drawable/progressbar_color.xml
xml version="1.0" encoding="utf-8"?>
layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
item ...
分类:
移动开发 时间:
2015-07-10 22:24:26
阅读次数:
325
今天博主要给大家分享的是如何在Android平台上实现录音时的音量指示计。开门见山,先来看一张Demo的效果图:
如上图所示,两个按钮分别是开始录音和停止录音,中间的两个数字前后分别代表音量档位(目前是8档)和原始音量值(0-32767),下方是音量计,由ProgressBar负责显示。
完整的源码可以在下面的网址找到:
https://github.com/XiaoWenHan/Andr...
分类:
移动开发 时间:
2015-07-08 14:41:13
阅读次数:
156
1 // 创建帧动画对象(缩放bounds,平移position,旋转transform) 2 CAKeyframeAnimation *anim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; 3 // ...
分类:
其他好文 时间:
2015-07-07 21:03:44
阅读次数:
122
第一部分 个性化控件(View)主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar及其他如Dialog、Toast、EditText、TableView、Activit...
分类:
移动开发 时间:
2015-07-07 16:18:41
阅读次数:
303
要实现这个效果,只需要再适配器getView之前,给每个条目的view设置相应的动画即可。首先需要2个动画的xml文件。在res下新建anim文件夹:(res/anim)第一个动画xml文件:up_from_bottom.xml down_from_top.xml 在listvi...
分类:
其他好文 时间:
2015-07-07 11:04:29
阅读次数:
118
一:使用多线程实现下载privateEditTextetpath;//服务地址privateLinearLayoutll;//访问服务器Stringpath;//设定线程的数量intthreadcount=3;//定义正在执行的线程数量intrunningThreadcount=threadcount;//建一个集合存放进度条List<ProgressBar>list=newArrayList<P..
分类:
移动开发 时间:
2015-07-06 21:51:13
阅读次数:
134
采用FLASH BUILD4.6开发1.没有mx:Canvas了,s:BordContainer未经手机优化,也不敢用,只有用s:Group2.好多控件没有了,如DropDownList,ProgressBar等相关文章http://www.adobe.com/cn/devnet/flex/arti...
分类:
移动开发 时间:
2015-07-06 17:28:34
阅读次数:
137
转载: http://www.androidchina.net/2297.html1.首先定义动画2.在布局文件中引入 但无法达到在项目中使用的便捷性,不可能每一个需要用到此Dialog的地方都需要在相应的xml文件中定义该ProgressBar的控件吧,如果开发中界面使用多层次的Frame...
分类:
移动开发 时间:
2015-07-05 14:58:06
阅读次数:
135
有些时间没来写了 ,接下来继续分享下本姑娘写的水平进度条,望能帮到初学者~~~
MainActivity 类
package com.lanzx.customprogressbar;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.o...
分类:
其他好文 时间:
2015-07-03 16:01:46
阅读次数:
119
本文介绍如何通过参考1.4.2版本的progressbar的源码自己编写一个HelloWorld级别的easyui插件,以及如何拓展插件的功能。有利于我们理解easyui插件的实现,以及了解如何对easyui插件进行拓展,或者当发现bug时在不修改源码的情况下对bug进行修复。1. 首先让我们来看看...
分类:
其他好文 时间:
2015-07-02 14:03:56
阅读次数:
109