打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
如何让状态栏时间精确到秒显示:靠左边、原始靠右边

教你如何将三星N7100的状态栏时间精确到秒显示:靠左边、原始靠右边。

一、状态栏时间精确秒显示(靠左边)

1.首先,反编译SystemUI.apk

2.找到文件:SystemUI.apk\res\layout\tw_status_bar.xml(推荐用Notepda+打开编辑)

3.删除以下代码:

android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595"

android:ellipsize="none" android:gravity="left|center" android:id="@id/clock"

android:paddingLeft="3.0dip" android:layout_width="wrap_content"

android:layout_height="fill_parent" android:singleLine="true"

android:includeFontPadding="false" />

4.找到以下代码:

android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent"

android:layout_weight="1.0">

5.再在以上代码后面回车添加以下代码:

android:layout_width="wrap_content" android:layout_height="fill_parent">

android:textColor="#ff959595" android:gravity="center" android:id="@+id/digitalClock"

android:layout_width="wrap_content" android:layout_height="fill_parent"

android:singleLine="true" android:includeFontPadding="false" />

6.编辑好后保存,然后编译SystemUI文件

7.编译后把\res\layout\tw_status_bar.xml,和resources.arsc文件复制到原SystemUI.apk替换一下,最后再复制到手机,修改权限再重启就可以了

二、状态栏时间精确秒显示(原始靠右边)

1.首先,反编译SystemUI.apk

2.找到文件:SystemUI.apk\res\layout\tw_status_bar.xml

3.找到以下代码:

android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ff959595"

android:ellipsize="none" android:gravity="left|center" android:id="@id/clock"

android:paddingLeft="3.0dip" android:layout_width="wrap_content"

android:layout_height="fill_parent" android:singleLine="true"

android:includeFontPadding="false" />

改为:

android:textColor="#ff959595" android:gravity="center" android:id="@+id/digitalClock"

android:layout_width="wrap_content" android:layout_height="fill_parent"

android:singleLine="true" android:includeFontPadding="false" />

4.找到以下代码:

android:paddingLeft="4.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent"

android:layout_weight="1.0">

再在以上代码后面回车添加以下代码:

android:layout_width="wrap_content" android:layout_height="fill_parent">

5.编辑好后保存,然后编译SystemUI文件

6.编译后把\res\layout\tw_status_bar.xml,和resources.arsc文件复制到原SystemUI.apk替换一下,最后再复制到手机,修改权限再重启就可以了

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
关于修改状态栏的教程,表达不好还望海涵
【安卓rom定制】丨『第三十五课』丨修改状态栏显示
Android 设置页面UI设计
自定义Button形状(圆形、椭圆)
AndroidUI优化4
新浪微博布局学习——活用RelativeLayout
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服