您的位置:首页 > 产品设计 > UI/UE

Android SystemUI状态栏添加图标

2016-09-03 10:46 274 查看
增加状态图标:
:1:
将图片放在 \frameworks\base\packages\SystemUI\res\drawable-hdpi
:2:\frameworks\base\core\res\res\values   
config.xml
  添加<item><xliff:gid="id">eyeball</xliff:g></item>
3:\frameworks\base\packages\SystemUI\src\com\android\systemui\statusbar\phone  
PhoneStatusBarPolicy.java   函数PhoneStatusBarPolicy里面添加
///eye
mService.setIcon("eyeball", R.drawable.stat_sys_eyeball, 0,null);
mService.setIconVisibility("eyeball", true);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息