Wednesday, February 26, 2014

[GUIDE] Centering clock/date in stock lockscreen

By Audrie Gatcho on Thursday, October 17, 2013 at 2:07pm
Need to modify: framework-res.apk (Can be found in /system/framework)

*We need backup
*Follow the instruction carefully

Requirements:

- Apk tool
- Knowledge
- Notepad++
- Commonsense
- Patience

Steps:

1. Decompile framework-res.apk

2. Go to framework-res/res/layout

3. Open zzz_keyguard_screen_clockwidget.xml with Notepad++

4. Find this line:

"left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="11.899994dip" android:layout_width="fill_parent" android:layout_height="wrap_content">

5. Change the value from android:gravity from "left" to "center"

6. Save the xml then recompile apk

No comments:

Post a Comment