[MOD][XPERIA/other] Customizing UXPNXTLockscreen! [10Aug13]

Erhany

Senior Member
Feb 9, 2012
455
1,028
0
com/erhany
erhany.weebly.com
Hello guys.
To re-theme stock UXP Lockscreen's clock/dateview on Xperia I created this topic. But codes can be used on other if you are interested.

-PREFACE-

Lots of Xperia users use UXPNXTLockscreen but if you bored on seeing same clock/dateview, this is for you.
While I was searching 'Lockscreen Themes', I saw some iPhone themes and it fired this thought so you will be able to create your own design.

-Example Snapshots-
Can be found on attachment. Searched / I modded.

-FILES-

Day, DayNumber, Month & Year .smali files.
(I seperated this from framework-res)
Added 2 packs.
Stock Pack- includes 4 smali files which uses system font!
FontPossibility Pack- includes 4 smali files which uses your selected font(s)!

-MODDING-
Decompile UxpNxtLockscreen.apk and copy one of pack inside com/erhany/ folder..

Mod w_clock.xml , other *.xml s or create a new .xml file.

PHP:
<com.erhany.Day android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.DayNo android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.Month android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.erhany.Year android:layout_width="wrap_content" android:layout_height="wrap_content" />
Here are the codes. You may need to add other lines like padding, style, textappearance etc. It's up to you and your creativity!

*If you use FontPossibility Pack, open .smali files and find 'LockscreenFont.ttf' and change its names to your selected fonts.
For 4 smali files you can use one font or four different fonts. It's up to you too.
Then copy your selected font(s) inside to assets/fonts/ folder in apk.

* And also you can change styles in smali files. Like August/Aug 09/9 Tue/Tuesday etc. Check EEEE dd M etc. on const-string v2 line to change style.

So I think you understood the method.
I hope it helps someone/ some people.

-NOTES-
I'm cutting thread here. Example clock I used systemUI's clock. Eclipse, droiddraw can help you to create your mods if you'r not so good at XML Modding.
These are so basic codes for programmers and I'm so new on android thing. Im just trying to develop myself on modding how i like and help noobs like me.

Happy mods.
 

Attachments

Kocane

Senior Member
Apr 29, 2012
1,665
306
103
in second screenshot , what rom are u used ? is that miui rom ??
You're talking to Erhany here, it could be any rom. He's great a modding stuff, remember. I think he is using Atomic GB.

Yo, great to see you're working on the lockscreen too now, Erhany. I think I once brought it up but you still don't think it's possible replacing sound toggle with camera shortcut? Here in this rom (or rom addon) for a GB rom in the Xperia Play section, someone has a lockscreen that looks like ours but with camera shortcut.

Can you learn anything from it, maybe?

http://forum.xda-developers.com/showthread.php?t=1860343
 

moaz93

Senior Member
May 8, 2013
50
9
0
thank you for your work, but can you disable the widget screen to go straightly to the pattern lock screen like on ics
im saying that because when i use an external lock screen app its show me its screen then the widget lock screen(default device's lock screen) then the pattern lock screen, so i cant bypass the widget lock screen
thank you for your help :fingers-crossed: