[Q] notification_header_bg problems - Android Q&A, Help & Troubleshooting

I am learning how to make themes and using as a base the Android 4.4 KitKat Theme by Global Sense (in Google Play). I wanted to start by making simple changes, like the notification_header_bg. First I made the image in Gimp and saved it to res/drawable-xhdpi (even if my device is HDPI). Then, I added this code to res/xml/com_android_systemui.xml:
Code:
<item name="drawable/notification_header_bg">@drawable/notification_header_bg</item>
And then I had the problem. It's like the image is overlapping itself, and, even if it's not transparent, it's looking brighter on one side. Does anybody know how can I fix this? Thanks!

bump
Bump? Please people, I need your help.

santiagolp said:
Bump? Please people, I need your help.
Click to expand...
Click to collapse
Try editing the smali files. You need to tell the status bar to disappear.

Related

[Q] How to add a background for apks?

Hey guys,
I want to make a theme, so i ask all you themers here:
How do i have to add a background picture, for example to settings.apk? there is no bg.png or something like that to replace..so obviously i'll have to add one..but i think that has to happen in an .xml file..but how do i edit those xml files?
Please help me, our Minis are going to get a beautiful theme
Thanks,
nitro
Nitroboy77 said:
Hey guys,
I want to make a theme, so i ask all you themers here:
How do i have to add a background picture, for example to settings.apk? there is no bg.png ord something like that to replace..so obviously i'll have to add one..but i think that has to happen in an .xml file..but how do i edit those xml files?
Please help me, our Minis are going to get a beautiful theme
Thanks,
nitro
Click to expand...
Click to collapse
Pretty easy if you have xml
Code:
<android:background="@drawable/background">
Add that to relative layout
thanks for your fast reply darknessys
but i don't get you all the way..where do i have to add this line? And how do i decompile a xml file? do i have to decompile a xml file anyway?

[Q] Accept/Decline icons on the incoming call screen

I want to make the incoming call screen look like the image attached, but I don't know which file I should work with. I searched framework-res.apk, systemUI.apk,
BlurPhone,apk for the images to replace, but I didn't find anything.
Does anyone know which file contains the images?
don.juan said:
I want to make the incoming call screen look like the image attached, but I don't know which file I should work with. I searched framework-res.apk, systemUI.apk,
BlurPhone,apk for the images to replace, but I didn't find anything.
Does anyone know which file contains the images?
Click to expand...
Click to collapse
Phone.apk\res\drawable-hdpi\picture_unknown.png
Hi, matchung
Thank you for your reply.
Maybe I didn't make myself clear. I want to change the looks of the sliding bar, not that little green android. I'm using a 2.3.4 ROM.
don.juan said:
Hi, matchung
Thank you for your reply.
Maybe I didn't make myself clear. I want to change the looks of the sliding bar, not that little green android. I'm using a 2.3.4 ROM.
Click to expand...
Click to collapse
same phone.apk
ic_jog_dial_decline.png
ic_jog_dial_answer.png
use 7zip to take a look on phone.apk, you will find your needs~
Hi, i saw this post and wanted to change the Phone.apk\res\drawable-hdpi\picture_unknown.png because in CM7 nightly its a grayed person not a green android so i got a phone.apk from a nexus s extracted the png, and when i extracted mine from phone.apk i realize that its the same but it still shows the grayed person :/
Anybody now how to change it to the green droid in the first post ?
EDIT:
I think i got it, its in my honeybread theme apk, ill try to make the change and post results...
matchung said:
same phone.apk
ic_jog_dial_decline.png
ic_jog_dial_answer.png
use 7zip to take a look on phone.apk, you will find your needs~
Click to expand...
Click to collapse
I found the files. But they're not in phone.apk, but in BlurPhone.apk.
I don't have Phone.apk.
And I still don't know how to get the same effect as the attached.
Could you give me detailed guide?
don.juan said:
I found the files. But they're not in phone.apk, but in BlurPhone.apk.
I don't have Phone.apk.
And I still don't know how to get the same effect as the attached.
Could you give me detailed guide?
Click to expand...
Click to collapse
ok, find a way to do this.
if use system theme, then you should edit the blurphone?/phone.bak, otherwise, edit the theme apk.
what we need is the resources.arsc, inside root of apk file, u have to find the tool to do so.
find your need, right click on image to replace.
here is what i did.
here is what i did.
[/QUOTE]
is there any way you could put up a video tutorial??? about how to change the way the slider looks???
i'm a real noob when it comes to coding and stuff!!
hi.
does anyone know how to change the incoming call style? i realy hate the swipe style. i would like a push style like on iphone...
cheers!
and becauz this is my first post i just wanted to say hi and thanks to all XDA,

[Q] Interested in modding

Hello guys, I am very interested on modding some roms, I've already managed to modify devilsking's TheMythICS Lite. I've managed to change stuff like, overglow color, icons and some text colors
But I am not really familiar with scripts and stuff like that. So can anyone enlighten me here?
Btw, I have experience on XML programming
If you have experience in xml,try modding apk files
You know changing icons and pngs
you are good in xml then what you want to know
Prawesome said:
If you have experience in xml,try modding apk files
Click to expand...
Click to collapse
I've already modded the SystemUI.apk and framework-res.apk and managed to change the icons and text colors
nims11 said:
You know changing icons and pngs
you are good in xml then what you want to know
Click to expand...
Click to collapse
Idk. lol there's so much to do and deal with, I don't know where to start
Lead me?
hey u can try making lockscreens me to finding a tutorial about it.....

[Q]Anybody know if it's possible to . . .

I have a very nice icon overlay I would like to use over all of the icons placed on home screens or in the app tray by Rosie.
I am assuming if I find the spot in Rosie where it places those icons after getting them from the apps, I could add this in.
I can add the overlay to each APK by hand, but this will only work for APKs included in the ROM, whereas putting it into Rosie would put it on all of them, even user installed ones.
Thoughts? Anybody done or seen anything like this?
D
.
dsb9938 said:
I have a very nice icon overlay I would like to use over all of the icons placed on home screens or in the app tray by Rosie.
I am assuming if I find the spot in Rosie where it places those icons after getting them from the apps, I could add this in.
I can add the overlay to each APK by hand, but this will only work for APKs included in the ROM, whereas putting it into Rosie would put it on all of them, even user installed ones.
Thoughts? Anybody done or seen anything like this?
D
.
Click to expand...
Click to collapse
That would need to be coded and supported into the launcher application. Stock aosp, and rosie I don't think support that, there are other launchers that do support it though with a theme apk. Like Go Launcher or ADW.
Unless you are asking something else?
lithid-cm said:
That would need to be coded and supported into the launcher application. Stock aosp, and rosie I don't think support that, there are other launchers that do support it though with a theme apk. Like Go Launcher or ADW.
Unless you are asking something else?
Click to expand...
Click to collapse
No, I was totally talking about hacking it into Rosie.
I know there are overlays used for other things, so I was just considering the idea of adding one for this.
Not as a user option, as something automatically done to all icons.
D
.
dsb9938 said:
No, I was totally talking about hacking it into Rosie.
I know there are overlays used for other things, so I was just considering the idea of adding one for this.
Not as a user option, as something automatically done to all icons.
D
.
Click to expand...
Click to collapse
I have no smali experience, and don't really have an interest. Hopefully someone else can help then.
lithid-cm said:
I have no smali experience, and don't really have an interest. Hopefully someone else can help then.
Click to expand...
Click to collapse
LOL, that's fine. I'm sure it's XML, not smali, but thanks for looking anyway.
D
.
dsb9938 said:
LOL, that's fine. I'm sure it's XML, not smali, but thanks for looking anyway.
D
.
Click to expand...
Click to collapse
Its most definitely not just xml edits. You will need to write code into the launcher to accept different icons based on package name. Currently the launcher uses a default api to retrieve the icon attached to the launcher intent. Be my guest to get it working with only xml edits though.
lithid-cm said:
Its most definitely not just xml edits. You will need to write code into the launcher to accept different icons based on package name. Currently the launcher uses a default api to retrieve the icon attached to the launcher intent. Be my guest to get it working with only xml edits though.
Click to expand...
Click to collapse
I don't want to change it pulling the icon from the app.
After it does that, when it renders it, I want to add the overlay on top. Which I am hoping I can do in the layout XML files.
Of course, I could be completely wrong, which is why I posted this.
D
.
dsb9938 said:
I don't want to change it pulling the icon from the app.
After it does that, when it renders it, I want to add the overlay on top. Which I am hoping I can do in the layout XML files.
Of course, I could be completely wrong, which is why I posted this.
D
.
Click to expand...
Click to collapse
Right, you need to code in the overlay. Overlay via xml that you are thinking of only works when building from source. An example is the amount of code needed to theme a rom like cm7, cm9, cm10. These all have that ability to theme the icons based on activity name in the framework, if that activity path and image exists, it displays a different image. This is done in code, not xml.
lithid-cm said:
Right, you need to code in the overlay. Overlay via xml that you are thinking of only works when building from source. An example is the amount of code needed to theme a rom like cm7, cm9, cm10. These all have that ability to theme the icons based on activity name in the framework, if that activity path and image exists, it displays a different image. This is done in code, not xml.
Click to expand...
Click to collapse
Guess it's a good thing I asked before diving in then.
Thanks for the info.
Being an HTC guy who only messes around with Sense, I have some smali under my belt, but I am by no means good at it. So I guess I will seek help from somebody who is.
Thanks a bunch!
D
.
Here is some code from ADW that enables the icons to be themed.
Part1
https://github.com/CyanogenMod/andr...mmit/84457c8837dfd62f11f616de50289860b8542887
Part2
https://github.com/CyanogenMod/andr...mmit/6c6ae4a8d5dc538b337e4d0206ac75358b31044c
This toggles on/off the icon themes:
https://github.com/CyanogenMod/andr...mmit/8236848db5c80e5cb8f2e1cbba74e7fa194dfb1f
In order for you to enable "icon" overlay support, you will need to add code in to support it. I am sorry.
lithid-cm said:
Here is some code from ADW that enables the icons to be themed.
Part1
https://github.com/CyanogenMod/andr...mmit/84457c8837dfd62f11f616de50289860b8542887
Part2
https://github.com/CyanogenMod/andr...mmit/6c6ae4a8d5dc538b337e4d0206ac75358b31044c
This toggles on/off the icon themes:
https://github.com/CyanogenMod/andr...mmit/8236848db5c80e5cb8f2e1cbba74e7fa194dfb1f
In order for you to enable "icon" overlay support, you will need to add code in to support it. I am sorry.
Click to expand...
Click to collapse
No worries, it's good to have input from people who know more than I do.
I was hoping it would be easier, just adding my overlay in the layout XML files over top of the app icons, but life is never easy.
D
.

Theming LGG3 Apps - Pure Black Settings - for MM stock

I have been theming apps on my phone to give them black backgrounds. The white backgrounds bother my eyes. I'm doing pretty well but I am having a big problem with the LGSettings.apk. I have decompiled the apk and edited the colors.xml, styles.xml and parts of the manifest that i thought might change the theme. I then recompile and run the settings app but I never see any changes. I am trying to figure out what I need to edit to achieve white text on a black background. Any help would be greatly appreciated.
I don't have the apks in front of me, but you may need to theme more than that one. I think you'll need:
LGSettings (which you currently themed)
Possibly: LGSettingsAccessibility/LGSettingsProvider
These two may or may not have anything to theme in them, so you may need to decompile to take a look.
Ok. I'm getting there. The background item and textcolor item were lurking in the lge-res.apk. I am still having trouble finding a way to change the blue action bar color (1) and the color of the white section headers (2). Anybody know what these might be called and what apk I need to look in? Thanks a lot!
skyman88882002 said:
Ok. I'm getting there. The background item and textcolor item were lurking in the lge-res.apk. I am still having trouble finding a way to change the blue action bar color (1) and the color of the white section headers (2). Anybody know what these might be called and what apk I need to look in? Thanks a lot!
Click to expand...
Click to collapse
Ok. I found the action bar - I used 'Widget.Material.ActionBar.Solid' to hard code the background color. Now I just need somebody to help me find those white section headers. Anybody? Thanks so much!
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
skyman88882002 said:
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
Click to expand...
Click to collapse
Awesome, great work!
I remember doing something similar when I was doing this to my Galaxy S3, trying to find the various apk's where Sammy had changed things. It was a great feeling to find and change things.
skyman88882002 said:
Well after two hours of poking around the apks I finally figured it out. Pretty easy to make all the changes in lge-res.apk. pm me if interested in doing this kind of theming
Click to expand...
Click to collapse
HI THERE, I WAS WONDERING IF YOU CAN SHARE THOSE APS's, COUULD YOU MAKE IT POSSIBLE?
elmanolette said:
HI THERE, I WAS WONDERING IF YOU CAN SHARE THOSE APS's, COUULD YOU MAKE IT POSSIBLE?
Click to expand...
Click to collapse
Hi. Please in the future don't use all capital letters. I know you didn't mean this in this case, but it's generally considered "shouting", and for longer strings it makes it harder to read. Thanks for understanding.
roirraW "edor" ehT said:
Hi. Please in the future don't use all capital letters. I know you didn't mean this in this case, but it's generally considered "shouting", and for longer strings it makes it harder to read. Thanks for understanding.
Click to expand...
Click to collapse
sorry man, i'm understand!
I definitely intend to share my findings. However right now i am redoing the theming trying to push all the edits into LGsettings. Since I did the editing in the lge-res.apk it has a lot of unintended consequences on other parts of the system
subscribed.
i despise white backgrounds.
Brian
i cant find any color.xml in any stock apps?
skyman88882002 said:
I have been theming apps on my phone to give them black backgrounds. The white backgrounds bother my eyes. I'm doing pretty well but I am having a big problem with the LGSettings.apk. I have decompiled the apk and edited the colors.xml, styles.xml and parts of the manifest that i thought might change the theme. I then recompile and run the settings app but I never see any changes. I am trying to figure out what I need to edit to achieve white text on a black background. Any help would be greatly appreciated.
Click to expand...
Click to collapse
how do you theme? i can never find the color.xml file in any stock app?
Glitch15 said:
how do you theme? i can never find the color.xml file in any stock app?
Click to expand...
Click to collapse
You need a deodexed ROM/apk file to decompile to find those resources.
RMarkwald said:
You need a deodexed ROM/apk file to decompile to find those resources.
Click to expand...
Click to collapse
my Rom is deodex, can you pm me a step by step guide to get to the color.xml?
it would be nice if you can post a brief guide about theming it.. so people can have benefit.
knowledge is meant to share after all
minhas729 said:
it would be nice if you can post a brief guide about theming it.. so people can have benefit.
knowledge is meant to share after all
Click to expand...
Click to collapse
Hey there! Good to see you on this thread Minhas729. I'm really sorry for the delay, I have just been slammed on the home front and haven't had time to play around with this stuff.
I'm still not happy with the theming I'm doing but I plan on posting my work in process files in the next 5 or 6 days.
In the meantime, let me share my knowledge (it isn't much!)
I think I am going to change the thread title to Theming for Dummies (Like Me) (anybody know how to change a thread title?). so step one will be in the next post.....
OVERVIEW
(Ok - so here is a quick overview of the theming process as I do it. Again, I am just a novice and I just stumble around so if I get the terms incorrect forgive me.
1) The first step in theming an apk is to decompile the apk. Unzipping the apk is not going to work. This is because there are special files like styles.xml and colors.xml that are hidden in a 'values' folder in the res directory. As far as I know, you cannot access these special files by simply unzipping the apk.
2) To decompile you need an apk tool - I use 'Tickle My Android' (I'm going to call it TMA going forward) - it has a great developer with excellent instructions. The way decompiling works is you first have to create a mini-work area on your computer. You do this by decompiling and installing the framework-res and lge-res apks from your phone to your computer. TMA needs these files to decompile other apps because most apps reference a bunch of things in the framework-res and lge-res files Installing TMA is pretty easy and the instructions on the thread are excellent. The only issue I had was finding a good version of apktool.jar to use in conjunction with TMA - one that worked well with marshmallow apks. The apktool is the actual tool that does all the work - TMA (in my understanding) is simply a very well designed user interface to use the apktool. So you need an apktool that will recognize marshmallow files and be able to decompile them. I use "apktool_2.1.0-a64a03-SNAPSHOT"" as my apktool.jar file.
3) Once an apk is decompiled, all the apk components will be saved in a 'working' folder. You can then go in and edit colors and and styles using an xml editor.
4) Once you have made your edits you use TMA to recompile and sign the apk. Then you move the file back to your phone, place it in the proper device directory, fix permissions, reboot and cross your fingers.
Ok - that is the overview - go off and start trying it. One suggestion - dont try to push files from the phone to the pc with TMA - just use your usb cable.
more to come...
skyman88882002 said:
I think I am going to change the thread title to Theming for Dummies (Like Me) (anybody know how to change a thread title?). so step one will be in the next post.....
Click to expand...
Click to collapse
Edit your first post in a web browser. Choose Advanced mode and there'll be a field to edit the title.
Below are links to download the themed lge-res.apk and lgsettings.apk. MAKE A BACKUP FIRST (I'm not responsible for anything that goes wrong if you try these files). Once downloaded you will need to use a root browser to copy the files to the appropriate system directory and to change the permissions. Keep in mind, this is a work in process, if you enter settings and click on the bluetooth or wifi sections you will notice that the background is not themed yet. I'll repost when these are fixed.
lge-res.apk download link
LGSettings.apk download link
Keep in mind that you have to install both files if you want the full black background.
Ok. I think I worked out most of the bugs. The files are now set up in a flashable zip. Test it out and let me know if you see any issues. If it is working well I will start a new thread in the Themes section and work on the systemui as well. Thanks. Download link below:
download

Categories

Resources