状态栏时间居中

 时间:2024-10-13 18:39:31

1、反编译:

2、提取system/app下的systemui.apk以及system/framework下面的framework-res.apk到apktool目录下。

3、开始-运行-CMD写入:cd\apktool 回车 输入:apktool if framework-res.apk 回车输入:apktool if systemui.apk 回车 输入:

4、找到位于apktool/systemui\res\layout目录下的status_bar.xml文件,

5、用记事本打开搜索:<com.android.systemui.statusbar.Clock android:t髫潋啜缅extAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

6、将这一整段剪切到xmlns:android="http://schemas.android.com/apk/res/android">下面

7、然后添加android:layout_gravity="center_horizontal"到上面那一段的倒数第二行

8、完整语句如下:<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="center_horizontal" android:singleLine="true" />修改到此你的状态栏时间已经移动到中间啦~~

9、接下来就是回编译:(很容易出错的地方)回到cmd界面输入:apktool b systemui,等到界面显示Building apk file...表示编译完成这时候在apktool/systemui下面会生成一个dist目录,新生成的systemui.apk就在里面

10、用winrar打开回编好的apk。把systemui\res\layout\status_bar.xml拉出来,放回你原来的systemui.apk里面的相同醐蛑臀谁位置。将systemui.apk放回内存卡移动到system下面修改权限为RW-R-R,然后放入app下面,重启后生效~

  • 后崩坏书怎么进
  • 原神腐肉朽处花争妍成就怎么获得
  • 原神3.2无相之草和正机之神隐藏成就攻略
  • 原神黄金王兽兽境犬首怎么打
  • 原神蛎罗的坟墓任务位置攻略
  • 热门搜索
    生化危机2重制版攻略 吃黄瓜能减肥吗 领带搭配 怎么减肥最快 王翰简介 桂龙药膏效果怎么样 日子怎么过 宜昌旅游攻略 战神升天攻略 汕头美食攻略