霍洛进度光晕效果 [英] Holo progressbar glow effect

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

问题描述

我用的帆布画我的自定义形状,我想添加发光效果上就像在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图像的一部分,看到它的<一个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>源文件。它用于(间接地经由<一href=\"https://github.com/android/platform_frameworks_base/blob/android-cts-4.2_r2/core/res/res/drawable/progress_horizontal_holo_light.xml\"相对=nofollow>绘/ progress_horizo​​ntal_holo_light )为<值href=\"http://developer.android.com/reference/android/widget/ProgressBar.html#attr_android%3aprogressDrawable\"相对=nofollow>安卓。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.

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

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