展讯android 5.1系统部分功能修改学习总结

在android系统入门学习的过程中所遇到的一些问题和解决方法,在此做个记录总结,方便日后参考!

1、长按Home键的功能配置,在sourceCode\frameworks\base\core\res\res\values\config.xml 中更改 config_longPressOnHomeBehavior 参数的配置:

<!-- Control the behavior when the user long presses the home button.
         0 - Nothing
            1 - Recent apps view in SystemUI
             2 - Launch assist intent
         This needs to match the constants in
         policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
    -->
    <integer name="config_longPressOnHomeBehavior">2</integer>


2、长按电源键的弹出框功能选项配置,在sourceCode\frameworks\base\core\res\res\values\config.xml 中更改 config_longPressOnHomeBehavior 参数的配置:

<!-- Defines the default set of global actions. Actions may still be disabled or hidden based
         on the current state of the device.
          Each item must be one of the following strings:
         "power" = Power off
         "settings" = An action to launch settings
         "airplane" = Airplane mode toggle
         "bugreport" = Take bug report, if available
          "silent" = silent mode
         "users" = list of users
         -->
   <string-array translatable="false" name="config_globalActionsList">
       <item>power</item>
      <item>bugreport</item>
      <item>users</item>
        <item>airplane</item>
   

  • 4
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值