-
zl
说明: 在webview中对图片进行点击放大。对webview中的图像处理有很大的帮助。(In the webview images click enlarge. The image processing to webview has very great help.)
- 2012-02-10 16:35:28下载
- 积分:1
-
Android PathEffect 效果实例
从一本书中得到的Android PathEffect 效果实例,不多说了,直接把关键代码帖出来吧,需要完整代码的可下载本源码,运行的效果请参见下边的截图所示,运行时,可看到多条像流水一样的路径曲线,下面是代码:
// 定义画板为白色
canvas.drawColor(Color.WHITE);
pe[0] = null;
// 此PathEffect为圆滑的弧形
pe[1] = new CornerPathEffect(10);
// 离散的线
// 第一个参数为离散在弧上的间距
// 第二个参数为离散的程度
pe[2] = new DiscretePathEffect(3, 10);
// Dash为破折号的意思。 应该是破这行
// 其中第一个参数是new float[]{} 表示其中的间隔和距离
// phase表示相位
pe[3] = new DashPathEffect(new float[] { 20, 5, 5, 20 }, phase);
//先建立一个Path 然后创建PathDashPathEffect对象 其中p为path
Path p = new Path();
p.addRect(0,0,8,8,Path.Direction.CW);
pe[4] = new PathDashPathEffect(p, 12, phase, PathDashPathEffect.Style.ROTATE);
//此方法表示两个组合的PathEffect
pe[5] = new ComposePathEffect(pe[2], pe[4]);
//结果和pe[5]类似
pe[6] = new SumPathEffect(pe[4], pe[3]);
// 开始画七条线
for (int i = 0; i < pe.length; i++) {
// 如果没有paint.setPathEffect(),那么系统默认为paint.setPathEffect(null);
paint.setPathEffect(pe[i]);
paint.setColor(colors[i]);
canvas.drawPath(path, paint);
//使画板平移
- 2022-07-25 12:05:42下载
- 积分:1
-
Apress-Pro-Android-Apps-Performance-Optimization-
I thank the team at Apress who made this book possible: Steve Anglin, Corbin Collins, Jim
Markham, and Jill Steinberg. Working with all of them was a real pleasure and I can with
confidence recommend them to any author.
I also want to thank the tech reviewers: Charles Cruz, Shane Kirk, and Eric Neff. They
provided invaluable feedback, often catching mistakes I would not have seen even after dozens of
readings.
To all my friends whom I did not get to see as often as I would have liked while I was working
on this book, I give my thanks too: Marcely, Mathieu, Marilen, Maurice, Katie, Maggie, Jean-René,
Ruby, Greg, Aline, Amy, and Gilles, I promise I will make up for the lost time. Last but not least, I
owe a lot to three people: Eddy Derick, Fabrice Bernard, and Jean-Louis Gassée. Sometimes all it
takes is an injured toe and a broken suitcase.
- 2012-11-26 00:27:29下载
- 积分:1
-
多线程断点下载的Android源代码
用户给定一个网址,点击下载按钮,服务器就会自动下载,默认3个线程同时下载,可以改变线程的数量
- 2022-04-12 09:41:43下载
- 积分:1
-
推送源代码
这是一个推送的android源码 ,可以在android手机上面实现推送的服务,方便大家在外面直接看到推送的各种消息,方便大家在外面直接看到推送的各种消息,方便大家在外面直接看到推送的各种消息
- 2022-01-22 12:42:20下载
- 积分:1
-
Android_Layout 布局实例 含多种布局实例(AbsoluteLayout/LinearLayout/RelativeLayout/TableLayout) 附源码
android 多种布局 对比实例
- 2013-03-16下载
- 积分:1
-
极简风格的手电
Android原创的手电软件,使用Service开启摄像头,在软件运行时,可以几乎做任何操作,不受其他软件的影响,手电的开关一直悬浮在屏幕上方。
- 2023-06-13 01:50:12下载
- 积分:1
-
LanguageApp_Sodino
Android中不同语言的切换功能,比如英文和越南文之间的切换。UI界面上的文字随着语言的切换就改变为相应的文字(Android different language switching functions, such as switching between English and Vietnamese. UI interface on the text with the language switch is changed to the corresponding text)
- 2012-10-10 10:40:34下载
- 积分:1
-
android 短信接收短信 与发送短信源码
android 短信接收短信 与发送短信源码
- 2014-04-28下载
- 积分:1
-
android 拍照实例源码(调用照相机)
android 拍照实例源码(调用照相机)
- 2014-12-23下载
- 积分:1