手机
当前位置:查字典教程网 >手机 >手机技巧 >如何让状态栏时间精确到秒显示
如何让状态栏时间精确到秒显示
摘要:一、状态栏时间精确秒显示(靠左边)1.首先,反编译SystemUI.apk2.找到文件:SystemUI.apkreslayouttw_st...

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

1.首先,反编译SystemUI.apk

2.找到文件:SystemUI.apkreslayouttw_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.编译后把reslayouttw_status_bar.xml,和resources.arsc文件复制到原SystemUI.apk替换一下,最后再复制到手机,修改权限再重启就可以了

如何让状态栏时间精确到秒显示1

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

1.首先,反编译SystemUI.apk

2.找到文件:SystemUI.apkreslayouttw_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.编译后把reslayouttw_status_bar.xml,和resources.arsc文件复制到原SystemUI.apk替换一下,最后再复制到手机,修改权限再重启就可以了

如何让状态栏时间精确到秒显示2

【如何让状态栏时间精确到秒显示】相关文章:

三星Galaxy S6 Edge待机时间怎么样

ipv4和ipv6的区别有哪些?

酷派大神F2电量百分比显示方法

YunOS版魅蓝手机怎么样?

魅蓝note手势唤醒怎么开启?

手机拍视频的6个小窍门

三星Galaxy A7的分辨率是多少

格力手机配置怎么样?格力手机好不好?

联想乐檬K3怎么清理应用缓存

黄章曝魅族mx5 魅族mx5home键有改变

精品推荐
分类导航