Theme the Contacts.apk from Eclair - Android Themes

Since the day it was backported, the Contacts.apk from ChainsDD has proven very difficult to theme. I've yet to come across a single theme that had the 9.png files in this theme modified.
I have tried dozens of times to do so but the buttons become warped and stretched when you press them. I've tried using the draw9patch.bat as instructed by damitpud from here: http://forum.xda-developers.com/showthread.php?t=487001 but I have no clue if I'm doing it right because I am clueless with Eclipse.
Attached are a few of the png files that I am trying to use to theme the Contacts.apk file. It would really suck if I worked for countless hours for 8 stupid png files and they didn't turn out the way that I wanted. So I have basically given up. Until now. I am hoping that there is someone that can offer a simplified walkthrough to converting the 9.png files to work in the apk file.
I know that I'm not the only one that's been frustrated with this so I'm hoping that we can simplify it because this file seems to becoming the standard in Cyanogens Rom updates. It's been out for almost a month and all I ever see is yellow and orange.

The reason the images are warping is because you have to compile the .9.png files in eclipse in order for them to work. You could ask someone to compile them for you, but if you want to get into theming at all then you must figure out how to work with them. once you get it down, it's not all that hard

i have themed them. like freekyfrogy said, it isn't all that hard to do once you compile a few of them in eclipse.

david1171 said:
...it isn't all that hard...
Click to expand...
Click to collapse
freekyfrogy said:
...once you get it down, it's not all that hard
Click to expand...
Click to collapse
Alright guys... as I mentioned in my original post... I get stuck with Eclipse.
Since it's so easy, please give better instructions on how to do it with Eclipse.
I've tried the walkthrough from damnitpud and it throws about 12 different errors and nothing worked.

Bro the only thing you need eclipse for is to recompile the images...just start a new Android project and choose "From existing Source", then choose one of the samples that comes with the SDK...i use home.apk. then after you edit the .9.png's with draw9patch, you dump them into a folder (i.e. res/drawable or res/drawable-land) in the project, overwrite whatever images may already be there, and then right click the root of the project in the tree view and go down to "Android Tools" and pick "Export Unsigned package". (it doesnt matter if its signed cuz your just gonna extract it for the images)
This will save an .apk file to your eclipse workspace directory. just copy it to your desktop and extract it to get the freshly compiled .9.png's and inject them into your .apk or update.zip...then sign and flash!
hope this helps, if not, i do this all the time i can help you out if you get stuck...
EDIT: out of curiosity, what errors are you receiving?
EDIT EDIT: I dont know if you like Death Metal, but here's a couple i made, just so you can see it does work...they're the same dialer just with a different background, but its not warped or fuzzy at all, check em out...(alright the screenshots are kinda fuzzy but you can blame that on Drocap2...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-BMFC

bmfc187 said:
Bro the only thing you need eclipse for is to recompile the images...just start a new Android project and choose "From existing Source", then choose one of the samples that comes with the SDK...i use home.apk. then after you edit the .9.png's with draw9patch, you dump them into a folder (i.e. res/drawable or res/drawable-land) in the project, overwrite whatever images may already be there, and then right click the root of the project in the tree view and go down to "Android Tools" and pick "Export Unsigned package". (it doesnt matter if its signed cuz your just gonna extract it for the images)
This will save an .apk file to your eclipse workspace directory. just copy it to your desktop and extract it to get the freshly compiled .9.png's and inject them into your .apk or update.zip...then sign and flash!
hope this helps, if not, i do this all the time i can help you out if you get stuck...
EDIT: out of curiosity, what errors are you receiving?
EDIT EDIT: I dont know if you like Death Metal, but here's a couple i made, just so you can see it does work...they're the same dialer just with a different background, but its not warped or fuzzy at all, check em out...(alright the screenshots are kinda fuzzy but you can blame that on Drocap2...
View attachment 259405
View attachment 259406
-BMFC
Click to expand...
Click to collapse
Starting off when I use an "existing source" it gives me an error that it can't find the res files. So i managed to do a "quick fix" for that and it is now spitting out warnings and I haven't even dropped in my png files yet.

Here is how I set eclipse up to handle my .apk that I needed.
file, new, project, android, android project.
it will bring up pop up window.
select create project from existing source.
select browse. (i still use the 1.5r3 for this)
C:\android-sdk-windows-1.5_r3\platforms\android-1.5\samples\HelloActivity
that is the location i use. i use HelloActivity because there are no images in it to begin with but you can place images in it.
after that it lets me press finish and it open the project and allows me to drop my .9.png's into it.
once finished with adding files, right click, scroll down to android tools, export unsigned android package.
really don't know if any of this will help since bmfc187 already put up what he does which is really the same thing that i do.
i did have to read through a fair amount of the thread to set up the already existing project and that is what i got out of it.

david1171 said:
Here is how I set eclipse up to handle my .apk that I needed.
file, new, project, android, android project.
it will bring up pop up window.
select create project from existing source.
select browse. (i still use the 1.5r3 for this)
C:\android-sdk-windows-1.5_r3\platforms\android-1.5\samples\HelloActivity
that is the location i use. i use HelloActivity because there are no images in it to begin with but you can place images in it.
after that it lets me press finish and it open the project and allows me to drop my .9.png's into it.
once finished with adding files, right click, scroll down to android tools, export unsigned android package.
really don't know if any of this will help since bmfc187 already put up what he does which is really the same thing that i do.
i did have to read through a fair amount of the thread to set up the already existing project and that is what i got out of it.
Click to expand...
Click to collapse
i'm either drawing the borders wrong or it's eclipse that's not set up right... I'll give it another go. Thanks.

Nope. I think that I was able to get it to work in Eclipse and updated in the Contacts.apk file but they still come out looking warped. I have to be doing the borders wrong.
Maybe someone can tell me what's up.

After you compile the .9 image and open the image, do you still see the black pixels around the edges? If you still see the black pixels, then it wasn't compiled. If you don't, then it should work.

MOONSSPOON said:
After you compile the .9 image and open the image, do you still see the black pixels around the edges? If you still see the black pixels, then it wasn't compiled. If you don't, then it should work.
Click to expand...
Click to collapse
nope. no pixels at all.

Got it!
I just decided to pull the source from Cyanogen's github because I remembered that the 9.png files already had the borders on them.
It would seem that my problem wasn't with Eclipse... it was knowing where to place the borders in the draw9patch.bat.
No problems.
Thanks for the help.

Related

**Drizzys Lockscreen Port** Updated for 2.9

Clear Lock Screen Only
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://www.4shared.com/file/146988942/737c22d2/clearlockscreen29.html
Enjoy
Oh my... Where to get the wallpaper only?
The wallpaper can be found here. Not lockscreen resolution though.
By the way thanks a lot ratcom.
Sweet!
Cheers bro, keep up the good work!
is it somehow possible to have also a own backgroud image (set through settings)?
just use whatever wallpaper you want. This update is for the lockscreen icon not the wallpaper!
help
thanks for your work.
can you explain how to do that?
which file to edit? and how to make it an update file?
good day!
Brilliant, thanx for putting these together.
Would it be possible to remove the transparent box at the bottom of the screen when u touch it or recieve notification? The one that the slide down to unlock txt is on.
i love this lockscreen but im with djmace 100%, if you can remove the darker transparent box that appears when you get a text or if you touch the screen it would be absoulutly perfect
please please please
ypyp said:
thanks for your work.
can you explain how to do that?
which file to edit? and how to make it an update file?
good day!
Click to expand...
Click to collapse
I would be very interested in this also!
Thanks man!
I unpacked the update to see how this worked and in the lockscreen folders, the graphics have all been blanked out apart from lockscreen_prompt_back.png.
I'm guessing if you made this one blank as well the transparent box would become clear too. I'd test it but need to learn how to sign apk files again first.
Can u confirm ratcom? Good work anyway!
sounds like you're onto something, can someone please try this as I havent the foggiest idea where to even start trying
I'l love you forever
pookie1 said:
I unpacked the update to see how this worked and in the lockscreen folders, the graphics have all been blanked out apart from lockscreen_prompt_back.png.
I'm guessing if you made this one blank as well the transparent box would become clear too. I'd test it but need to learn how to sign apk files again first.
Can u confirm ratcom? Good work anyway!
Click to expand...
Click to collapse
this was posted by ratcom as to how ti sign the apk's again
I found these instruction here http://forum.xda-developers.com/showthread.php?t=467639
Quote:
Before using this you need to know how to set this up:
I will assume that you have the sdk downloaded and extracted somewhere(if not, do that now), extract both files to the tools directory of your sdk.
Now you will need to add the tools dir of your sdk to the environment variable CLASSPATH.(seem to work with windows 7)
To do this, right click on My Computer click properties, then choose the tab that says advanced. Click the button that says environmental variables. Go to system variables find the one that says CLASSPATH, double click it, go to the end of variable value. There should be a semicolon ; at the end. type in the path to the testsign.jar located in the tools directory of your SDK, for example the path to my testsign.jar was c:\sdk\android-sdk-windows-1.0_r1\tools\testsign.jar If CLASSPATH is not in your system variables then create it. Secondly, Find the system variable called PATH and add to the end of it, the full path to your sdk directory. For example, mine was c:\sdk\android-sdk-windows-1.0_r2\tools
Now right click the reg file that you extracted and choose to install it, or merge.
Now, right click an apk, do you see an option that says ResignApk? That's how you will resign your .apks and .zips.
If you find the right click menu not working for some reason you can type the following in cmd to sign your files: java testsign whateverfiletosign
Now through doing this you have done two things, first off you have made the resigning process extremely easy, secondly you will not have to cd to the tools dir of the sdk to use adb or any other tool in the sdk.
does anyone that knows what they're doing fancy giving this ago?
Il try when i get home but dont count on me
Thanks for that djmace.
I will test my theory asap, hopefully will have some time to try this afternoon.
pookie1 said:
Thanks for that djmace.
I will test my theory asap, hopefully will have some time to try this afternoon.
Click to expand...
Click to collapse
I tried last nite but they failed to work. Then this morning I took another look and think that i have found my problem. I copied and pasted the file path from above as my classpath, however i have the 1.5 sdk so therefore need to change that. Won't get chance till I tonite though.
Nice one, cant wait for this, good luck!
Ok I managed to make the changes I wanted, but that file I mentioned is not the one responsible for the transparent block. I'll see if I there is anything else that might be causing it, but nothing jumps out after a quick glance over the files.
But at least I learned a lot
pookie1 said:
Ok I managed to make the changes I wanted, but that file I mentioned is not the one responsible for the transparent block. I'll see if I there is anything else that might be causing it, but nothing jumps out after a quick glance over the files.
But at least I learned a lot
Click to expand...
Click to collapse
Agh poooo!!! lol
Actually looking at the file its curved at the top so was a long shot anyway. Saying that though, i cant find any other file that could be the one we want either.
My next thought is that it is actuall drawn by an xml file. There is a file in the layout folder called htc_locks_creen_control.xml that could hold the answer but i have no idea how to view what is written in the xml.
djmace said:
Agh poooo!!! lol
Actually looking at the file its curved at the top so was a long shot anyway. Saying that though, i cant find any other file that could be the one we want either.
My next thought is that it is actuall drawn by an xml file. There is a file in the layout folder called htc_locks_creen_control.xml that could hold the answer but i have no idea how to view what is written in the xml.
Click to expand...
Click to collapse
is this of and help?
http://www.w3schools.com/xmL/xml_view.asp

[THEME] Rotary Style Lockscreen for EE 3.0 or CE 1.1 [UPDATED: 06/08/2010]

[THEME] Rotary Style Lockscreen for EE 3.0 or CE 1.1 [UPDATED: 06/08/2010]
This is a rotary style lockscreen for use with EE or CE. The one for EE may possibly work on other ROMs. However, it could cause a boot loop if it does not work, so make a backup before trying. It may also break things non-related to the lock screen. This mod involves editing the android.policy.jar file which is why this is specific to EE 3.0 and CE 1.1. If you like this mod but it does not work right on your ROM, send me your jar file and I will mod it for you.
I got the idea for this from this thread, so thanks to JsChiSurf for the files in the thread. I initially tried just flashing his zip, and it did give me the rotary style lockscreen, but it broke a lot of other system related items. So I compared both my file and his to find where the differences were to make this modded one for EE.
You can choose either the transparent background with the date and time showing or the transparent background with only the charge status showing. I am going to try and make these with the option for a background. There is a link to a MetaMorph theme in the second post if you would like to remove the arrows while unlocking. Let me know if any of you have other suggestions.
UPDATED: I removed the flashable zip files and made some MetaMorph themes that do the job for both EE and CE. The EE lockscreen is transparent atm and comes with or without the time and date. The CE one is not transparent and shows your current selected wallpaper or live wallpaper.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Instructions:
1. Do a NAND backup first!
2. Remove the HtcLockScreen.apk if you have not already
Code:
adb remount
adb shell mv /system/app/HtcLockScreen.apk /system/app/HtcLockScreen.bak
3. Download the appropriate MetaMorph theme
4. Apply the theme in MetaMorph
(NOTE: If your phone does not reboot or MetaMorph does not ask you to reboot, or your phone locks while applying the theme, wait 10 seconds and either pull the battery or send a reboot command.)
5. Reboot & Enjoy
REMOVE ARROWS
1. Apply this MetaMorph theme from here to remove the arrows.
ADD BLUE UNLOCK BUTTON
2. Apply this MetaMorph theme to change to a blue button --> BlueRotary.zip This is loaded in the theme from the first post now
Oh wow, DO WANT.
After people stop texting me i'm definitely flashing this
I would love this for cyanogen eris
going to try and flash it and see if it works as is, just did a nandroid backup
Hey,
Firstly thank you for making this!
ITS AWESOME!
secondly just a quick suggestion, EE has always replaced the kind of stock HTC green with a blue. would it be possible to do this with the lock/unlock button so it fits the whole EE theme?
Smoothcrm7 said:
I would love this for cyanogen eris
going to try and flash it and see if it works as is, just did a nandroid backup
Click to expand...
Click to collapse
Check out this link. You should be able to use this. I didnt test it on CE so make sure to make a NAND first before trying. I have used it on Aloysius with no issues.
http://forum.xda-developers.com/showthread.php?t=670034
Would you mind sharing what/where the changes are? I would like to make one CyanogenEris.
It's fairly straight-forward, but it involves decompiling the Java classes, replacing some of them and then recompiling. If you read stopxstart's thread for the white notification bar, you will see what I am talking about. I will put together a little tutorial later when I get home from work.
ihtfp69 said:
It's fairly straight-forward, but it involves decompiling the Java classes, replacing some of them and then recompiling. If you read stopxstart's thread for the white notification bar, you will see what I am talking about. I will put together a little tutorial later when I get home from work.
Click to expand...
Click to collapse
I know how to de-compile it. I just need to know what changes where made to the smali files. Then I can make a metamorph for CE .
Sure, It's the LockScreen class. My files are at home, but you should be able to grab it from the one I posted.
ihtfp69 said:
Sure, It's the LockScreen class. My files are at home, but you should be able to grab it from the one I posted.
Click to expand...
Click to collapse
Sweet! Just tried it .. Works! All I replaced was "LockScreen.smali" . If I don't see any errors I will post morph for CyanogenEris.
EDIT:
Ok, this is weird! Any idea why it says "SIM card is PUK-locked."? It only shows it when its plugged in to my laptop.
Try replacing the sub classes as well (I think that's what they are). There should be about five. They have the $ and integers in their name. If that does not help, then it is more ROM specific. To fix it will require editing the original smali instead of just replacing files. A Little more intense, but based on your results so far, it's possible.
Put this file in your MetaMorph theme to change the green button to cyan.
ihtfp69 said:
Try replacing the sub classes as well (I think that's what they are). There should be about five. They have the $ and integers in their name. If that does not help, then it is more ROM specific. To fix it will require editing the original smali instead of just replacing files. A Little more intense, but based on your results so far, it's possible.
Put this file in your MetaMorph theme to change the green button to cyan.
Click to expand...
Click to collapse
No dice. Every tried wipe cache. If I find a fix I will post it.
I guess your just PUK'd then. Try this one.
ihtfp69 said:
I guess your just PUK'd then. Try this one.
Click to expand...
Click to collapse
LMAO! I will give it a try tomorrow at work.
EDIT:
Just tried it. Here is my new message . Seems I am "Network locked".
And just to add. I tried hooking up to AC, it shows the same thing. Any other ideas?
This is hilarious. I need your original smali file, please.
EDIT: I installed CE 1.0 and grabbed the file I needed. Check out the update!
droidkevlar said:
Check out this link. You should be able to use this. I didnt test it on CE so make sure to make a NAND first before trying. I have used it on Aloysius with no issues.
http://forum.xda-developers.com/showthread.php?t=670034
Click to expand...
Click to collapse
just to let u guys no it wont work on cyanogen eris u will get endless boot cycle nvm guess i got proved wrong, lol
ihtfp69 said:
This is hilarious. I need your original smali file, please.
EDIT: I installed CE 1.0 and grabbed the file I needed. Check out the update!
Click to expand...
Click to collapse
I tried your update, it work but one small thing.
If I move the rotary to "Sound Off" it says "Screen Lock" then turning it back on it says "Power Off". LOL!
Yes, yes. Funny man. I know exactly where the problem is. Minor, very minor issue. The method is just referencing the wrong strings. I will fix it after work. I spent a while getting the other issue fixed. I'm an expert at logcat and Java errors now. At least they give you the line number.
By the time this is done, I will have added missed call notifications as well.
EDIT: I uploaded a new file with the strings fixed. For real this time.
ihtfp69 said:
Yes, yes. Funny man. I know exactly where the problem is. Minor, very minor issue. The method is just referencing the wrong strings. I will fix it after work. I spent a while getting the other issue fixed. I'm an expert at logcat and Java errors now. At least they give you the line number.
By the time this is done, I will have added missed call notifications as well.
Click to expand...
Click to collapse
Dude you rock! I can't wait .

[PC BETA APP] AndroSkinner .1 - Mix and merge themes

This is currently for HDPI devices
This is something I made personally to help with constantly merging themes to get the desired look I want. It wasn't until I saw ThemePorter that I thought this would be useful. I plan on developing this to the max if the interest is there. This will allow you to virtually merge any roms no matter what version of android the themed ROM is running (froyo/sense/2.1/2.2). It does this by analyzing the files within the hdpi/mdpi/ldpi folder of the themed ROM and replacing it with the new version only if it exists in the old ROM.
Requirements:
-Windows based PC
-.NET 4.0 framework installed (If you dont currently have it installed, the program should download and install.
-If you have any issues running it, try running as adminstrator
Features
-Mix and match system framework images from different ROMS
-The current version only allows for framework images (status bar icons, buttons, checkboxes, etc..)
Instructions
Important:
**Extract the contents of the zip file to C:\AndroSkinner**
Once the program is installed and loaded, select your current ROM be selecting load from the dropdown. Do the same for the themed ROM. Once both are loaded, click the merge button.
After the program completes the merge, your modified system.framework-res.apk will be in C:\AndroSkinner. You need to push this back to "system\framework\" using ADB.
Important Notes
--I take no responsibility for any damage done to your phone--
There is still a possiblity that you may get a bootloop after pushing modified framework back to your phone so I reccommend creatin a nandroid backup. Depending on the themes you chose to merge the level of elements combined will vary. All I can say is try and report back. There may be something I can do to fix it.
Planned Upgrades
-Make it universal (right now it only supports hdpi)
-Convert mdpi themes to hdpi themes? (Not sure if possible)
-Ability to chose which items you want to merge IE: Only status bar icons, Only buttons, or combination of the both
-Automatically push the new framework to your phone
-Optionally create a metamorph to be used for flashing
-Optionally create an update.zip for flashing
-View which items were merged
-Merging things other then the system framework
-TBD
Please submit any bugs any ideas for future improvement. You are what will make this an useful tool or not
http://www.mediafire.com/file/9j4rrel57sjfhd4/AndroSkinner.zip
If you'd like to support the future development of AndroSkinner please do so below. Every bit helps
Stealing this +)
Maybe this one too
I like this, i'll have to try it. I currently use theme porter
mrono said:
I like this, i'll have to try it. I currently use theme porter
Click to expand...
Click to collapse
It's the same concept only it has an UI. If people find it useful I plan on integrating a lot more features.. I was using it to switch my status bar icons from the cyanmod nightlies.. It saved me some time and I figured I would share it..
WOW amazing work those updates couldnt come fast enough lol. What about the xml files?
I keep getting a licensing error"? Quits the app
rjmjr69 said:
WOW amazing work those updates couldnt come fast enough lol. What about the xml files?
I keep getting a licensing error"? Quits the app
Click to expand...
Click to collapse
I'll be re-uploading shortly
ComplexMinded said:
I'll be re-uploading shortly
Click to expand...
Click to collapse
ok
will be waiting
rjmjr69 said:
ok
will be waiting
Click to expand...
Click to collapse
one more sec.. thought I fixed the issue
ComplexMinded said:
one more sec.. thought I fixed the issue
Click to expand...
Click to collapse
ok lol take your time rather a good working product
It's back up.. Existing users just replace the contents of the existing folder and run the setup. It will update your existing application.
ComplexMinded said:
It's back up.. Existing users just replace the contents of the existing folder and run the setup. It will update your existing application.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
rjmjr69 said:
Click to expand...
Click to collapse
Same problem here. Win7 64bit with .NET 4 installed.
Hey guys, try again.. If it fails i'll have to build this without some of the tools that make my life easier =P
Worked for me. Thanks!
I keep getting an error. Tried different roms, different themes, XP 32bit and Win7 64 bit.
I'm getting the attached error. You should also add a 'default' radio button in the options, or make them check buttons as to unselect them you gotta restart it.
Win7 64-bit
nugzo said:
I keep getting an error. Tried different roms, different themes, XP 32bit and Win7 64 bit.
Click to expand...
Click to collapse
I'll be working on this tonight. The issue stems from it looking for the framework-res.apk in a full ROM. It then looks for the res/drawable-hdpi/ folder within that apk. It looks like there is no res folder in your framework-res.apk.
ComplexMinded said:
I'll be working on this tonight. The issue stems from it looking for the framework-res.apk in a full ROM. It then looks for the res/drawable-hdpi/ folder within that apk. It looks like there is no res folder in your framework-res.apk.
Click to expand...
Click to collapse
Thanks a lot. Something i'm doing wrong?
I finally was able to run it all the way through without getting the "res" error, but it did not create a folder under c:\Androskinner. Not sure if it was 100% complete or not.
I do all my Theme tweaks the long way so cant wait until the next update.
Thanks

[TUTO] Create your 9.png !

I will guide you into the famous 9.png creation
First rule before to start how to learn to theme your device :
Always make a backup of the files you are about to edit or do a nandroid backup.
If anything goes wrong you will get a bootloop.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
☺ TOOLS you must have ☺
1. PHOTOSHOP / GIMP http://www.gimp.org/downloads
or a good alternative for those who are rookies in Adobe products : PAINT.NET http://www.paint.net
or any other Graphics editor you like to use of your choice.
2. DRAW 9-PATCH http://developer.android.com/sdk/index.html
You will find it in your SDK starter package ( android sdk/tools )
The Draw 9-patch tool allows you to easily create a NinePatch graphic using a WYSIWYG editor.
3. xUltimate-d9pc.exe http://lmgtfy.com/?q=xUltimate-d9pc
Basically you will need to compile the edited 9.png to Draw9Patch Compiler
*****
Now let's play with your pics in the graphic editor of your choice :
your 9.png's files would be in <drawable/drawable-hdpi> folder' apk
When you are done editing your image,
you can open it in the draw9patch tool to verify that it stretches properly.
Here is the most important part of the 9.png creation.
You need to define 2 parts :
* Stretch part ( always left and up side )
* Content part ( always right and bottom side )
When you are done stretching your image,
you can open it in the 9.png compiler tool to compile it properly.
you notice the 1pixel border created for the stretcheable 9.png
Place your files in example1/drawable-hdpi
Execute the xUltimate-d9pc.exe
If you defined properly your 9.png,
you must find no errors and you can hear a "peeep"
Compiled ready files are in /Done folder
When you are done compiling your image,
you can see that the 1pixel border disappeared.
Use 7-ZIP http://www.7-zip.org
(an open source file archiver with a high compression ratio)
to drag your files into the apk !
Source : androidbyyorzua
Congatulations, you can enjoy your work ​
thanks to "PoorCollegeguy" who featured my thread the XDA Portal )))
and tweeted as well :
spc_hicks09 said:
Thank you soooo much for posting this!
Click to expand...
Click to collapse
A single click on the thank button would make me happy if i helped you
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
EddieFAF said:
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
Click to expand...
Click to collapse
Thanks for your comments,
Maybe this is what you are looking for :
[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]
Personally never tried/needed it yet
Great tutorial. Nice job making the front page on xda too. I assisted with making a new draw9patch a couple months ago and would highly recommend checking out my thread here on xda. It will literally save you hours of time from using the original draw9patch.
http://forum.xda-developers.com/showthread.php?t=1344909
Guy's please keep the thread clean and on topic and please do not post a thank you post just hit the thanks button in the OP's first post
Thanks
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
przemo5020 said:
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
Click to expand...
Click to collapse
A little off topic, buddy, as it is not really a 9.png you are trying to work on but doubke check if the png is indexed. You will find many of the pngs indexed and some not.
Answering from my phone, will help you better tomorrow
Freaking awesome dude will try this out. Since I was looking to add some of my costume 9.pngs.
Thank you, as this is a good guide. Took me awhile until it finally clicked. I know you emphasized but I do not think enough, the stretch and content lines are vital. I did not quite get WHAT that meant till messing over and over.
Any one trying fot the first time, definitely play with the examples he provided and you will be all good.
There is an app for Android called "9 Patch Editor" that can load .9.png (compiled or with border) and edit them or remove patches altogether. I hope that helps.
Hi,experts,I'm new to this theming and png editing stuff
Can I create 9.png if I just follow your guide Yorzua? If yes,
I'll give it a try soon!
Orelse, if this is a higher level thing,could you guide me into something basic .so that I learn some things and then jump over here!
Sorry for the questions....! Hope you don't mind!
Sent from my MT11i using xda premium
Do .9.pngs need to be source to resize with the 9patch tool or can they be resized when compiled.
thank you so much for this i was going crazy !
seand88 said:
thank you so much for this i was going crazy !
Click to expand...
Click to collapse
You are welcome,
glad it could help someone
Hi Yorzua,
If you see the sending text message animation on ios or any iphone it is
is awsome and smooth sliding effect and message goes upped side with
sliding... I want to do same animation on my android phone... but the
problem is when i decompile WhatsApp apk i can not found folder of
animation. Can you plz tell me or show me how can I do that???
Plz do needfull.
please help me, I want only this 9.patch colors change to white , can someone do and share to me ? thanks..
http://www106.zippyshare.com/v/FmVNQcCP/file.html

Trying to create a custom theme for my phone. Need help!

As the title reads, I've recently rooted my HTC One; and installed the Ecliptic ONE Inverted rom (the kit kat version) along with the custom theme that you can install with it. Though theres a few parts of the theme that I want to change. They aren't drastic changes, just small things changing the opacity of notification bar and the dock. Along with color alterations to a few things like the color of the text on keyboard and keypad to red, changing the color of the clock in the notification window, changing the color of the quick setting toggles when they're on, and some color alterations to the icons on some apps. I'm mostly doing this because my HTC One is red and it looks weird when a lot of the elements of the theme are blue (to me it looks weird just because of the color of the phone, don't judge). I'm also to looking at changing some of the icons in the notification either to a different icon, or just to the stock HTC sense icons.
My problem has been that I've trying to do this, but I kinda got confused by a lot of this; and I'm still relatively new when it comes to creating a theme or rom for android devices.
So far I have the Android SDK installed, and I have the android utility installed. Though I've been having problems with android utility, the utility keeps spitting out a ton of errors whenever I trying installing the framework-res.apk to the utility, and whenever I try to decompile a apk it doesn't fully decompile the whole apk. I'm using OSX 10.9.1, I also have photoshop CS6 for image editing. If needed I can supply more specifics as to the errors that are popping up or anything else you guys need.
If anyone out there has experience in this matter thats willing to help me out in any way or collaborate with me on this project just reply to this thread. Any help or advice or help that can be given will be appreciated.
DISCLAIMER: This custom theme is going to be for my own personal use only. This will not be distributed to the general public.
Why not use linux or windows? I used VTS to do personal edits and it's fantastic. It will pull the appropriate framework apks from your phone through usb also. It does take a bit of programming knowledge to do this type of thing as you may run into bugs when messing with frameworks. Just my two C. Good luck!
Why don't you look into this:
http://www.xda-developers.com/android/resxploit-allows-theming-without-decompiling-apk-files/
I totally hear you on the color/theming thing. I have the blue ONE and a red or otherwise colored 'theme' seems strange. I use my Beanstalk build; it offers quite a bit of customization. Not every single thing you may want to customize, but the vast majority. Not trying to pimp my build, just sharing how I dealt with similar feelings.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
insuusvenerati said:
Why not use linux or windows? I used VTS to do personal edits and it's fantastic. It will pull the appropriate framework apks from your phone through usb also. It does take a bit of programming knowledge to do this type of thing as you may run into bugs when messing with frameworks. Just my two C. Good luck!
Click to expand...
Click to collapse
I would use Linux if I could but at the current moment I don't have a Linux machine readily available that I can use. That and I don't feel like screwing with the bootloader on my mac in order to install Linux on it; or spending the disk space for partitions to run Linux off of. I'll see if I can get for the mac though and go from there.
BMP7777 said:
Why don't you look into this:
http://www.xda-developers.com/androi...ing-apk-files/
I totally hear you on the color/theming thing. I have the blue ONE and a red or otherwise colored 'theme' seems strange. I use my Beanstalk build; it offers quite a bit of customization. Not every single thing you may want to customize, but the vast majority. Not trying to pimp my build, just sharing how I dealt with similar feelings.
Attachment 2507217
Attachment 2507218
Attachment 2507219
Click to expand...
Click to collapse
I'm glad to hear you know where I'm coming from. I'll also look into the link you posted as well.
MrTechie890 said:
I'm glad to hear you know where I'm coming from. I'll also look into the link you posted as well.
Click to expand...
Click to collapse
Didn't know you had a Mac. When looking around, I found this:
http://forum.xda-developers.com/showthread.php?t=916814
Also, from what I read, APK Tool has versions for Mac and Windows. Hope you have success. Be cool
BMP7777 said:
Didn't know you had a Mac. When looking around, I found this:
http://forum.xda-developers.com/showthread.php?t=916814
Also, from what I read, APK Tool has versions for Mac and Windows. Hope you have success. Be cool
Click to expand...
Click to collapse
I actually tried the using the apktool a few days after posting this thread. Sadly I had no success. After I installed the framework files that came with the rom and theme I'm using the only thing it would extract was the smali file; and the folder would be empty in most cases. You're input is appreciated though.
MrTechie890 said:
I actually tried the using the apktool a few days after posting this thread. Sadly I had no success. After I installed the framework files that came with the rom and theme I'm using the only thing it would extract was the smali file; and the folder would be empty in most cases. You're input is appreciated though.
Click to expand...
Click to collapse
What version apktool did you use? The latest that works for me is 1.5.1. Try that and see if it works.
insuusvenerati said:
What version apktool did you use? The latest that works for me is 1.5.1. Try that and see if it works.
Click to expand...
Click to collapse
The version I was using was v 1.3.2, but I tried it with the latest version like you suggested and it extracted everything except the META-INF folder.
Also the classes.dex isn't showing up either.

Categories

Resources