您好,欢迎来到 - 67学习网 - http://www.67xuexi.com !

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

摘要: 一、状态栏时间精确秒显示(靠左边)1.首先,反编译SystemUI.apk2.找到文件: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"and
如何让状态栏时间精确到秒显示,标签:手机技巧大全,http://www.67xuexi.com

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

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替换一下,最后再复制到手机,修改权限再重启就可以了

如何让状态栏时间精确到秒显示 www.67xuexi.com

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

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替换一下,最后再复制到手机,修改权限再重启就可以了


Tag:手机技巧手机技巧大全智能手机教程 - 手机技巧

《如何让状态栏时间精确到秒显示》相关文章