yashsingh1/xdaforums huggingface dataset:
[EVO 4G Themes and Apps] aamikam:
u need to change the location of it on the screen... its kinda weird though if u r using the actual files given here without any modifications.

anyways... look into that same xml... (stat_exp...)

this is what i have at row #9:

<TextView android:textSize="22.0px" android:textColor="#ff000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default" android:paddingLeft="15.0px" android:paddingRight="15.0px" android:paddingBottom="4.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0px" android:layout_marginBottom="1.0px" android:text="@string/status_bar_clear_all_button" style="@style/Widget.Button" />

notice that my text color for the text on that button is black... but yours should be white.

now... look at the "layout_gravity..." values and see if they are the same as mine... but that would basically indicate whats up in it.... if u have any value different than mine in that line... try to change it to what mine looks like (besides the text color of course) and tell me what happens.

the background image in the code is simply the button... and the padding is where the button is with relation to its background which is stated a few line before.

im really bad with explaining thing... but basically if that line looks the same as yours... u might wanna change the layout_gravity form "center_vertical" to "center".

that might just do it.... if u not sure which is which just google it and you will find all the references on the android dev website.

here is a link for u to look at real quick that will help u understand a little more of whats going on.

http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_gravity
[EVO 4G Themes and Apps] JsChiSurf:
Thanks for the kind words guys. I can't tell you how nice it is to see both of you in this forum. It's great "seeing" familiar faces from the Hero section. It's the primary reason I chose the EVO.
[EVO 4G Themes and Apps] JsChiSurf:
This is through no fault of your own, and it not related to your smali edit in any way. There is a bug in apktool that sometimes misnames various attribute values causing, in this instance, the issue you see with the clear button.

If you look at your decompiled status_bar_expanded.xml file, you will see in the line where the clear button is defined the style attribute that is being assigned:

style="\@style/Widget.Button"

Apktool inserts an erroneous backslash to the front of the style name, causing android, after recompiling, to become unable to find/reference, and therefore apply the correct style to the button, resulting in the incorrect display you see.

Simply remove the backslash before '@style', and you will be good to go.

The files given here are essentially stock with the exception if injecting the power control widgets linear layout section.
[EVO 4G Themes and Apps] aamikam:
the error u mentioned is only on apktool ver 1.3.2... i use 1.3.1 just cuz of that reason.

and im not sure u r 100% right about the text color thing... i had to change it from ffffffff to ff000000 to get it to be black on mine... cuz my button has a white background on my rom.

btw, i know u r probably the best person out there for messing with this things... and u r probably right about the way the color thing... but i did have to change it and its does in fact effect the color of the text.

edit:

just for the recored... im not using the original files u posted here... i ported the changes into my jar files and framework... maybe thats why mine actually changes color while it might not really need to behave like that.
[EVO 4G Themes and Apps] JsChiSurf:
Hmm, perhaps different strokes for different folks. I don't know. What I do know is that if you pull open a stock status_bar_expanded.xml file, you will see the textcolor defined as black, but displayed as white, and no changes you apply will make a difference via the XML, as it's hard coded in the java code to be white. At least that's they way it is for me and all the ROMs I've ever worked on Fresh base Hero/EVO. YMMV.
[EVO 4G Themes and Apps] aamikam:
r u sure u not looking inside layout instead of layout-hdpi ?

or maybe i am looking it the other way...

edit:

i usually make sure to change both of them even though i kinda know that most files get read from the layout-hdpi and not the layout foler cuz we got a hdpi resolution device.
[EVO 4G Themes and Apps] JsChiSurf:
Lol, it's early and I haven't had my coffee yet!

I got myself confused between the text color versus the button color. It's the button color that requires a java edit, NOT the text color. Sorry for confusing anyone reading this!

I was referring to this:

http://xdaforums.com/showpost.php?p=6277583&postcount=12

Which is a similar (though handled slightly different) issue with the EVO.

Sorry about that :o.
[EVO 4G Themes and Apps] beatblaster:
Thank you both for your help aamikam and John. I'll heed your advice later tonight when I get back on the job. Man, I should follow you both around lol. Could learn a ton from you guys :)

Thanks again!!
[EVO 4G Themes and Apps] beatblaster:
YES!

JS and aamikam,

Thanks again :) It was the \ as JS stated although I did check gravity as aamikam suggested and that was OK too. Woo! Happy Saturday!
[EVO 4G Themes and Apps] mjhuffer:
Anybody made a green version that they may want to share?
[EVO 4G Themes and Apps] makskylan:
What are the file names so that we can change the colors?? I have been trying to find them..
[EVO 4G Themes and Apps] beatblaster:
If you're talking about the indicator colors, the instructions to change them are in this post. It requires a smali edit in classes.dex via services.jar. You have to read this thread. There is a TON of information regarding all sorts of customization. Use the search button, grab some hot cocoa and prepare for some quality time with this thread.
[EVO 4G Themes and Apps] makskylan:
Yeah that is what I was looking for and thank you. I will search it out....
[EVO 4G Themes and Apps] emd2009:
It is really easy if you follow these posts!

Download:

AvaboxV2. Dev toolbox for Windows

Decompile Services.jar file:

how do you open and edit classes.dex?

Change Color:

[PORT][MOD][OFFICIAL] Notification Menu Power Control Widgets for Sense based ROMs
[EVO 4G Themes and Apps] myn:
Nice man!

You take modding to a new level. You dig in so deep :)

Take your time buddy. We do this stuff for fun after all :)
[EVO 4G Themes and Apps] mjhuffer:
I really don't have the time to tackle the walk through so I will donate $5 to anybody that can whip this up in HTC Green. Thank you.
[EVO 4G Themes and Apps] bmtdan:
does anyone know if this can be flashed onto echohds rom?
[EVO 4G Themes and Apps] Estimated Prophet:
I was going to take a crack at making it green when I got home this evening. Got a hex color code for "HTC Green"?
[EVO 4G Themes and Apps] mjhuffer:
That would be awesome...Ya here you go you have two greens to choose from. The light or the dark from the dialer are technically the htc green colors. Hex for them is....

Top light green:88c038

Bottom Dark green: 409400

I would say go with the bottom dark green color but hey do what you would like. I just have no idea how to tackle this but i need it themed. Thank you.
[EVO 4G Themes and Apps] Estimated Prophet:
Thanks. I just got home and I'll give this a try after a little time with my favorite hoppy beverage :P
[EVO 4G Themes and Apps] mjhuffer:
Ya let me know how it turns out. i will definitely send you some more IPA money if you can get a green notification rockin. If you get it working, go ahead and ask if you can throw it on the first two posts cause i've seen some people looking for it.
[EVO 4G Themes and Apps] Estimated Prophet:
I've successfully edited the services.jar, but I also had to edit a couple PNG files in framework-res.apk and I'm having some trouble with those. All I did was change the color and it somehow totally screwed them up. I'm sure I'll get it figured out soon.
[EVO 4G Themes and Apps] jxr94:
Could we ever get a 4g toggle widget?

Nevermind, search was down so i didn't see that it might not get done please ignore lol
[EVO 4G Themes and Apps] Max_Pain:
4g toggle is done and should be released shortly afaik :-)

Swyped from my HTC Evo 4G on the MetroPCS 1X network!
[EVO 4G Themes and Apps] jxr94:
Well i must say, this mod is fantastic and editing is super easy. A+ work
[EVO 4G Themes and Apps] Estimated Prophet:
I got it working. Here's the services.jar and the two PNGs you'll need to replace in your framework-res.apk: http://rapidshare.com/files/435400252/GreenPowerControl.rar

Edit: Also, I'll just say I'm not totally satisfied with the color, so I will be changing it. If you feel the same way let me know and I'll repost it once I'm happy with it.
[EVO 4G Themes and Apps] mjhuffer:
Great Work....Progress on Green

Great work. Ya i like it it just may not be green enough but you may not be able to get the Hue better because of the transparency effect. Is there any way you can post you whole framework-res.apk so i can just push it to my phone. I'm not very good about decompiling and compiling .apk's. You may have to do some trial and error to get the right green. I simply used GIMP to find the hex values based on the .png but i think the transparency effect will always mess the color so it may take some trial and error
[EVO 4G Themes and Apps] Estimated Prophet:
Yeah, it's because of the transparency. I just need to play with some other greens to try and brighten it up. I can post my framework-res.apk, but you'll get the other mods too (like the transparent ASCII android notification tray background). It's really easy to edit your framework-res though. Just open the apk in 7zip or winrar and then drop the two PNG files I provided into /res/drawable-hdpi and you're done.
[EVO 4G Themes and Apps] Ph33zy:
Do you think you can edit the services.jar with no battery icon located here to have the HTC green highlights:

http://logika.net/downloads/evo/pc/pc_widget_no_batt.zip
[EVO 4G Themes and Apps] mjhuffer:
Alright good deal i will try later when i have some time and i can do a full nandroid.
[EVO 4G Themes and Apps] Estimated Prophet:
Sure. I might have time to get it done right after work, but I've got plans so it just depends when I get home. If I don't have it posted in 2 hours then it probably won't be up until after midnight EST.
[EVO 4G Themes and Apps] mjhuffer:
Could somebody put together a black and gray buttonized version without the super circle battery tweak in a flashable .zip. I tried to do so and i kept getting a bootloop. Somebody please help...

http://xdaforums.com/showpost.php?p=9209472&postcount=296
[EVO 4G Themes and Apps] DrRyder:
Hey. I have a question. I want to cook in the original CM version of this mod along with the Super Rectangle battery mod into my rom. Is that possible or do I have to cook in the Power Controls and then flash in the super rectangle? I'd really like to cook this all in at once instead of flashing stuff on to an already complete rom. I hate doing that. I'd like to just cook it in and be ready to go without additional flashes. Is this possible?

This is the one I'm talking about: http://xdaforums.com/showpost.php?p=9178453&postcount=151

Edit: I answered my own question. I did a nandroid and then cooked in the Power Controls with the Super Circle Battery mod and everything booted up and works perfect. Feel free to add this to the OP in case someone else asks.
[EVO 4G Themes and Apps] Estimated Prophet:
Here you go Ph33zy: http://rapidshare.com/files/435594606/services.jar
[EVO 4G Themes and Apps] Ph33zy:
sweet man! working great for me!
[EVO 4G Themes and Apps] jomatine:
Hey buddy u have to send me that font u are useing. please post it. looks sweet
[EVO 4G Themes and Apps] CCallahan:
Is there a way to get more than 6 widgets with this? Maybe adding another row right under the first? I tried putting 8 in one line and ended up with bootloop.
[EVO 4G Themes and Apps] CCallahan:
Anyone know how to get rid of this on Myn's RLS4?

The feature set is just not rich enough at this time for me. No 4G toggle yet & can not put enough widgets on there like other apps. This just has too many limitations. Plus, I have no other switcher on my phone and the WiFi button still shows it as being off. Can get it to correct but always goes back after reboot. Good effort by the developer. Maybe with time it will be a "got to have" feature.
[EVO 4G Themes and Apps] JsChiSurf:
6 toggles is the max built into the original and thus in the port. 4G is coming soon, just haven't had the time to package it up. As you know and has been mentioned, CM doesn't have 4G, and since this is a port, originally, obviously 4G isn't an option to start. Remember, it is a port, this wasn't coded from scratch.

I'm sure you can just grab services.jar, framework-res.apk, and framework.jar from a stock ROM and replace in your if you find it that troublesome, lol. That should be obvious to you just by looking at the provided zip.
[EVO 4G Themes and Apps] RavenII:
Hurry up man, I want my 4G button...you promised, I don't care if you're doing this on your own time! I want everything for nothing!...and NAO!...

Just kidding of course...thaks for the hard work man. What part of Chi btw?
[EVO 4G Themes and Apps] JsChiSurf:
Lol, man, talk about a backhanded slap in the face. Makes you want to quit doing this stuff and keep your work to yourself...

North side of Chitown, near Wrigley.
[EVO 4G Themes and Apps] xlGmanlx:
no offense man, but that is BS. it works fine for me and i don't use any other toggles. OP has pretty much wrapped up 4G and based on your sig, you don't even have 4G. OP also stated that he is working on a UI to configure the toggles as well. Your experience seems more restricted to your experience the general populations. to me this is already a "MUST Have" for any sense ROM and you pretty much see all ROM's including this now. I couldn't imagine having to take up screen space to place toggles anymore
[EVO 4G Themes and Apps] Max_Pain:
I agree...i use this mod more than probably anything else. I exclusively use this to toggle wifi and the flashlight. Now in finals the airplane mode has been awesome!

I dont think I could function without this mod...

likewise with other of john's mods!

Keep doing what you're doing john...i need more uber cool mods!

Swyped from my HTC Evo 4G on the MetroPCS 1X network!
[EVO 4G Themes and Apps] Chris95GT:
Don't know if it's been posted in the other 60+ pages or not, but since myn added this hack to his roms, adding widget.txt in /system/customize lets you alter the widgets displayed in Warm 2.2 RLS4, which is awesome!

Very nice job! Much thanks to you!
[EVO 4G Themes and Apps] Max_Pain:
yes it's been posted (in the original post!) as this is a feature that js put in the mod...not something that myn added.

Swyped from my HTC Evo 4G on the MetroPCS 1X network!
[EVO 4G Themes and Apps] CCallahan:
No offense taken....opinions will vary.

I am not trying to slam on anything here...this is great work being done by Js. Just feel it is not yet as functional as apps like System Info Widget which allow for multiple lines and additional things like reload sd card, quick reboot, 4G, sd card space, etc. Having only 6 limits me and I have plenty of screen space available. Whether you believe it or not my Wifi button does not show properly most times but does on other apps I have used.

Also, there is 4G in most of Kansas City area in KS and MO (Sprint HQ). My company operates up there as well as other parts of the state. My sig is referring to the Wichita area which I spend more time.

Again, this is just my personal preference. Not taking anything away from it just think it needs more time to develop further to be the "champ".
[EVO 4G Themes and Apps] xlGmanlx:
Dang!! i didn't know it was news to me, and i just changed it via the directions in the OP and all set
[EVO 4G Themes and Apps] dan.kels.r:
need someone to hook it up

Im on deployment with the marine corps and i need some help. I still use my phone for stuff like movies and play with it alot cuz i love my evo! I have azriel x 2.1 with his theme. im not sure if the theme gave me custom transition animation or the rom but here is my request. I need azriel transition animations, smooth circle battery, and colored notification menu power control. THnaks for your help.

I guess what Im asking is if someone can modify my framework to do all this stuff or tell me how
[EVO 4G Themes and Apps] DaGunn:
Suggestion

I love this mod and use it daily. Could you modify the code such that when the notification bar is dragged down, that event triggers an update to all of the displayed icons. Thank you in advance for your consideration of this suggestion.
[EVO 4G Themes and Apps] jxr94:
Is there anyway you think this could work with smooth mods since flashing this over writes smooth mods icons and such?

http://xdaforums.com/showthread.php?t=752658&highlight=smooth+sense
[EVO 4G Themes and Apps] Chris95GT:
I didn't quite word that the way I intended. I was just trying to let the Warm 2point2 users know, that since myn put this in his roms, you can edit the toggles using widget.txt the same way as described in this thread (since it's JsChiSurfs mod, ported into Warm) :)
[EVO 4G Themes and Apps] Estimated Prophet:
Check through this whole thread and the smooth mods thread. I know I posted a framework-res somewhere that has smooth mods incorporated.
[EVO 4G Themes and Apps] jten9:
I'm far from a developer, so I'm not sure how feasible this suggestion is, but it sounds like a great idea to me!

In any case, thanks JsChiSurf for all your hard work!
[EVO 4G Themes and Apps] PrFectOne:
This is a great idea but I've been trying this on VaelPak 2.3a and find that this only works at a screen density / resolution of 200 or 240. If you set the screen to 160 or so, then it just hangs during boot.

Is there some way this can be fixed? My two favorite features are this and a 160 screen density and wish they could exist together.... you know like Paul McCartney and Stevie Wonder.
[EVO 4G Themes and Apps] Vancer:
Hey JsChiSurf,

How would I go about changing the brightness toggle setting? I would like to change the mid setting to 50% rather than what it is currently set at because it just isn't quite bright enough in the daylight.

Thanks! ... and thanks for all your free work on this awesome port for our phones!
[EVO 4G Themes and Apps] JsChiSurf:
When I build the CM settings options into a coming release, you'll be able to select from a handful of predefined brightness settings.
[EVO 4G Themes and Apps] JsChiSurf:
I've thought about this and think it is a good idea in concept. If I can find the trigger / gesture that this could be tied do, it's something I'll look at more. I haven't found it yet, but also haven't really spent much time looking.
[EVO 4G Themes and Apps] Vancer:
Cool thanks!
[EVO 4G Themes and Apps] jxr94:
Anyone tried this with the Desire HD roms?
[EVO 4G Themes and Apps] TMartin:
You would need to port it to your framework since this is built on an Evo framework.
[EVO 4G Themes and Apps] freeza:
My icon status doesn't report properly either. Toggling it fixes it, but it does it on every reboot.
[EVO 4G Themes and Apps] JsChiSurf:
When you reboot, you're starting from scratch, so this would seem obvious to me. This is mentioned as a quirk in the OP, and something I continue to look at.

If you have some insight for a fix, please feel free to share.
[EVO 4G Themes and Apps] xlGmanlx:
Yeah, if it's possible its a great idea since they do happen to fall out of sync randomly but a quick toggle brings them back
[EVO 4G Themes and Apps] Max_Pain:
i finally added the menu to hot restart my phone and i noticed when i do a hot restart the status of the icons come up right (i.e. wifi shows on). when i reboot the phone the regular way then wifi shows as off even though it's on. maybe that helps?
[EVO 4G Themes and Apps] bkrodgers:
Are you working from source code, or is it ported from something already compiled? It sounds like the notifications don't have broadcast receivers setup to receive notification when things are changed from another location. If we're working from source I might be able to help a bit, as I've played with the source from Quick Settings (I added the 4G toggle to it and contributed it to the dev). I'm not an expert yet, but may have something to offer.
[EVO 4G Themes and Apps] JsChiSurf:
Definitely not working from source. That's what makes it a bit more of a challenge.

The only issue is really with tri-state type toggles, i.e. wifi and bluetooth, all else work fine, at least for me. Wifi / bluetooth, due to their time to fire up and transition from off, connecting, on, get caught in the intermediate state, in terms of toggle status, so until another widget is toggled, and the state for wifi / bluetooth has left intermediate to fully on, the widget status indicator may be out of sync, again, until another widget is toggled, whereby all icons are updated, and since wifi/bluetooth at that point is no longer in an intermediate state, it updates correctly.

I have 4G built in now as well, and since I reversed engineered this one in 100%, despite the fact that it is also a tri-state style toggle, I have it working, in terms of state, w/o issue. I can / could / may just re-write (reverse engineer) the wifi / bluetooth to use a similar process for what I wrote 4G with, but I'm honestly running low on motivation and desire to do so...
[EVO 4G Themes and Apps] bkrodgers:
I'm not sure it's just about the tri-state stuff. For example, if I set it to vibrate via the notification menu, but then turn sound back on some other way (quick settings, volume key, etc), it doesn't update in the notification menu. It seems more like it just isn't receiving/paying attention to changes that happen outside of its own control.
[EVO 4G Themes and Apps] JsChiSurf:
Yes, we're talking about two different things / issues. I'm more focused / concerned about control / state within the power control widgets at this point.

It should be noted that if I were charged with the task of coding this from scratch, I'd have it done it a day. It's relatively easy stuff. Porting from decompiled code is where the issues arise / difficulty gets introduced, at least for me.
[EVO 4G Themes and Apps] TMartin:
Quick question...I was under the assumption this was something from CM which is open source so why wouldn't there be a source available?

Posted from my HTC Evo 4G on Tapatalk Pro!
[EVO 4G Themes and Apps] JsChiSurf:
We don't have source from HTC to integrate into.
[EVO 4G Themes and Apps] latinmaxima:
This is an awesome feature and one that I look to incorporate into the Samsung Moment. The Intercept has a similar framework to the Moment and am hoping to get some help from ours devs at SDX. I just wanted to say thank you and even if you know it now your awesome mods are inspirations to other android users!
[EVO 4G Themes and Apps] Max_Pain:
Oh no come on. Who's our favorite dev? You are! The entire evo board, and I'm going to guess the entire world, waits on your releases. Everything you give us is so ground breaking that it makes us wonder why HTC makes money off this and you only do it as a hobby. Keep doing what youre doing and make the world a better place! Go JsChiSurf!

P.S. no homo! :-)

Swyped from my HTC Evo 4G on the MetroPCS 1X network!
[EVO 4G Themes and Apps] JsChiSurf:
Thanks man. I honestly think I needed that. It gets a little old when you spend countless hours on stuff, and rather than a thank you, you get whiners and complainers instead...

Back on topic, I have huge news that I am going to incorporate into the 4G release, whenever the hell I get to this.

I have that widget bar automatically updating / refreshing each time the notification panel is opened & closed, meaning all buttons in my testing, be it a change in volume to vibrate from the widget, then silent via the rocker bar, or wifi enabled via the widget, and disabled via system settings, etc, are now reflecting their current state (update happens extremely quick, before you can usually see the widgets) accurately as a result of this change.