Holo进度条发光效果 [英] Holo progressbar glow effect

查看:476
本文介绍了Holo进度条发光效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用画布来绘制我的自定义形状,我想添加发光效果在它的末端像在Android进度条视图。我尝试查看Android来源,但没有找到如何实现这样的效果。

I'm using canvas to draw my custom shape, and I want to add glow effect on it's end like in Android Progressbar View. I tried to look at Android sources, but did not found how exactly such effect is achieved.

推荐答案

发光效果是PNG图像的一部分, a href =https://github.com/android/platform_frameworks_base/blob/android-cts-4.2_r2/core/res/res/drawable-xhdpi/progress_primary_holo_light.9.png =nofollow>源文件。使用它(通过间接使用drawable / progress_horizo​​ntal_holo_light )作为 android:progressDrawable

The glow effect is part of the PNG image, see its source file. It is used (indirectly via drawable/progress_horizontal_holo_light) as value of android:progressDrawable.

这篇关于Holo进度条发光效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆