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.
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.
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" />
*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
-
35.9 KB Views: 1,626
-
30.2 KB Views: 1,487