简体   繁体   English

手机充电时自定义Android电池图标

[英]Custom Android battery icon while phone is charging

I want to make an application with battery icon when phone is charging. 我想在手机充电时使用带有电池图标的应用程序。 But I don't know where to start. 但是我不知道从哪里开始。 Can you please help me with some ideas? 你能帮我一些想法吗?

Later clarification: I would actually like to implement just the animation similar to the one when the battery is charging. 稍后澄清:实际上,我只想实现类似于电池充电时的动画。

Afaik this has something to do with your Launcher and it's theme. Afaik这与您的Launcher及其主题有关。 (correct me if I'm wrong) (如果我错了纠正我)

See 看到

If you want an animated icon then you should probably create a widget , you can create one that is similar to an icon but that can be animated when the battery is charging. 如果需要动画图标,则可能应该创建一个小部件 ,可以创建一个类似于图标的小部件 ,但可以在电池充电时对其进行动画处理。

For the animation you can use the link posted on the comment of Thomas K. 对于动画,您可以使用Thomas K的评论中张贴的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM