Hi All-
So, while I'm relatively experienced in computer programming, I'm just starting out learning the android SDK and one of my first tasks was to replace some files in an APK file, namely the Dazzle widget apk.
I wanted to make the background of the widget slightly transparent instead of fully black. I opened the APK, pulled the background file out of the HDPI drawable folder, opened it in GIMP, reduced the opacity, and saved it as a png. I put that PNG back into the Dazzle APK, resigned it using a tool I found here on XDA, and used ADB to install it.
However, when I try to add the widget, the background is now too small (however, it is transparent, so clearly it is reading the correct file)! It only takes up about 75% of the size of the widget, and doesn't cover the white buttons that are supposed to be imposed on it. I have not edited the dimensions of the image, so I don't know what's going on.
Is there something I'm overlooking? Please help!
Thanks!
danktamagachi said:
Hi All-
So, while I'm relatively experienced in computer programming, I'm just starting out learning the android SDK and one of my first tasks was to replace some files in an APK file, namely the Dazzle widget apk.
I wanted to make the background of the widget slightly transparent instead of fully black. I opened the APK, pulled the background file out of the HDPI drawable folder, opened it in GIMP, reduced the opacity, and saved it as a png. I put that PNG back into the Dazzle APK, resigned it using a tool I found here on XDA, and used ADB to install it.
However, when I try to add the widget, the background is now too small (however, it is transparent, so clearly it is reading the correct file)! It only takes up about 75% of the size of the widget, and doesn't cover the white buttons that are supposed to be imposed on it. I have not edited the dimensions of the image, so I don't know what's going on.
Is there something I'm overlooking? Please help!
Thanks!
Click to expand...
Click to collapse
Maybe a dumb question but was it a .9.png by chance?
It is a .9.png! I didn't realize files with that extension had any special meeting. I assume that I'll have to use the special tool that come with the developer kit in order to properly edit these.
Anyone have a link to a guide/directions I can follow?
Related
Hey Developers,
I'm currently really busy with Android and everything around it. now I want to start and create my own theme. So far I know I have to pull (or get it from my current ROM) framework-res.apk and take the res map out (or icons) and then when I'm done I have to open it with 7zip and but the files I've edited back and then I can push it (not 100% sure how I have to do that but I'll find that out later)
Now the problem I'm having is changing the colors. I want to set the color of everything (buttons, radio buttons, numbers) and stuff to Purple instead of the normal Green.
I'm currently doing this by opening every file with Photoshop edit it and save it.
Is there any other way to do this or am I using the right way?
Hope someone can help me out!
Thanks in Advance,
SterAllures
You can do it this way with no problems.
If you want have all animations on notifications bar available at the moment you can use my framework-res if you want, it also have com.htc.resources.apk for espresso launcher theme, I based my work on other framework do it here with all animations on notifications enabled because I can't do it well without problems.
Framework with espresso [30-09-2010]: http://www.megaupload.com/?d=DEIXMTG4
Framework with espresso carbono [30-09-2010]: http://www.megaupload.com/?d=OIAQDS5E
GPS movement on conection
Rotate sync icon
SCB "I" do it by NeoPhyTe for me and added later for http://circle.glx.nl
All notification icons replaced and colored
"Herotizado" window style
And some others that I don't remember at the moment
Well I want to start by editing the colour and after that change the colors. but thanks a lot for the frameworks! I'll download them and look at it!
but I still want to know if by editing them with Photoshop is the best way to do it? or is there an easier/better way?
SterAllures said:
Well I want to start by editing the colour and after that change the colors. but thanks a lot for the frameworks! I'll download them and look at it!
but I still want to know if by editing them with Photoshop is the best way to do it? or is there an easier/better way?
Click to expand...
Click to collapse
You can look at my small tutorial in my signature
Sent from my HTC Desire using XDA App
After a long fight with my framework-res.apk I must warn you: if you push the new apk back on the phone via adb you are likely to get a lot of errors on boot from alle the HTC apps launching at startup. You're way better off if you create a update.zip and flash it - no errors at all. In Fightspit's tutorial is a link to the utils for such an update.zip (the tutorial is great and a life saver btw).
And do not forget to decompile framework (not unzip) before editing images, or u will have problems with .9.png (they must have 1px border around)
Edit: and yes u have to edit images one at the time with photoshop
Heya,
I'm back from a lil vacation .
Wanted to thank you all I've read through the link in your signature which was very helpfull!
And Unfortunately Mendozinas I already had a feeling I had to edit every lil file one by one but thanks for clearing that up, gonna be a pain the first time I think but it will be worth it!
Hope I can create a professional looking theme!
Hi
Anyone know how to mod the News and Weather widget (genie apk) to not show pictures?
Im using an already modded widget (transparent)
and it looks lush on a black wallpaper, problem is that the pictures are lowish res and just take the shine off the overall look.
is it possible to stop them from showing somehow?
if anyone could point me in the right direction i would be most pleased.
thanks everyone
you could try editing the .png files inside.
pull it from the phone
open the .apk with and .zip program
look for the relevant .png files
replace each pic with a 1x1pixel transparent .png
push back to phone
if the alignment is out then you will have to use transparent .png images that are the same size as the originals. this will however leave a gap on the left of the widget that is empty (where the pics were)
Is there a 12-hour Digiwatch Mod, the one like this(http://forum.xda-developers.com/showthread.php?t=956219) floating around anywhere? I see it all over the place, but most people say it's NFR. I managed to find the above thread and a few other links about the apk, but they are only for 24-hour format. Is there a way to mod it for 12-hour format? I extracted the files from the apk and checked all of the xmls, but Dreamweaver(default program, I never tried opening it in notepad or anything else) didn't write out the scripts properly. Sorry if this is in the wrong section, I didn't want to put it in the Apps section and start any confusion.
Edit: For anyone that might be wondering why I can't just leave the tickbox for "Use 24-Hour Format" empty is because then the widget has green font for AM/PM and it doesn't fit within the borders of the image used for the background of the clock.
it'd probably be easier to make your own clock widget
I tried editing the 24-hour version, but Dreamweaver didn't write out the scripts properly and just gave me a bunch of weird characters. Do you have any links on that, or creating your own clock? I don't want anything else on it, so I wouldn't have to worry about coding for touching the app for a shortcut, the date, etc.
I would love to customize the metro start colors; anyone figure this out?
dunno it could be related to shxui.dll...not sure
i tried to mod shxui.dll, i found two pngs that looked like the star screen background, i tried to change them in good old Resource Hacker, but once i restarted, metro just failed, the PNGs files are 5231 and 5232, hope this helps
Ramses_mex said:
i tried to mod shxui.dll, i found two pngs that looked like the star screen background, i tried to change them in good old Resource Hacker, but once i restarted, metro just failed, the PNGs files are 5231 and 5232, hope this helps
Click to expand...
Click to collapse
You need to open "SHSXS.DLL" with Resource Hacker. Go to the 2 PNG's, 5231 and 5232. I saved 5231 to desktop. Opened it in Paint Shop Pro. Copied a picture from my Comp. and pasted it as a new layer onto 5231. I think this avoids altering dimensions and size of original. Then, saved it to Desktop and opened Resource Hacker. Went to original 5231 and replaced it with my modded copy. PNG/5231/1033. Then i replaced the original SHSXS.DLL in Windows. Rebooted and Bam!!! It works. But for god's sake make sure you keep a copy of original SHSXS.DLL. I should also mention that i haven't, as yet, done anything with 5232 so when you reboot you will notice the green band behind the tiles which, i guess is 5232. I figure you guys can work the rest out for yourselves.
Cheers to Ramses_mex for the heads up. Enjoy.
Is it possible to have the file already changed?
Blue
Red
White...
yep: http://forum.xda-developers.com/showthread.php?t=1268120
In addition to the directions in this ^ link, you also have to replace 5231 and 5232 in shsxs.dll (as Cueboid says above). otherwise, you'll end up with green at the top and bottom of whatever background color you've chosen.
Has anyone found a way to modify the notification bar? (or replace it with a different one that can be customized?) I'd like to remove the clock. I have a really nice looking widget that lets me use 24h mode and it's quite annoying to have two clocks right next to each other.
You could probably modify it by editing framework-res.apk.
Some stuff about editing that file: https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en
Also, it has already been done for Fire, so it is possible and it works etc. : http://forum.xda-developers.com/showthread.php?t=1365712
EDIT: You could also probably do it with a MetaMorph theme, but you'd still need to do the same stuff pretty much, only instead of repacking the framework-res.apk, you'd build a MetaMorph ZIP and install it via MetaMorph.