1. 概述
距离上次更新有一周时间过去了,忙着工作,没来得及更新博客,各位看官老爷久等了,这次打算写一个UI定制系列,关于MTK android 12 UI定制吧!
2. 效果图
原生效果图:
定制后效果图:
3.修改路径
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/TileLayout.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/BluetoothTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/FlashlightTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/NightDisplayTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/ScreenRecordTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/ScreenshotTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tiles/WifiTile.java
vendor/mediatek/proprietary/packages/apps/SystemUI/res/values/colors.xml
vendor/mediatek/proprietary/packages/apps/SystemUI/res/values/dimens.xml
vendor/mediatek/proprietary/packages/apps/SystemUI/res/layout/qs_tile_label.xml
4.总结
想要修改这块UI界面,需要梳理出整体流程是怎么过来,要不容易改乱了,大致下面三个类最关键:
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/TileLayout.java文章来源:https://www.toymoban.com/news/detail-535951.html
在UI定制化开发 (2) 系列中我会详细给大家梳理下布局结构,改哪些关键点,这几个类都是怎么联系上的!文章来源地址https://www.toymoban.com/news/detail-535951.html
到了这里,关于Android 12 MTK SystemUI 下拉状态栏 UI定制化开发(1)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!