手机数码

    今日:0| 主题:48688
收藏本版 (4)
手机、平板、VR等3C数码产品的交流.

[其他] Android developer advocate Nick Butcher creates a Quick Settings tile to change

[复制链接]
半世迷离 发表于 2016-10-5 03:15:47
170 3

Android developer advocate Nick Butcher creates a Quick Settings tile to change ...

Android developer advocate Nick Butcher creates a Quick Settings tile to change  ...

   The Android community is pretty damn cool, if you ask me - custom ROMs,Xposed, Superuser applications , and a lot more. Android developer advocate Nick Butcher has added to this with a Quick Settings tile to control Android's animator duration scale. Normally this is only accessible through the Developer Options part of Android's [System] Settings, so for developers out there who need to regularly change the animation speed to test out any swanky animations, this should be pretty useful.
   There are two tiles available for use - a toggle and a selector. The toggle switches between the 0.5x and 1.0x scales, while the selector brings up the same popup that Developer Options has. After the APK has been installed, the tile needs to be enabled. This is not as simple as simply pressing a button saying 'Enable' or some such. Because animation speed is controlled through a settinngs screen which is not activated by default, the permissions for the tile need to be manually granted in adb, using the code in the quote.
  adb shell pm grant uk.co.nickbutcher.animatordurationtile android.permission.WRITE_SECURE_SETTINGS
  Once this has been done, you should be able to add it to your Quick Settings panel. Note - if you don't know what you're doing with adb or know what 'Developer Options' is, it's probably best to leave this alone; it's mainly for developers to test out their animations at different speeds. For those inclined, the files can be found on the GitHub repo Nick has set up, the link to which is below.
  
       
  • Source:   
  • GitHub (Nick Butcher)  
夜山 发表于 2016-10-6 20:33:28
不要和地球人一般见识.
回复 支持 反对

使用道具 举报

eplee 发表于 2016-10-6 21:15:24
学习下
回复 支持 反对

使用道具 举报

淡醇熏骨染云笺 发表于 2016-10-6 22:29:55
每每看到楼主的这番话,我就觉得,楼主不容易,楼主辛苦了!
回复 支持 反对

使用道具 举报

我要投稿

回页顶回复上一篇下一篇回列表
手机版/c.CoLaBug.com ( 粤ICP备05003221号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表