一、狀態(tài)欄時間精確秒顯示(靠左邊)
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替換一下,最后再復制到手機,修改權限再重啟就可以了
二、狀態(tài)欄時間精確秒顯示(原始靠右邊)
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替換一下,最后再復制到手機,修改權限再重啟就可以了
新聞熱點
疑難解答
圖片精選