-
APKParser-src
apk parser in java and android
- 2015-06-24 17:51:36下载
- 积分:1
-
Android_API
android开发的基本API,查找方便了(android development of the basic API, easy to find)
- 2011-06-28 16:05:56下载
- 积分:1
-
Android 图片阴影图片影子效果
Android 生成图片阴影图片影子效果,在实例中,用一个复选框的图片来演示效果,生成阴影的代码片段如下:
canvas.drawColor(Color.WHITE);//设置画布颜色
canvas.save(Canvas.MATRIX_SAVE_FLAG);
dbe.setColorFilter(0x7f000000,PorterDuff.Mode.SRC_IN);
canvas.translate(posX + (int)(0.9 * PicWidth/2), posY + PicHegiht/2);//图像平移为了刚好在原图后形成影子效果。
canvas.skew(-0.9F, 0.0F);//图像倾斜效果。
canvas.scale(1.0f, 0.5f);//图像(其实是画布)缩放,Y方向缩小为1/2。
dbe.draw(canvas);//此处为画原图像影子效果图,比原图先画,则会在下层。
drawable.clearColorFilter();
canvas.restore();
canvas.save(Canvas.MATRIX_SAVE_FLAG);
drawable.draw(canvas);//此处为画原图像,由于canvas有层次效果,因此会盖在影子之上。
canvas.restore();
//默认无效果原图
canvas.save(Canvas.MATRIX_SAVE_FLAG);
drawTest.draw(canvas);
canvas.restore();
//图片阴影效果
canvas.save(Canvas.MATRIX_SAVE_FLAG);
//Rect rect = new Rect(2*posX + PicWidth, 2*posY + PicHegiht, 2*posX + 2*PicWidth, 2*posY + 2*PicHegiht);//此为理论上的阴影图坐标
Rect rect = new Rect(2*posX + PicWidth + 3, 2*posY + PicHegiht + 3, 2*posX + 2*PicWidth - 2, 2*posY + 2*PicHegiht - 2);
//由于图片的实际尺寸比显示出来
- 2022-07-23 03:30:50下载
- 积分:1
-
TongzhilanStudy
利用service来实现安卓通知栏通知功能,类似QQ在后台运行通知栏会有图标。(Service to Android notification bar notification feature, similar to QQ notification bar running in the background will be icon.)
- 2012-09-28 11:31:29下载
- 积分:1
-
android 微信分享实例源码下载 WeixinShare
android 微信分享实例源码下载 WeixinShare
- 2014-08-07下载
- 积分:1
-
安卓Android 学习实验资料【简单】
看上去这是一些比较简单的安卓Android 实验相关源码,涉及一些简单的基础操作,像是编写的游戏,里面包括了登录验证,简单界面设计等:实验的内容包括:
从布局文件activityx_main.xml加载一个布局文件
通过Id来获取布局文件中的按钮
判断用户名和密码是否为空或长度为0
Android新手学习参考吧。
- 2022-05-30 19:34:11下载
- 积分:1
-
SplashActivity
简介高效安卓功能开发:自动更新提醒
简介高效安卓功能开发:自动更新提醒(Simple and efficient development of Android features: automatic update reminders)
- 2015-12-05 16:33:18下载
- 积分:1
-
android音乐播放器
android音乐播放器
- 2015-01-03下载
- 积分:1
-
二维码扫描
利用android的二维码扫描控件Zxing来扫描,非常完整好用。
- 2022-02-13 04:39:56下载
- 积分:1
-
SaveQQ
说明: 一个完整的Android项目,首先进入界面输入账户密码进行登陆,若登陆账号没注册过则先进行保存,并提示保存成功否则提示登陆成功。(A complete Android project, first enter the interface to enter the account password for login, if the login account has not been registered, save it first, and prompt the successful save or prompt the successful login.)
- 2019-04-30 15:17:16下载
- 积分:1