Need a little help with framework - Droid X Themes and Apps

Ive been trying to look around for a while and i cant this. In the thunderbolt theme i created, the background blends in with font seen on second post here. I cant seem to find out which file controls that background. Before i port my version for liberty, i really want this fixed. can anyone tell me that.

This is from one of the Bowers awesome guides on themeing here
http://www.droidforums.net/forum/te...ming-guide-changing-system-text-settings.html
After decompiling the framework-res.apk look for the styles.xml in /res/values
Next is the menu text (when you hit he soft key for menu)
Do ctrl + f and put in TextAppearance.Widget.IconMenu.Item and click find next.
You should now be at this area
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
</style>
Change textColorPrimaryInverse (black) to textColorPrimary (white and then black when pressed)
Also you could delete the whole ?textColorPrimary and just put #ffff00ae as an example for the color code you desire.
If that is all you need save and look down for the completing instructions.

Related

removing icons from the notification bar?

i've looked over the guide for creating themes, and searched the forums, and i can't figure this out. i tried using ninjamorph to remove the battery icon (by replacing all the icons with a blank transparent 1x1 png), but on reboot it still left the gap where the icon was supposed to be...
i'd like to just get rid of the battery icon and have it shift everything else to the right, so that there's room for more stuff (rather than having the gap stay there like i encountered)...
can anyone help me with this? i'm also thinking about removing the signal meter and using real signal instead...
Its in services.jar in your system/framework dir.
Sent from my ADR6300 using Tapatalk
ok, but how do i actually remove them? the only tutorials i've found on editing services.jar deal with just changing the notification bar colors...i haven't found anything that tells me how to remove icons.
Get the name of the icon you want to remove. Then look it up in public.xml to get its reference address. Then search the status bar classes for where it is referenced. That should get you started.
i must be losing my mind...where do i find public.xml? i am really struggling with this...i've read anything and googled anything and everything i can think of without any luck figuring this out. i've extracted framework-res.apk and can't find public.xml anywhere in there...
i'm sure this is something very simple that will click in my head as soon as someone says something to make it click, but right now i feel very stupid and frustrated...
You're not losing your mind. You have to decompile framework-res in order to read that file.
ok, i've gotten it decompiled thru apktool. we'll see how far i get this time...thanks for your help!
ok, i found this in public.xml...
<public type="drawable" name="stat_sys_battery_0" id="0x01080292" />
<public type="drawable" name="stat_sys_battery_10" id="0x01080293" />
<public type="drawable" name="stat_sys_battery_100" id="0x01080294" />
<public type="drawable" name="stat_sys_battery_20" id="0x01080295" />
<public type="drawable" name="stat_sys_battery_40" id="0x01080296" />
<public type="drawable" name="stat_sys_battery_60" id="0x01080297" />
<public type="drawable" name="stat_sys_battery_80" id="0x01080298" />
but i'm having a hard time finding it in the classes...i don't know if i'm looking in the right place. i ran this:
java -jar baksmali-1.2.4.jar -x services.jar
which gave me a bunch of output .smali files. i've been looking through these to try to find 0x01080292 (for example), but i haven't found anything even remotely close to that in any file i've looked in so far. am i even on the right track here? what should i be doing next?
Look in StatusBarPolicy.smali for references to the battery. I have not done this yet, but if I was to guess, that is where I would start. Forget about the public.xml file. Just look for code that has to do with the battery icons.
unfortunately, i guess this is way over my head...i can't make anything out of these smali files. i have no idea where to even start...
i found what i think is the battery code (there are a ton of references to the battery icon in StatusBarPolicy.smali), but i don't even know where to start to get it to remove the icon...
http://forum.xda-developers.com/showthread.php?t=740502
Would looking at these help you at all?
they do help a bit, in that i can see the differences...but i don't know what changes are for the battery and which are for the location (i'm running skyraider). there's no file that just does location so i can strip that out, at least not for 8/1 based roms...

[Q] Title Bar removal

How do I remove the gray title bar for my app in the xml file for layout?
I cannot find anything I understand, doesn't error, or at least does not require a re-write of too much code.
thanks to anyone with this answer.
LuvinAndroid said:
How do I remove the gray title bar for my app in the xml file for layout?
I cannot find anything I understand, doesn't error, or at least does not require a re-write of too much code.
thanks to anyone with this answer.
Click to expand...
Click to collapse
The title bat background is determined by what is in the ROM's framework-res.apk, not the individual app.
Go to framework-res.apk/drawable-hdpi and replace the activity_title_bar.9 and bottom_bar.9 with the one's you like. Remember, these are .9 files, broken files may give you FCs.
In your AndroidManifest.xml add:
Code:
android:theme="@android:style/Theme.NoTitleBar"
To the <activty ...> tag
Example:
Code:
<activity android:name=".Foo"
android:theme="@android:style/Theme.NoTitleBar" />
ah, thanks guys, the xml file edit was the one that woked for me.
On another note, I am playing around with the SkellyAPP to learn the pricnipals behind Java/Android structures.
How would I load in an image NOT loaded by the xml but one loaded in that I can re-assign placement based on random numbers so I can wrap my head around a "main loop" with action going on.
Sorry for my noobishness, but I learn by taking baby steps and I promise not to spam the forum with too much trivial stuff

how to change this "orange" hightlight color ???

i did a search for it
i also a post that says change
framework-res.apk\res\drawable\progress_horizontal.xml
, but after reboot , still shows orange...
that color shows when you slide to the top or bottom
and other one when push it
like attached pictures
thanks in advance
Try this:
http://rootzwiki.com/showthread.php?894-MOD-Overscroll-Glow-Colors-(2.3.3-2.3.4)
Basically you need 2 .png files with the color you want, and a custom XML to get them working. That topic features some pre-built colors for you, but you could easily make your own if you want. But that's a good base to start
Greetz
................................
.................................
how to use ? replace what?
i download file and read that post , didn't find any instructions....
Obviously you need to put this in the framework-res.apk, found in /system/framework/.
I suggest you copy the framework-res.apk to you computer, open it with an Archive Manager and then copy the content of one of the colours.zip files into it. Then, copy the modified framework-res.apk back to /system/framework/.
Reboot and see if that worked.
Greetz
frutelaken said:
Obviously you need to put this in the framework-res.apk, found in /system/framework/.
I suggest you copy the framework-res.apk to you computer, open it with an Archive Manager and then copy the content of one of the colours.zip files into it. Then, copy the modified framework-res.apk back to /system/framework/.
Reboot and see if that worked.
Greetz
Click to expand...
Click to collapse
...
okay , one more stupid question , files in .apk are .png, and these 2 files are ".psd" , so , how am i supposed to make them png?
Not a stupid question at all.
You have probably download the source files from that topic. These are 2 .psd files which are Photoshop format, making them highly customizable. In Photoshop (or GIMP) you can edit the .psd files and save them as .png files.
HOWEVER,
That topic has a small box that says "Click to expand choices of colors. (click to expand)".
If you expand it, you'll see many available colors right there (all packed in .zip files), with the .png files already made for you. These are the files that you have to put in in the framework-res.apk.
Let me know if you have any more questions,
Greetz
yes , thanks , i think i got idea how to do this althought i have not tried it yet because i´m outside of home right now
but , still , these files are for my first and second attached picture , how am i supposed to do to change the third picture´s orange color ?
That's actually a lot more difficult, it involves changing the attributes of the listView element. Read up on some theming articles and try to do it yourself. It will take some time but you'll be happy once you figure it out.
A tutorial on the listView selector for theming:
http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/
Greetz
frutelaken said:
That's actually a lot more difficult, it involves changing the attributes of the listView element. Read up on some theming articles and try to do it yourself. It will take some time but you'll be happy once you figure it out.
A tutorial on the listView selector for theming:
http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/
Greetz
Click to expand...
Click to collapse
Gosh... it does need some time , lots time , all in english , kinda make me nuts
it's gonna take me double even triple times to read a non mother-language article
-_____________- !!!
anyway
thank you very much for help ^^
Hahaha you're welcome.
You know you can also just apply themes and enjoy the merits of other people's theming work ?
Greetz
yeah ... well
but it would make me feel less feeling of fulfillment XD
i had flashed MIUI dozens times , it looks great but still , let's just call it battery killer ... as matter of fack , just yesterday and today , i have flashed MIUI and stock at least 10 times ... it's kinda like i have "Rom-Flash obsession" or what ...XD
at the end , i decided to flash stock and wait for ICS ...
i've replaced the icons of status bar , such as WIFI, Signal , 3G icon , power level ...etc
this **** orange is last thing i have to do
by the way , every you post , types "greetz" in last line ... what's that?
Greetz is short for 'greetings'. It's become a reflex after years of forums usage and is my way to salute you and end my post
Good luck getting rid of the orange, let us know if you succeeded!
Greetz
hehe , i have done first problem , now that's harder part
this part is much harder ... i decided leave it with that ...
cause i don't understand , it shows
<item name="colorForeground">@color/bright_foreground_dark</item>
<item name="colorBackground">@color/background_dark</item>
<item name="backgroundDimAmount">0.6</item>
<item name="disabledAlpha">0.5</item>
<item name="textAppearance">@style/TextAppearance</item>
<item name="textAppearanceInverse">@style/TextAppearance.Inverse</item>
Click to expand...
Click to collapse
@something , i think it's variable , i can not locate where/which file indicate them ...

System UI mod for Official Lollipop

I have managed to mod the SystemUI of my note 3 to my liking but one thing is not possible for me to do.
I have hidden the sfinder menu. Increased transparency of recent apps background.
And changed status bar icons to stock lollipop.
But i have just noticed that the clear button in notification panel takes so much space.
Is there a way to hide it? Or make it as an overlay instead of wasting space.
Plssssssss tell me if anyone knows a way.
See the screenshot for explanation
I'm not on LP, so just guessing, because I can't try it.
TWRP or ADB is recommended to fix the SystemUI if it crashes after that, or make an zip with the original SystemUI.
SystemUI.apk\res\layout\clear_all.xml
hide possibility:
change this:
android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size"
to
android:textSize="0.0dip"
change this:
android:layout_width="wrap_content"
to
android:layout_width="0.0dip"
change this
android:layout_height="@dimen/carrier_label_height"
to
android:layout_height="0.0dip"
If the "Clear" text is gone after that, than it's the right xml.
or just test it first make the "Clear" text black: android:textColor="@drawable/clear_all_button_state" change to android:textColor="#FF000000"
If there is no change try to make changes here: SystemUI.apk\res\layout\status_bar_notification_dismiss_all.xml
android:layout_width & height to 0.0dip
If one of them is working, than add your modified xml to layout-land folder, so the Clear button should be gone only in landscape mode.
(let the original xml in the layout folder)
tkari4 said:
I'm not on LP, so just guessing, because I can't try it.
TWRP or ADB is recommended to fix the SystemUI if it crashes after that, or make an zip with the original SystemUI.
SystemUI.apk\res\layout\clear_all.xml
hide possibility:
change this:
android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size"
to
android:textSize="0.0dip"
change this:
android:layout_width="wrap_content"
to
android:layout_width="0.0dip"
change this
android:layout_height="@dimen/carrier_label_height"
to
android:layout_height="0.0dip"
If the "Clear" text is gone after that, than it's the right xml.
or just test it first make the "Clear" text black: android:textColor="@drawable/clear_all_button_state" change to android:textColor="#FF000000"
If there is no change try to make changes here: SystemUI.apk\res\layout\status_bar_notification_dismiss_all.xml
android:layout_width & height to 0.0dip
If one of them is working, than add your modified xml to layout-land folder, so the Clear button should be gone only in landscape mode.
(let the original xml in the layout folder)
Click to expand...
Click to collapse
I already tried that. The file is right and the clear button goes away. But still the notification panel does not take all the available space. It still stays the same way with the clear button gone.
royawais said:
I already tried that. The file is right and the clear button goes away. But still the notification panel does not take all the available space. It still stays the same way with the clear button gone.
Click to expand...
Click to collapse
SystemUI.apk\res\values\dimens.xml
Try to set this two to 0.0dip
<dimen name="close_handle_height">34.0dip</dimen>
<dimen name="close_handle_underlap">34.0dip</dimen>
You have now about 60.0dip empty space at the bottom, so 2x34 maybe...
if no change, than find each line which one contents clear in it:
for example:
<dimen name="clear_all_padding_top">12.0dip</dimen>
Thanks Thanks Thanks
Thanks Sooooooooooooo Much
The closing handle was occupying that space
Now it is perfect.
Thanks sooo much.
I might be asking for more help in future.
I hope U dont mind.
Thanks again.
Sooo happy to get my first fix from xda.
royawais said:
Thanks Thanks Thanks
Thanks Sooooooooooooo Much
The closing handle was occupying that space
Now it is perfect.
Thanks sooo much.
I might be asking for more help in future.
I hope U dont mind.
Thanks again.
Sooo happy to get my first fix from xda.
Click to expand...
Click to collapse
Could you please mod my SystemUI apk to not show S-Finder/Quick Connect? :fingers-crossed:
I have the recent apps screen background set to transparent.. I don't mind the Clear button too..
I have created a new thread consisting of all the mods I am using.
http://forum.xda-developers.com/galaxy-note-3/themes-apps/mods-collection-note-3-lollipop-t3148518
It also has how to hide the buttons in recents apps as well

Framework-res

I'm trying to change notification title color to white by modifing framework-res.apk using apktool but I guess I'm doin it wrong because when I push I get bootlooped.
So I was hoping if someone can edit the file for me (file added) and upload it here
What I want:
-whie color notification title
+ Go to /res/values/colors.xml > notification title color (at the end of the file) > change to #ffffffff
Save and upload here (or drive or whatever).
Tnx !!!
The file: https://drive.google.com/file/d/0B-9HgN61XNOSUzJqbDZiOEdmUUk/view?usp=drivesdk
I am really not into frameworks, but your hexadecimal color number has a typo in it. Should be #ffffff.
aleksander002 said:
I am really not into frameworks, but your hexadecimal color number has a typo in it. Should be #ffffff.
Click to expand...
Click to collapse
I thought too but when I opened the app with apktool there was 8 f not 6...
But I really don't care , as long as it works lol
Well, it might be alpha values or something like that.
UP.

Categories

Resources