android4.0隐藏状态栏电池图标
2012-12-06 13:01
417 查看
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
import com.android.systemui.R; public class BatteryController extends BroadcastReceiver { private static final String TAG = "StatusBar.BatteryController"; private Context mContext; private ArrayList<ImageView> mIconViews = new ArrayList<ImageView>(); private ArrayList<TextView> mLabelViews = new ArrayList<TextView>(); public BatteryController(Context context) { mContext = context; IntentFilter filter = new IntentFilter(); /* delete by Gary. start {{----------------------------------- */ /* 2012-4-5 */ /* hide the battery icon in the statusbar */ // filter.addAction(Intent.ACTION_BATTERY_CHANGED); /* delete by Gary. end -----------------------------------}} */ context.registerReceiver(this, filter); } public void addIconView(ImageView v) { /* add by Gary. start {{----------------------------------- */ /* 2012-4-5 */ /* hide the battery icon in the statusbar */ v.setVisibility(View.GONE); /* add by Gary. end -----------------------------------}} */ mIconViews.add(v); } public void addLabelView(TextView v) { /* add by Gary. start {{----------------------------------- */ /* 2012-4-5 */ /* hide the battery icon in the statusbar */ v.setVisibility(View.GONE); /* add by Gary. end -----------------------------------}} */ mLabelViews.add(v); }
相关文章推荐
- android4.0隐藏状态栏电池图标
- android4.0隐藏状态栏电池图标
- Android 隐藏状态栏部分 (电池等图标和一切修饰部分)
- IOS7 隐藏状态栏 (电池栏)
- MTK6225-状态栏图标的显示与隐藏
- iOS开发- 隐藏状态栏(电池栏)
- android4.0隐藏状态栏和标题栏的方法
- IOS屏幕禁止旋转,隐藏状态栏(电池栏)
- android4.0以上pad隐藏状态栏
- iOS 隐藏状态栏(时间栏,电池栏)
- iOS开发- 隐藏状态栏(电池栏)
- IOS7 隐藏状态栏 (电池栏)
- MTK6225-状态栏图标的显示与隐藏
- Android4.0 彻底隐藏状态栏
- VC6.0 MFC 隐藏任务栏图标和状态栏图标
- IOS7 隐藏状态栏 (电池栏)
- IOS7 隐藏状态栏 (电池栏)
- 怎样设置手机安卓应用程序全屏或者隐去状态栏以及电池等图标?
- IOS7 隐藏状态栏 (电池栏)