ABOUT :
This is a easy guide which will teach you how to make the Lockscreen Clock Allign To Center
SCREENSHOT :
STEPS :
1. Extract the "framework-res.apk" from ROM
2. Decompile it using apktool
3. Browse To "\res\values" and open dimens.xml
4. Find These Lines
5. You basically need to edit
<dimen name="keyguard_lockscreen_status_line_font_right_margin">52.0dip</dimen> - Necessary ( Sets Margin from Right which basically alligns to center )
<dimen name="keyguard_lockscreen_clock_font_size">85.0dip</dimen> - Not Necessary ( Sets the font size of clock time display)
<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen> - Not Necessary ( Sets Margin From Top )
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen> - Not Necessary ( Sets Margin From Bottom )
6. Assuming that you have a WVGA device. Without a thought do this
What I did is changed the font size to 85 dip and right margin to 52 dip. You can see the result in screenshot above
7. If you have a device with different resolution. You need to do some experiment on your own by changing margin to allign it in center.
I will suggest to keep the right allign to 54-56 dip and font size 82 dip for devices with higher resolution above 480*800
8. Thats All.. If you want too change layout to bottom or extreme top..Change te dip values for top and bottom margin
For more tutorials and guides visit - www.blindndumb.com
Cheers
This is a easy guide which will teach you how to make the Lockscreen Clock Allign To Center
SCREENSHOT :
STEPS :
1. Extract the "framework-res.apk" from ROM
2. Decompile it using apktool
3. Browse To "\res\values" and open dimens.xml
4. Find These Lines
Code:
<dimen name="keyguard_lockscreen_clock_font_size">80.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen><dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>
<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>
5. You basically need to edit
<dimen name="keyguard_lockscreen_status_line_font_right_margin">52.0dip</dimen> - Necessary ( Sets Margin from Right which basically alligns to center )
<dimen name="keyguard_lockscreen_clock_font_size">85.0dip</dimen> - Not Necessary ( Sets the font size of clock time display)
<dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen> - Not Necessary ( Sets Margin From Top )
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen> - Not Necessary ( Sets Margin From Bottom )
6. Assuming that you have a WVGA device. Without a thought do this
Code:
<dimen name="keyguard_lockscreen_status_line_font_right_margin">[B]52.0dip[/B]</dimen>
<dimen name="keyguard_lockscreen_clock_font_size">[B]85.0dip[/B]</dimen>
What I did is changed the font size to 85 dip and right margin to 52 dip. You can see the result in screenshot above
7. If you have a device with different resolution. You need to do some experiment on your own by changing margin to allign it in center.
I will suggest to keep the right allign to 54-56 dip and font size 82 dip for devices with higher resolution above 480*800
8. Thats All.. If you want too change layout to bottom or extreme top..Change te dip values for top and bottom margin
For more tutorials and guides visit - www.blindndumb.com
Cheers
Last edited: