开发者

Android: Add outer glow to ImageButton [duplicate]

开发者 https://www.devze.com 2023-03-13 17:35 出处:网络
This question already has answers here: Sta开发者_如何学JAVAndard Android Button with a different color
This question already has answers here: Sta开发者_如何学JAVAndard Android Button with a different color (20 answers) Closed 3 years ago.

I have been looking at these posts: StateList , Different states

What I really want is to add an outer-glow or some way to highlight the button onclick versus making different images for the associated states. Is this possible using colors or themes?

Thanks in advance :)

EDIT:

I found a good solution here, not quite the right answer but a good one none the less:

standard-android-button-with-a-different-color


I think you will be better off making an image for the state rather than trying to use software to render this automatically. The software solution will most likely be slower.

0

精彩评论

暂无评论...
验证码 换一张
取 消