Need help to Identify a png - Android Themes

Hello,
Something is bothering me when I'm watching a video :
when I hit the volume keys, this volume popup is coming in front of the video, and stays there for ages
{
"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"
}
I would like to edit the background and make it transparent. I'm pretty sure it's located in res\drawable-hdpi
but if someone knows which file it is, that would help me a lot
thanks !

Should be in framework-res.apk or SystemUI.apk.
Just view the folder and look for this png?
Maybe it's used by other dialogs too, so there could be more than one part. (top, middle, bottom)
And if you're not lucky, other dialogs are transparent too after this. ;o

I did open the "framework-res.apk"
I got a lot of files in it :laugh:
I did not find anything looking like it, only these ones maybe ... ?
is it a sigle png file or maybe these tiny squares put together ... I should test

On mine its dialog_full_holo_dark there are other dialogs that use it though...if you don't want to affect them you'd have to edit volume_adjust.xml to point to another image
If you can decompile your framework check that xml to confirm
Sent from my GT-I9100 using xda premium

ok thanks,
can I just extract the xml from framework-res.apk on my computer, edit it, and then add it again + adb push the new framework-res.apk ?
edit : looks like I need to read this http://forum.xda-developers.com/showthread.php?t=1427959

ok, in the XML volume_adjust.xml (once I decompiled the file), I found this :
android:background="@drawable/dialog_full_holo_dark"

yeah there is a bit involved in decompiling but its worth learning how to do it, especially with 9.pngs
Sent from my GT-I9100 using xda premium

I have errors when I try to recompile, so I'm gonna go with replacing the PNG file with a transparent one, and just replace the png withing the APK using winrar. I made a backup. Time to adb :silly:

well, it doesn't change anything
(and I wipped cache+dalvik)
damn

Hmm that's weird, here's a compiled image I found on my phone if you want to try with that to test. If that works it must be something to do with the image you used, if that doesn't work it must be something to do with the process your using to push it to your phone not working.
http://db.tt/K2uTCdey
If you decide to give compiling another go...assuming you've got your environment and paths set up correctly and you've not changed the 9patches, the errors you're getting may be just plural errors? If that's the case you just need to go through values and change line 79 on each one so they're like %d %%d instead of %d %d (sorry that's a bit vague)
Sent from my GT-I9100 using xda premium
Edit: If you get stuck with it post your framework and i'll do it for you.

Related

Black pixels visible on the 9-patch images?

I've used the 9-patch application to draw the black pixels as I should and the result is this:
{
"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"
}
Visible pixels? What do I do wrong?
Did u compile the image using eclipse ?
U gotta do that if i recall correctly. Also if ur on a windows machine and the image-background transparency is not an issue, may i suggest MsPaint (When editing a .9 png it keeps the data intact even after u save the file)
Daneshm90 said:
Did u compile the image using eclipse ?
U gotta do that if i recall correctly. Also if ur on a windows machine and the image-background transparency is not an issue, may i suggest MsPaint (When editing a .9 png it keeps the data intact even after u save the file)
Click to expand...
Click to collapse
Hm, the little guide I found here didnt say a single word about compiling something? I'll check it out.
Daneshm90 said:
Did u compile the image using eclipse ?
Click to expand...
Click to collapse
These files are compiled automatically when building an apk.
@Hund
Did you named these files like: some-file.9.png ?
Brut.all said:
These files are compiled automatically when building an apk.
@Hund
Did you named these files like: some-file.9.png ?
Click to expand...
Click to collapse
Im using the stock files as an template. I've installed Eclipse and I think I know how the get i right now. I'm booting up my Hero atm and hopefully I got it right.
Success! The button looks like it should.
Can you post the tutorial?
Sent from my Eris using XDA App
I dunno where I found it. But check out these posts here:
http://www.swedroid.se/forum/showpost.php?p=191880&postcount=10
http://www.swedroid.se/forum/showpost.php?p=191880&postcount=11
A picture says more than a thousand words.

[Q] Change notification colours

Does anyone know how I would change the colours of the text in black below? It is the only thing that I can't find. I think It might be in services.jar somewhere but changing that is out of my depth.
Any help is greatly appreciated.
{
"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"
}
Sometimes I changed color for date and clock.
For this I had to decompile "classes.dex" file which you cand
find if you open "services.jar" with WinRar or 7zip!
After changing colours you have to compile back,open "services.jar"
again and put the new "classes.dex" there.
But I think some colours for notifications are at
framework-res.apk/res/layout/status_bar.xml,not at "services.jar".
Maybe look at here:
http://forum.xda-developers.com/showthread.php?t=535630
http://forum.xda-developers.com/showthread.php?t=549309
I am interested in this as well. I have searched and searched code and Google for where that precise line is and coming up empty. The links provided althougb useful and already used do not address the question.
Sent from my SCH-I500 using XDA App
It's an .xml file in DownloadProvider.apk/res/layout, I do believe.
JAguirre1231 said:
It's an .xml file in DownloadProvider.apk/res/layout, I do believe.
Click to expand...
Click to collapse
Thank you very much! It works perfectly!
What XML editor are you guys using to edit these files? The one i have keeps giving me invalid character errors.
BumRush said:
What XML editor are you guys using to edit these files? The one i have keeps giving me invalid character errors.
Click to expand...
Click to collapse
I decompile them with apktool and then use any ol' text editor.
Great lesson, thanks
Ganii said:
Sometimes I changed color for date and clock.
For this I had to decompile "classes.dex" file which you cand
find if you open "services.jar" with WinRar or 7zip!
After changing colours you have to compile back,open "services.jar"
again and put the new "classes.dex" there.
But I think some colours for notifications are at
framework-res.apk/res/layout/status_bar.xml,not at "services.jar".
Maybe look at here:
http://forum.xda-developers.com/showthread.php?t=535630
http://forum.xda-developers.com/showthread.php?t=549309
Click to expand...
Click to collapse
You can change the color of the date in a .xml-file.
I'm building up a tutorial where to find to corresponding entries in the .xml-files (see my signature). Any hints to new places are welcome

[NEED HELP] ICS themeing

As you can see i'm on attempting an ICS theme for Xperia Play 4.0.2.A.0.42
{
"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"
}
There is currently a lot more done to it than what is uploaded on the seperate theme thread but before i release the next release i need a bit of help. As you can see here:
edit: i attempted to edit it using apk manager and decompiling and recompiling but i got an error when compiling, then my edited files didn't even compile or replace, parts were missing when i extracted the zip to see where i went wrong so i have given up
anyways any help with this is greatly appreciated.
attatched is the latest framework.res.apk version.
http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
here is a lot of information about themeing gingerbread
when recompiling the apk i get errors , after it has been recompiled and pushed into an unsignedSystemUI.apk i extract it to see what it is mising, it is missing resources.arc and the .XML's i edited. help?
anyone care to help?
tekken179 said:
when recompiling the apk i get errors , after it has been recompiled and pushed into an unsignedSystemUI.apk i extract it to see what it is mising, it is missing resources.arc and the .XML's i edited. help?
Click to expand...
Click to collapse
examine the log of your recompiling tool
most probably you have some faulty .9 pngs in your theme that can't be recompiled unless fixed (even if you haven't edeited them now)
ok i now have successfully recompiled and fully edited the SystemUI.apk
but now i'm getting new errors when editing the framework part (to get notification text title, description etc. in white)
i checked for faulty images, none at all so it's not the images.... i ran the error log couldn't make sense of it apparently it's some xml's and NOT the ones i edited.
Anyone?
Sent from my R800i using XDA App
Have you made sure that every edit you made including adding images you delete from the keep folder when recompiling? I have found that when recompiling it looks to make sure every xml and image points to its proper place, so for instance i was adding pulldown toggles and it kept erroring out, it was because in statusbarexpanded.xml the image file pointing to the image was wrong and thats what was throwing the errors. I downloaded your framework-res i will check it out. Just make sure every XML edit points to proper item and if you chnage images im apk-manager make swure you delete the ones you overwrite in the keep file. Also are you using the newest apk_manager now called apk multi-tool beta 2? I find i get way less errors when using the new one. Also are you familiar with apk-tool and smali/bakmali? Sometimes if you are doing really deep xml edits its better to use that VS apk-manager, if not let me know and i will point you in that direction just to give it a shot. One more thing when you are trying to recompile what does the error log say? Can you post the error log?

[Q] Custom phone answer screen

Is it possible to create your own answer screen ?? I have a bad ass idea and I would like to get to work on it but IDK if anyone has done it yet, I've tried searching but no luck with finding anything for anyone who has Galaxy S captivate. I hate the stock answer screen its so damn boring...
I believe what you're looking for would be in /system/phone.apk (or possibly in /system/dialeractivitytab.apk). Try tearing one of those apart and see what you can come up with.
jmtheiss said:
I believe what you're looking for would be in /system/phone.apk (or possibly in /system/dialeractivitytab.apk). Try tearing one of those apart and see what you can come up with.
Click to expand...
Click to collapse
I'm a little new at this by "tearing" you mean unzip?? I am going to look in those folders and try just that.
It is gonna be in the phone.apk
You can approach it two ways:
1. If you want to just do image editing, use 7zip and extract the apk's into new directories. Edit the images (probably in /res/drawable-hdpi), and then put them back into the original .apk file with 7zip.
2. Using a tool like apktool or apkmanager, decompile the apk. Then edit the files in the directories it creates, and recompile the apk.
Has anyone been successful at changing this?? --->
{
"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"
}
jmtheiss said:
You can approach it two ways:
1. If you want to just do image editing, use 7zip and extract the apk's into new directories. Edit the images (probably in /res/drawable-hdpi), and then put them back into the original .apk file with 7zip.
2. Using a tool like apktool or apkmanager, decompile the apk. Then edit the files in the directories it creates, and recompile the apk.
Click to expand...
Click to collapse
Thanks, LOL you just gave me a ton to google
Yes alot of that has been changed. If this is your first attempt at theming an app might I suggest starting here
http://forum.xda-developers.com/showthread.php?t=908270
robm1911 said:
Yes alot of that has been changed. If this is your first attempt at theming an app might I suggest starting here
http://forum.xda-developers.com/showthread.php?t=908270
Click to expand...
Click to collapse
Well if anyone wants to know here is an image of it slapped together, I really just slapped it on LOL if anyone would like to be a part of this I would gladly accept the help.
Well to further explain my idea if anyone wants to take it up, the image of the contact would appear on the left and no image on the right just fuzzy as if bad reception like
before answering would look like this, of course instead of codec would be a phone number >
After reading everything I wont be able to do this until I get a new PC and that wont be for a good while :/ (my laptop is too crappy)

[Help] Sense 4 ICS SystemUI.apk 9.pngs

Hi to experienced themers
can anybody help me, there is no compilation errors but
9 pngs become messed up.
How to fix thanks?
Also I'm trying to port an eqs to mdpi from hdpi, please help how to adjust size of header image
and notification Fonts icons size.
I already replaced all images to mdpi.
{
"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"
}
Thanks
Conventional 9.pngs stretch the image so you can't have a full pattern in them, the screwy bits are those being stretched. From reading this thread (last few pages)
http://forum.xda-developers.com/showthread.php?p=18790818
It seems sense uses repeater pngs you may find an answer or the help you need there.
Sent from my GT-I9100 using xda premium
Hi, I've been having these issues for a long time. The only way to fix this is to take the PNGs that are stretched from an unmodified apk, and then make changes to the apk. After that, open your modified (and signed) apk as a ZIP and replace the PNGs you took out. Right now, this is the only way to fix this, since apktool optimizes these PNGs every time you use it.
Also, sometimes the .9.pngs are renamed to r.9.png, and lead to FCs. If this happens, rename them to .9.png, and it should be fixed
Thanks, now I will try. My only problem now is resize header and notification font sizes.
EDIT I copied default deodexed stock drawable-mdpi files but still desame
EDIT 2: removed r9, will see. results, still desame
EDIT 3: copied stock r9, results still systemUI FC
EDIT 4: renamed stock r9 to 9pngs success.
shrome99 thanks for pointing the exact answers.
Now to resize header image the one with provider text and notification fonts size, anybody pls.

Categories

Resources