如何删除在安卓状态栏电池图标? [英] How to remove the battery icon in android status bar?

查看:1020
本文介绍了如何删除在安卓状态栏电池图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经删除了状态栏,显示由腾飞的背景图像中的Andr​​oid网络,电池和时间信息。但是图标依然存在。 只是想知道如何卸下电池图标为好。

I've removed the status bar which shows network, battery and time information in Android by take off the background image. But the icons are still there. Just wanna know how to remove the battery icon as well.

不为应用程序,但对于框架的发展。 先谢谢了。

Not for apps but for framework development. Thanks in advance.

推荐答案

如果您正在使用Android 2.2系统,您可以通过下面的步骤将其删除。

If you are working on Android 2.2, you can remove it by the following step.

  1. 找到StatusBarPolicy.java
  2. 找到mBatteryIcon并添加 service.setIconVisibility(mBatteryIcon,假);
  3. 删除相关的电池在意向过滤器的所有动作

这篇关于如何删除在安卓状态栏电池图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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