youngsta2010, on 10 December 2011 - 07:14 PM, said:
Thanks, so do you extract the images with winrar or decompile the apk first?
Really, its best to decompile using Apktool first, and essential when working with 9.png's
9.png's are png's which are spilt in to 9 (in three rows of three).
The center patch can be stretched by the system horizontally and vertically to fit to the applications desired size.
The corners may not be stretched, and the patches on the edge only either horizontally OR vertically, depending on their placement.
When compiled, these look like normal PNG files in an image editor.
Decompiled, the entire image has a 1px transparent border. Along two or for more complex png's 4 sides, black #ffffff pixels determine where the patches are. Any other colour along this border will make the apk fail to compile.
RGB/greyscale/indexing has never effected me before, though I use the theme engine iin cyanogenmod, so it may be different in your case, though I sincerely doubt it.
Always make sure you replace the image file you are theming, never leave anything missing.
Make the files you replace the same size in pixels as the original
Sign your apk (though this is not necessarily needed for framework files)
Any other questions feel free to ask