I've been theming my own APKs for a while just doing png edits, now I'm trying to do xml edits with notepad++ (after decompiling the apk with apkmanager), and every time I open up the xml it looks like this. Why?
{
"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"
}
that really doesn't look like it compiled correctly, i use a program called xml marker for my edits. if it was decompiled right none of those nulls would be there
thoughtlesskyle said:
that really doesn't look like it compiled correctly, i use a program called xml marker for my edits. if it was decompiled right none of those nulls would be there
Click to expand...
Click to collapse
Hm, how would I decompile it correctly? I've tried extracting the apk with 7zip and apkmanager and this is what I always get. Is there something else I need to do?
tjb3401 said:
Hm, how would I decompile it correctly? I've tried extracting the apk with 7zip and apkmanager and this is what I always get. Is there something else I need to do?
Click to expand...
Click to collapse
What apk is it, and are you using option 9 to decompile or are you just pulling the files out with 7zip
Sent from my PG86100 using XDA App
Related
i'm going crazy trying to figure out what png controls the tabs in dialer and contacts!!!! someone help....lol......i know its in framework or twframework, but i cant find which it is.....
Here is a screen shot:
The top part that's light red....what png file is that?
{
"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"
}
Please help! Thanks in advance!
Are you referring to the tab's background or the image?
The backgrounds for the tabs should be located in twframework-res.apk but that will change all tabs in all programs. you should find them in /res/drawable-hdpi naming should be tw_tab.... these are .9.png files so you will have to use the draw9patch utility if you want them to look right after modifiying them.
the image/icons will be located in the Contacts.apk in the folder /res/drawable-hdpi-finger named as phonebook_tab....
hope this helps
(btw i love the way you ask for help makes it really clear what you are talking a bout )
I still can't get rid of the little red line....what file is that? And the background of the unselected tabs.....can't figure it out.
Sent from my SGH-T959 using XDA App
i have a fascinate but im sure its the same thing...in the pic below i point out what the line is when its to the right (tab_selected_bar_right.9.png) and if say "call log, contacts, or favorites" were selected then you would also have a line to the left which would be tab_selected_bar_left.9.png
some other apks call on twframework-res.apk for their tabs (individual contacts within the contacts.apk does for us) so you would have to edit tw_tab_blah blah blah
My PC seems to have a problem where every xml file is viewed this way. Im trying to edit the status_bar.xml to remove the clock but I cant. Any ideas?
{
"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"
}
Free Dirk!!!
knowledge561 said:
My PC seems to have a problem where every xml file is viewed this way. Im trying to edit the status_bar.xml to remove the clock but I cant. Any ideas?
Free Dirk!!!
Click to expand...
Click to collapse
Use Notepad ++, it works!
did you decompile whatever apk you are modding from apkmanager? or apktool... 7zip messes it up
I can only assume you are pulling the XML files from the APK. You need to decompile them instead of just pulling them.
dfskevinohyeah said:
did you decompile whatever apk you are modding from apkmanager? or apktool... 7zip messes it up
Click to expand...
Click to collapse
lmao thanks
Free Dirk!!!
scrosler said:
I can only assume you are pulling the XML files from the APK. You need to decompile them instead of just pulling them.
Click to expand...
Click to collapse
lmao thanks alot dude
Free Dirk!!!
I want to change the color of the buttons, is there a guide on how to do this?
Just replace the images in SystemUI. Don't remember the exact ids, but you should be able to find them.
K900 said:
Just replace the images in SystemUI. Don't remember the exact ids, but you should be able to find them.
Click to expand...
Click to collapse
How do I unpack and repack the apk? Signing?
Skickat från min LT26i
Look up apk tool and apk manager. Pretry simple once you get the hang of it. There is tutorials all over xda on how to use them and modify files..
wpgchris said:
Look up apk tool and apk manager. Pretry simple once you get the hang of it. There is tutorials all over xda on how to use them and modify files..
Click to expand...
Click to collapse
Well that didn't go as I expected. I found the files and tried editing one but that's the part where I'm failing. How do I edit the .png properly? I tried with this result...:
{
"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"
}
Hi guys, how can i modify my rom's windows style?
i think in the framework-res.apk and in the systemUI.apk
u need apk manager and read some tutorials
http://www.xda-developers.com/andro...-framework-res-a-little-easier-for-beginners/
http://www.xda-developers.com/android/customize-systemui-apk-on-the-us-samsung-galaxy-s-iii/
I know how to modify APKs file, I only wanted to know where to find the windows style to modify... Ty for your answer!
mackief said:
I know how to modify APKs file, I only wanted to know where to find the windows style to modify... Ty for your answer!
Click to expand...
Click to collapse
Depending on what you are trying to do you will have to remake the .9.pngs as well as rewrite some of the xmls layout.
zelendel said:
Depending on what you are trying to do you will have to remake the .9.pngs as well as rewrite some of the xmls layout.
Click to expand...
Click to collapse
Simply from 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"
}
I want to make it more similar to this:
Do you know where to find?
mackief said:
Simply from this:
I want to make it more similar to this:
Do you know where to find?
Click to expand...
Click to collapse
Yup. Those are the popup .9pngs in the framework-res.apk. You will have to make news ones that match what you want and then run them threw the draw9 tool and recompile the apk
After many brainstorming and test and probably about 10 softbricks, i finnaly Fixed the Shift bug! For those who dont know what this Shift bug is, basically when you theme your apk and recompile and flash it back, it shifts to the left like 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"
}
Now this is a fix I have found! There will be two soultions below.
Solution 1: For anyone eles running different devices
Basically, open your orignal apk with winrar. Go to res-> layout folder then extract status_bar_expanded.xml and status_bar_expaneded_header.xml and put it the layout folder
After themeing and modding your SystemUI apk, recompile it. After recompiling your themed apk, open your new apk with winrar and Go to res->layout and Now drag those two xmls you extracted from your orignal apk into your themed one then hit ok. Now flash the themed apk to your device!
Solution 2: For people who own T800 or T805 Tab S.
Download this zip https://www.androidfilehost.com/?fid=24052804347769675
Open your themed SystemUI with winrar, navigate to res-> layout and drag the two xmls into layout from the zip you downloaded.
Done!
Hope this helps!
Sent from my SM-T800 using Tapatalk
Screenshots of the fix working.
Sent from my SM-T800 using Tapatalk