(1)在\frameworks\base\packages\SystemUI\res\values\config.xml里找到 "quick_settings_ tiles_default",添加lockscreen,用“,”隔开:
<string name="quick_settings_tiles_default" translatable="false">
wifi,bt,inversion,cell,airplane,rotation,flashlight,location,cast,hotspot,lockscreen
</string>
(2)在\frameworks\base\packages\SystemUI\res\values\string.xml里添加:
<string name="quick_settings_lockscreen_label">
"lockscreen"
</string>
(3)在\frameworks\base\packages\SystemUI\res\values values-zh-rCN\string.xml里添加:
<string name="quick_settings_lockscreen_label">"锁屏"</string>
其他语言在相应的values文件夹下对应的string.xml文件里添加。
(4)在\frameworks\base\packages\SystemUI\res\drawable-hdpi文件夹里添加图片ic_qs_locks- creen.png,也可以在drawable文件夹下添加矢量图xml文件;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)