Android OS Forum banner
1 - 16 of 16 Posts

·
Developer Knight
Joined
·
542 Posts
I got an issue.

I'm trying to theme JUST the dividers used in the action list for notifications. If your ROM has quick reply for the MMS app, I'm talking about the lines that split up the options.

I found the resource that calls the dividers. Its in frameworks. Called "notification_action_list.XML". I tried making an image for it to call, but it makes the expanded notification actions disappear. Its a layout XML. I know the redirections and drawables are already correct. I know I can change the dividers normally, bit that themes ALL dividers. It makes the theme look odd. I only want notification actions dividers themed.

Help? I appreciate it!

Autocorrected from my GNexus
 

·
Developer Knight
Joined
·
542 Posts
I just took a quick look to see if I could understand what your trying to do, and it seems to me the only way your could change just the quick message divider, and none of the other, is to edit that xml, and make it into a flash able zip containing your modified framework through recovery. I can't think of a way that you could accomplish it with theme chooser.

I have successfully added layout redirections for a few apk's, but anytime I've tried if for the framework, it causes all kinds of issues.
Just so we're making sure we're on the same page:



I don't necessarily need the quick message one themed. I would prefer all notification dividers become blue.

This image was taken while I was using the blue dividers for the whole system.
 

·
Developer Knight
Joined
·
542 Posts
Is it possible to remove the notification alpha layer through themechooser?

The line in SystemUI.apk, value, dimens.
Code:
<br />
<item type="dimen" name="status_bar_icon_drawing_alpha">100%</item><br />
I know this will remove the notification alpha, but how can I do it in themechooser? Is it possible? Couldn't find anything anywhere relating to the issue.
 

·
Developer Knight
Joined
·
542 Posts
YES, Like this:

com_android_systemui.xml add
Code:
<br />
<item name="dimen/status_bar_icon_drawing_alpha">@dimen/status_bar_icon_drawing_alpha</item><br />
and make a dimens.xml in values folder of your theme and add this:

Code:
<br />
	<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item><br />
Works great on ICS and Jellybean ;-)
YOU ARE AWESOME. Thank you thank you thank you. I had my brother test this (I can't cause Vanir already fixed this), and he said the way I did it fixed it. He's a dummy though, 'cause it obviously didn't. Seriously, thanks a ton.
 

·
Developer Knight
Joined
·
542 Posts
So... How would I theme something like Gtalk? What do I name the xml for the drawables? How do I theme third party apps in general?
 

·
Developer Knight
Joined
·
542 Posts
These are general questions you might wanna hit this thread:

http://forum.xda-dev...ad.php?t=964391
[GUIDE] T-mobile theme engine for the faint at heart (non-linux users)

Everything your asking is on there already.

Edit: fixed..I confuse myself sometimes. :p
Sent from my Galaxy Nexus using Tapatalk 2
I had seen this. I grabbed Gtalk off my phone, and decompiled it. :) Grabbed the Templatebread.apk and found the xml names, which is useful. Thanks man!
 

·
Developer Knight
Joined
·
542 Posts
I got another one for you:

When I sign and zipalign my apk, for whatever reason, my Preview disappears. You know, the Preview for the theme chooser selection. I use Vanir's compiler, compile the apk, extract the contents of the apk, delete the META-INF folder, compress the contents, sign it using my keys, then zipalign. If I just install the apk straight out of the compiler, it works fine.
 

·
Developer Knight
Joined
·
542 Posts
Well, its complicated, and doesn't alway work.

Theres a few step that need to be taken.

First, you need to make the changes in the layout xml in the apk itself, and then recompile the apk as normal.

Next you need to make a layout folder in your theme and put a file in it with the same name as the layout your theming, but just the layout header in it, and no code.

Add a redirect in the gtalk xml for the layout just as you would for images or colors.

Compile the apk.

Then use 7zip to move your layout.xml from the real apk into your theme.apk.

This may or may not work. It all depends on the app.
Lololol. I will give this a try. It's better than nothing. Thanks mate. :)
 

·
Developer Knight
Joined
·
542 Posts
That didn't work. App won't install now.

How does Dark Jelly do it? That theme is essentially a theme AND inverted apps.
 

·
Developer Knight
Joined
·
542 Posts
I've got another issue! (So many, I know, I know.)

I've got a guy running Paranoid Android. With my theme applied, it looks like this:



Notice the notification bar overlapping the battery, signal, and part of the navigation bar.

On Blue Infintium, it looks like this:



Perfectly fine. Same with another them "BetterBean".

I've compared my theme vs those two and tried to spot the difference. I've changed several things, but still can't figure out why mine is the odd ball out. Any ideas?
 
1 - 16 of 16 Posts
Top