Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,870 Members 49,569 Now Online
XDA Developers Android and Mobile Development Forum

Mod Your Background On Default Theme in XL (HOW TO)

Tip us?
 
faizalotai
Old
(Last edited by faizalotai; 18th February 2014 at 02:58 AM.) Reason: bigger font
#1  
faizalotai's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 409
Join Date: Aug 2013
Default Mod Your Background On Default Theme in XL (HOW TO)

Firstly these method required compiling/decompiling an apk file that is themes file

What you need to do is add these line in res/values/public

Code:
Select Code
<public type="drawable" name="semc_theme_lockscreen_wallpaper" id="0x7f020000" />
<public type="drawable" name="semc_bg_tile" id="0x7f020003" />
<public type="drawable" name="semc_bg_bright_tile" id="0x7f020004" />
Code:
Select Code
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <public type="drawable" name="semc_theme_lockscreen_wallpaper" id="0x7f020000" />
    <public type="drawable" name="semc_theme_preview" id="0x7f020001" />
    <public type="drawable" name="semc_theme_wallpaper" id="0x7f020002" />
    <public type="drawable" name="semc_bg_tile" id="0x7f020003" />
    <public type="drawable" name="semc_bg_bright_tile" id="0x7f020004" />
    <public type="color" name="semc_theme_accent_color" id="0x7f030000" />
    <public type="color" name="semc_theme_illumination_color" id="0x7f030001" />
    <public type="string" name="semc_theme_title" id="0x7f040000" />
</resources>
as you can see, semc_bg_tile will integrated with all dark background and as for semc_bg_bright_tile is for the opposite background and semc_theme_lockscreen_wallpaper will add built-in lockscreen image

Now you need to add an image in drawable folder with what we already add to public.xml before


I prefer add 30% - 45% transparent white or black to the pictures so the text can be seen more clearly....

Now compile it back and push it to system/app...



This will override your default themes...

If you wanna add themes along with default..you can change the theme title name in strings.xml..can changed the theme accent color to whatever you wanted in color.xml...refer this for colors changing code.
And rename the apk to whatever you want after recompiling



ps:/image shown was yellow theme frome Honami Pure

credit to ska67 for his based
Sent while my wife goes shopping
The Following 2 Users Say Thank You to faizalotai For This Useful Post: [ Click to Expand ]
 
ShinOrochiX
Old
#2  
ShinOrochiX's Avatar
Senior Member
Thanks Meter 100
Posts: 248
Join Date: Mar 2012
Hi

Your method seems nice and easy to use but the thing is I cannot re-compile the project after making the modifications using APK manager, if I use other similar command based tools I get similar issues (errors), can you recommend a tool that works for this or tell me what I am doing wrong?
Previous Devices: Xperia X10 mini pro, Xperia X8, Xperia Live with Walkman & Xperia L.
Current: Xperia SP

Model: C5303
Android: 4.3 (stock)
Build version: 12.1.A.1.205
Kernel version: 3.4.0 (stock)
Baseband version: -20
 
faizalotai
Old
#3  
faizalotai's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 409
Join Date: Aug 2013
Can you check the log for me or you can just send the work file to me...I'll take a look just in case i'm missing something..
Thanks
Sent while my wife goes shopping
 
ShinOrochiX
Old
(Last edited by ShinOrochiX; 17th February 2014 at 05:39 PM.) Reason: More detail added...
#4  
ShinOrochiX's Avatar
Senior Member
Thanks Meter 100
Posts: 248
Join Date: Mar 2012
Quote:
Originally Posted by faizalotai View Post
Can you check the log for me or you can just send the work file to me...I'll take a look just in case i'm missing something..
Thanks
Hi

I have attached pictures of the error/log. If I decide to bypass them and carry on then it will recompile the original apk-so without the new background image and edited public file.

All I am trying to do is add the semc_bg image from Xperia Sola (same res) and modify the public file (as you mentioned), I am trying to do this for all 8 stock themes, e.g. blue theme has blue background, purple has purple background, black has white background (because black theme provides white wallpaper) etc...
Attached Thumbnails
Click image for larger version

Name:	Error_1.jpg
Views:	112
Size:	140.5 KB
ID:	2584969   Click image for larger version

Name:	Error_2.jpg
Views:	105
Size:	138.3 KB
ID:	2584970  
Previous Devices: Xperia X10 mini pro, Xperia X8, Xperia Live with Walkman & Xperia L.
Current: Xperia SP

Model: C5303
Android: 4.3 (stock)
Build version: 12.1.A.1.205
Kernel version: 3.4.0 (stock)
Baseband version: -20
 
ShinOrochiX
Old
#5  
ShinOrochiX's Avatar
Senior Member
Thanks Meter 100
Posts: 248
Join Date: Mar 2012
Hi

Fixed the issue, turns out that out of the three strings OP said need to be added:

- First one was already present.
- You only add the second/third one depending on your image you will use, e.g. if you choose to name the image "semc_bg_tile" then you only need the string mentioning "semc_bg_tile" and same applies for the other ("semc_bg_bright_tile") string. Credit: MahaDEVELOPER.

Other than that the guide is great, Me and MahaDEVELOPER have already edited and made a thread regarding the themes, here.
Previous Devices: Xperia X10 mini pro, Xperia X8, Xperia Live with Walkman & Xperia L.
Current: Xperia SP

Model: C5303
Android: 4.3 (stock)
Build version: 12.1.A.1.205
Kernel version: 3.4.0 (stock)
Baseband version: -20
 
faizalotai
Old
#6  
faizalotai's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 409
Join Date: Aug 2013
Quote:
Originally Posted by ShinOrochiX View Post
Hi

Fixed the issue, turns out that out of the three strings OP said need to be added:

- First one was already present.
- You only add the second/third one depending on your image you will use, e.g. if you choose to name the image "semc_bg_tile" then you only need the string mentioning "semc_bg_tile" and same applies for the other ("semc_bg_bright_tile") string. Credit: MahaDEVELOPER.

Other than that the guide is great, Me and MahaDEVELOPER have already edited and made a thread regarding the themes, here.
Yes,what we add in the public.xml must be same with image name
Sent while my wife goes shopping
 
DexterousKrupesh
Old
#7  
DexterousKrupesh's Avatar
Senior Member
Thanks Meter 197
Posts: 104
Join Date: Dec 2013
very helpful ! good job!

The Following User Says Thank You to DexterousKrupesh For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android 4.4.3 Begins Rolling Out to European HTC One M8

Shortly after the USA Unlocked and Developer Editions of the HTC One M8 received the … more

Modernize Your Emails with Email Popup

SMS andHangouts messages likely won’t ever replace traditional Emails for more formal … more

Change Your Toast Notification Style with XToast

Android uses multipletypes of notifications. One of these isknown as a toast notification. … more

Port Sony Xperia Themes to CyanogenMod 11 with Ease

In addition the obvious proficiency with graphics, creating agood Android theme … more