-
Android 水波风格圆形进度条
Android制作水波动画效果的圆形进度条,下面是相关的定义代码:
private Paint mPaint; //绘制波形
private Paint mCirclePaint; //绘制圆形
private Path mPath; //记录波形的路径
private int width; //自定义view的宽度
private int height; //自定义view的高度
private int mCirclePaintRadius; //绘制圆形的半径
private int mStepSize; //绘制波形的完整周期的宽度
private int mMoveStartX; //绘制波形的初始位置,相当于震动的频率
private int mSinMax; //绘制波形的振幅
private int count = 3; //需要绘制完整波形的个数,个数越多,波形的周期越小
private Canvas mCircleCanvas;
private Bitmap mDest;
private int mCurrentProgress; //当前的进度
private boolean shouldChange; //用于控制正弦线的上升和下降
private Paint mTextPaint;
super.onDraw(canvas);
//线绘制一个实心圆
mCircleCanvas.drawCircle(width / 2, height / 2, mCirclePaintRadius, mCirclePaint);
//每次绘制记得调用reset()方法,否则当前绘制会和上次的绘制重叠
mPath.reset();
//下面的moveTo,lineTo,lineTo,lineTo主要是让当前正弦线的首位相接
- 2022-02-14 04:04:38下载
- 积分:1
-
Android 电话浮动窗
1、Android 电话浮动窗,高仿锤子手机通话时,跳转到其他界面后,弹出来的浮空按钮;
2、具有水波纹向外扩散的动画,点击效果,可以使用touch事件根手指随意移动;
3、代码使用eclipse导入直接可以运行;
- 2022-05-09 09:30:39下载
- 积分:1
-
test_musicplayer
android 音乐播放
功能:播放 停止 快进(play music)
- 2014-07-21 00:18:31下载
- 积分:1
-
海康威视监控源码
海康威视监控源码,使用设备为海康威视的网络监控设备,提供jar包,可以修改源码的设备ip,监视自己的监控设备,本Android源码使用eclipse开发工具开发,可直接导入运行,主要功能包括实时监控视频
- 2022-02-12 15:36:06下载
- 积分:1
-
android 声波通讯例子源码下载
android 声波通讯例子源码下载
- 2014-09-25下载
- 积分:1
-
Cards-UI-master
卡片式View,支持单个卡片,item为卡片的ListView
使用:
CardListView list = ...
list.setCardTheme(CardTheme.Dark)
CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark)
list.setAdapter(adapter)
// Alternatively, you can pass a context and string resources in place of strings
// CardHeader has an optional second parameter for a subtitle
CardHeader header = new CardHeader( I m a header )
// You can optionally set an action to the header
// Specifying no action title will default to See More
header.setAction( See More , new CardHeader.ActionListener() {
@Override
public void onHeaderActionClick(CardHeader header) {
// Do whatever you want
}
})
// Add the header to the adapter, automatically notifies the list
adapter.add(header)
// Again, you can pass a context and string resources in place of strings
Card card = new Card( Hello , My name is Aidan )
adapter.add(card) (This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.)
- 2015-01-24 15:06:35下载
- 积分:1
-
Audio音乐播放器
Audio音乐播放器
- 2013-05-14下载
- 积分:1
-
android
使用Eclipse和java语言实现Android物联网开发(Implementation of Android Internet of Things Development with Eclipse and Java Languag)
- 2019-06-18 09:17:19下载
- 积分:1
-
简单线程并发例子源代码
package com;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class VolatileTest {public static void main(String[] args) throws InterruptedException {final Counter counter = new Counter();ExecutorService threadPool = Executors.newCachedThreadPool();for (int i = 0; i < 1000; i++) {/*new Thread() {@Overridepublic void run() {counter.inc();};}.start();*/threadPool.execute(new Runnable() {@Overridepublic void run() {counter.inc();}});}// Thread.sleep(3000);System.out.println(counter);}}
- 2022-06-17 11:34:35下载
- 积分:1
-
IOS 浏览器加载进度显示源码
IOS 浏览器加载进度显示源码
- 2015-06-28下载
- 积分:1