yashsingh1/xdaforums huggingface dataset:
[Android Themes] dali47:
yeah, that's what i thought too. i guess we need someone who speaks smali :p

thank you for help :)
[Android Themes] dns7:
thnx for the helpfull guide :)

but i got a prob

other icons are overlapping the clock
[Android Themes] TheGrammarFreak:
Yeah, not much I can do about that without some smali hacking
[Android Themes] xxxMADxxx:
Sir..i want to ask something...can i arrange icon like at ur screenshot that?? im successfull applied ur nice tutor..but my icon switch not like ur...in ur screenshot icon signal in the first and follow with a wifi icon..in mine,icon wifi first and signal..what xml can i edit to make like urs?? thx and regards..
[Android Themes] kristjanp:
You mean this?

http://xdaforums.com/showpost.php?p=19672936&postcount=3

Re-organising the status icons?
[Android Themes] xxxMADxxx:
So i just do that tutor to look a like grammarfreak screenshot?
[Android Themes] jayson94538:
I managed to fine the location and name of my power widget. It's different because the rom came with a mod that allows 14 toggles or so. Now my problem is with the toggles staying at the top while the background image is at the bottom, as someone posted before.

Sent from my SAMSUNG-SGH-I997
[Android Themes] Curiousn00b:
Can someone help me with this? I tried it and nothing change! D:

I tried to get the icons to the left, and botton power menu.....

If someone could do this, please PM. D:
[Android Themes] qazsxdcfv:
Great ...

Im a newcomer ..

Hey dns7 .. if u dont want to overlap try make the clock to left..

If you want to move it to left .. use your old clock tag before you centered and cut and move to above ...IconMerger.. tag..

CMIIW :D

Btw .. thx for the guide ...
[Android Themes] formula84:
Will this guide also work for CM9 ICS?
[Android Themes] qazsxdcfv:
yo grammar .. where you can did the notif on the right side .. i always failed and the battery on the right side .. i always failed too .. i have move move and move on the status bar xml but nothing .. is same.. are this have a "connection" with rearange the statusbar tutorial?? :D

thx,before
[Android Themes] qazsxdcfv:
Man the launcher great

... whats that??

And the battery .. i dont know .. u must know the position of the xml .. here's mine .. but the notif .. still on the left .. how did you do yo the right??
[Android Themes] KOala888:
thanks a lot ;) It is espier launcher modded by me

Could you share your xml please? And is it mdpi phone?
[Android Themes] KOala888:
Thanks, gonna study it and change mine, maybe it will work ;)

about the launcher, sorry but I do not like sharing something unfinished ;)

check my small tip:

http://xdaforums.com/showpost.php?p=22572403&postcount=106

EDIT:

another question, now everything is okay, but battery is on the left only with enabled battery percentage. Any chance to move normal battery indicator? or to edit that thin bar that is placed on the right side of percentage?
[Android Themes] qazsxdcfv:
About the launcher .. its okay .. :D..but how to remove name of that app .. because in my espier .. cannot remove app name

And the battery.. if you want the icon on the right side .. u must edit the smali ... its hard ... because, if you dont know somethings about java ... dont try it .. :D

For the indicator .. it have a connection to theme .. so use another theme ...
[Android Themes] KOala888:
It is explained in my link how to remove icon labels :)

Hmm too bad, i have just starded learning java so i can not do that.

I know, i guess it is made by some kind of scrypt from nornal battery indicator, but how, cause i would like to change that bat bar into other shape :>
[Android Themes] qazsxdcfv:
hey .. Out Of Topic little .. where you find that glassy dock?? i can't created that thing .. because im on ubuntu .. i dont really knows gimp ... please ?? :D
[Android Themes] KOala888:
gonna find it.

About smali edit, how to do that?

Is my method okay? I do it like this:

-decompile SystemUI (apktool d systemui.apk)

-edit smali files with notepad++

-recompile SystemUI (apktool C:\apktool\systemui XXX.apk

-change name, make flashable zip and apply it.

I ask because I have made some smali edit but nothing has changed ;c

I have found lines like this:

# static fields
.field static final BATTERY_MINI_ICON_MARGIN_RIGHT_DIP:I = 0x6

.field static final BATTERY_MINI_ICON_WIDTH_DIP:I = 0x4

.field private static final BATTERY_STYLE_PERCENT:I = 0x1

I guess that 0x6 is value for the spacing from the right side, and the 0x4 value is the width of that battery bar, but when I change it accually nothing happens. Any tips?

Maybe I should sign it ;o?

____

More clear explaination:

What I am trying to achieve is to move the battery percentage indicator to the maximum right, I have already deleted numbers.

CODE of CmBatteryMiniIcon.smali

# static fields
.field static final BATTERY_MINI_ICON_MARGIN_RIGHT_DIP:I = 0x6

.field static final BATTERY_MINI_ICON_WIDTH_DIP:I = 0x4

.field private static final BATTERY_STYLE_PERCENT:I = 0x1

I guess that I should be able to change margin and width here to 0 and 25 but after edit nothing changes...

Any ideas?

I can share files if necessary
[Android Themes] Smokem_I:
Great guide! Thanks! It was way easier this time then when I did it a couple months back! Only had a problem with the bottom power widget but gonna give it another try.

Sent from my BluMagic CM7 Glacier using the Blu Premium App
[Android Themes] www69:
THanx for the tutorial....

can i ask u, how to make Provider on the bottom like ics

------------

sorry for my bad english
[Android Themes] roofrider:
Nice..congrats on bringing the power widget down, only noticed it today. Didnt try it yet..no time these days. U said it went back to the top again after sometime in a post..well did it come back down again?
[Android Themes] ahlulnugraha:
Guys I have problem with my notification icon, its overlapping my clock and there is strange icon on it. But when I move the clock to the right its gone. Need your word please anyone.

clock centered

When clock back to right
[Android Themes] alen1901:
Tried option to remove carrier name from statusbar?

Sent from my Nexus S
[Android Themes] alen1901:
Sent from my Nexus S
[Android Themes] ahlulnugraha:
Yes I tried to add Carrier label to statusbar, any suggestion to make notification move to right side of the clock? Looks weird if I centered the clock.
[Android Themes] xxxMADxxx:
Change ur gravity to "right" n adding margin right..
[Android Themes] ahlulnugraha:
Sorry, can you give more detail?

<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true" />
<com.android.systemui.statusbar.CmSignalText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:orientation="horizontal" android:id="@id/buttons" android:layout_width="wrap_content" android:layout_height="fill_parent">

where I put that thing?
[Android Themes] Tonyroid:
Using CM9(ICS)

Can't locate power widget at bottom..

help me plz guys..!
[Android Themes] dhirend_6d:
Applied almost all successfully. But the power widget at the bottom just does not happen. Notice that I do have the horizontal scrollbar at the bottom. But its there at the top as well. And the power buttons are at the top only. On the botom there is only an empty space.

Also, Taine s method to push the clear button to the bottom works, but when I try same for power widget, I get FCs.
[Android Themes] slurpdroid:
same here, power widget bottom mod not work on me :(

and I have a suggestion

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center" [B][COLOR="Red"]android:paddingRight="6.0dip"[/COLOR][/B] android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>

deleting android:paddingRight="6.0dip" will make the clock actually being in the center :D
[Android Themes] SpaceCaker:
How to remove extended powermenu ?

:P
[Android Themes] TheGrammarFreak:
Turn it off in CM settings :p
[Android Themes] SpaceCaker:
Cant find extendend powermenu :p

I tried deleteing the public and ids lines of them but gaven me erros :p
[Android Themes] DJBhardwaj:
@TheGrammarFreak: hey again mate!

recently i've been trying to apply transparency patch along side the center clock patch

but no matter what i do, i tried the method carefully but still no success

could i drop the systemui and may be you can give it a try ?
[Android Themes] TheGrammarFreak:
I'm in the middle of exams, and my PC isn't set up for any kind of Android hacking. Sorry dude :\
[Android Themes] DJBhardwaj:
Perfectly okay, i'll try others way :)

Thanks
[Android Themes] PapaGanoosh:
So I've experienced an empty space to the left of my notification bar and was wondering if this would be able to fix it/get it back to its original state? Here is the brief on when this occurred:

I had recently updated my sensation to ics. Everything was fine but today after an application update to Google+ and lookout security, there was a space occurring to the left of my notification bar where the notifications for some of my other apps would usually occur so it looked like there was an empty space to the left before my first app notification (all my app notifications shifted over to the right by one space you can say).

I have included photos of before and after.
[Android Themes] ahlulnugraha:
Try to decrease/increase value of dip, there must be related to that, correct me if I'm wrong.
[Android Themes] PapaGanoosh:
Sorry, for beeing a total noob here, but I'm not sure I quite understand what you mean by that? Do you mean change the value in the text string shown in the OP? Also do I have to root my phone to fix this problem?
[Android Themes] SpaceCaker:
Anyone know how to centre lock clock? Ive been looking for it for 2 days

And tried to correct dip and centre stuff

Etc

But no luck yet
[Android Themes] TheGrammarFreak:
To apply the centre clock thing, yes. You do need root. If you haven't applied any of this mod then the padding to the left has been introduced by a rogue app placing an invisible icon on your status bar.

While I've not done this before, I should think it's possible. I think the lockscreen stuff is in framework-res, although I can't remember the name of the XML off the top of my head. (it might be something like keyguard_screen_tab_unlock.xml, but that was in GB. Might have changed in ICS)

Somewhere in that file I'm sure you can adjust the position of the clock
[Android Themes] SpaceCaker:
Yes its in keyguard screen tab unlock .xml

I got the clock to right but not center

And other tweaks i did to
[Android Themes] SpaceCaker:
NeVermind got lockscreen clock to center
[Android Themes] TheGrammarFreak:
Either failed to close a tag or closed to many
[Android Themes] mahroze:
nd how do i go about correcting it????
[Android Themes] TheGrammarFreak:
Find which tag is messed up and fix it.

With XML (and HTML) you have tags which look like this:

<tag here>

And to close a tag you do this

</tag here>

Note the "/". Also remember that you should close the tags in the reverse order that you made them (FILO, First In, Last Out). So if we have a tag that a linear layout it's started like this:

<LinearLayout ... >

. Once we've put everything we want in the linear layout we need to close it with it's respective closing tag:

</LinearLayout>

What I suspect you've done is missed a closing tag, so open your XML file in something like notepad++ and use indents to see if you can find where the missing tag should go.

If you try all this (and I hope you do, learning is good for you) and still mess up then you can send me the XML file and I'll have a looksee. :)
[Android Themes] mahroze:
thanx will try this and get back to you
[Android Themes] Insomaniac10:
sorry, delete 10char
[Android Themes] MicroLizard:
nice tutorial.

I have problem with the power widget.

now, I have 2, on top and bottom.

screenshot.

how to fix this?

thanks.
[Android Themes] Schriftx:
Hi! The tutorial is great, really.

But i have a problem off course, i managed to put the clock in center but i want the other icons to the left and right side not just one of them.

It looks stupid. I want something like the 2nd picture.

So how could i make it?

Sorry for my english.
[Android Themes] Ticklefish:
That 2nd picture isn't showing. Putting your icons to the left and right of the clock is fairly simple. Share your status_bar.xml and tell me which icons you want where and I'll show you how.
[Android Themes] Ticklefish:
This is Gingerbread, I'm guessing? Basically....you can't do what you want to do with this, not with this rom.

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true" />

These two lines are the ones controlling what icon goes where. The second line is all your notification icons, which will go on the right side of the screen. The first line is all your status icons. All of them. That's the battery, mobile signal, wifi, bluetooth, gps, speakerphone, mute/vibrate..every single one.

And you can't split them up.

I'm using Timescape ICS and that's got separate lines for a lot of different icons so you can arrange them however you like. I've also seen similar things on some MIUI roms. But your rom just won't let you do it.

Sorry. :(
[Android Themes] Schriftx:
I see. Thanks!

I tried to make the simple statusicons on right and others on left version. But if i have lot of status icon it overlaps the clock. [PICTURE]

Is there something what could fix this?
[Android Themes] Ticklefish:
Not a lot really. You could try changing the width of the LinearLayout from wrap_content to a set figure. Maybe "40.0dip". You'd have to experiment to find the right figure.

Or you could disable the alarm clock icon by editing build.prop.

Or use a different alarm clock app.
[Android Themes] Schriftx:
Thank you! Maybe i try the width changing thing.

Thanks again! :)
[Android Themes] smaw51:
The only way I was able to get this to work with my cm7 nightly is to not sign it. Then I moved the apk to the system/app with rom toolbox, rebooted and now its perfect! thanks!!
[Android Themes] DJBhardwaj:
This method removes and eases the step of signing the apk.
[Android Themes] RayQ1223:
Hey. I follow every step for the center clock date anf the notofication overlay thing but when I've done everything, booted my phone and it says status bar has force close. Can anyone help me?
[Android Themes] TheGrammarFreak:
All I can tell you about a force closing SystemUI is that you did something wrong. I can't me more specific because there are literally an infinite number of thing that you could have done that result in a force closing SystemUI

My advice is start over and try again

Also, this probably only works on Gingerbread, I've never tested it on ICS+
[Android Themes] kissingmylove:
Deleted......
[Android Themes] Potatophillia:
Re-organising the icons means just rearranging the icons on the left side of the status bar right? What if i wanna move the Signal icon or the wifi icon to the left side? Sorry, noob question. :confused:
[Android Themes] jacklul:
Is there any way to force less icons on the notification area? When i get lot's of them they kinda go onto the clock and it looks bad.
[Android Themes] TheGrammarFreak:
None that I ever found
[Android Themes] pledzenk:
thanks, simple guide for me :good:
[Android Themes] Dawn_ddw:
thanks mate,this help me so much :D
[Android Themes] doomhammer07:
Does this work on cm 10.2!? :what:
[Android Themes] roofrider:
Works on 10.1, can be made to work on 10.2 too i guess.

But i had trouble with the clock being overlapped by notifications and the bg which was added to the ticker only seemed to complicate things so i'm longer centering the clock sadly.
[Android Themes] PRAKASHPANDEY193:
Through this guife my battery nd signal sign move to left. ... Bt successful to move clock in center

Sent from my Neo v using ginger2jellybean 2.5 with my own modification
[Android Themes] jasper~:
Will try this mate :)
[Android Themes] Kykyeve:
I already tested on CM10 : center clock doesn't work.

I've applied it with a little adjustment (maybe this where I made a mistake) because OP's status_bar.xml different with CM10's status_bar.xml.

Enlighten me master :p
[Android Themes] Dead_Dude:
I'm interested in trying this on a brand new Huawei Honor 5x... running stock EMUI.

Anything I should be aware of before I attempt it? I've never done anything like this before...!
[Android Themes] yonzz:
Ah, i have a liittle question.

Is it possible to move the date to before the icon merger (at statusbar.xml) ?

If moving the Carrier Label to before the icon merger is possible like the zdunex25 patcher did. I think, moving the Date is possible too.

So, the statusbar will look like this

27-11-2011 (icon merger) 08:20AM (battery, signal, wifi, bluetooth icon, etc)

I've tried it, but my statusbar is dissapear. :confused:

I don't know where is the mistake that causing my statusbar dissapeared.

Do you know, how to move to there?
[Android Themes] parker09:
Lol, I'm a bit of a moron, but it seems to be not working for me. I tried following the tutorial step by step (excluding changing the icons bit) but just can't seem to get it, each time I reboot I get "Sorry! The application Status Bar (process com.android.systemui) has stopped unexpectedly. Please try again."

My XML file:

- http://pastebin.com/ipWjdb1M

or

- http://users.tpg.com.au/parker09/status_bar.xml

The phone freezes on the homescreen and doesn't do anything eg. screen doesn't go off, or it doesn't allow me to reboot (have to take the battery out).

I went back to recovery > advanced > fix permissions. Now when I boot into Android I still get the force close of the SystemUI but I can close it, and use Android but the status bar has disappeared like the above poster.

My ROM: Dorimanx-ROM-HIGH-END 2.9.8 NO-HOME-REFRESH+SWAP+JIT+SKIN+TWEAKS+CRON running latest (2.9.8)
[Android Themes] agentsandy007:
@GrammarFreak

Can u plz make a flashable zip for me....

I tried using ur tut.....but stuck at preparing apktool....
[Android Themes] creeve4:
This tutorial was written so you can help yourself, instead of relying on others. Give it a go mate.
[Android Themes] tuemdeluxe:
Thanks for this great tutorial!

I really tried this 10 times and until now I didn't consider myself as such a noob but the status bar just disappears everytime I pushed the new SystemUI.apk to the device.

I'm running the OxygenMod on the Nexus One. Can anybody see obvious errors I did in the status_bar.xml? I also tried to decompile and sign the apk manually with apkmanager, same result.

Thanks in advance

EDIT: Also changed permissions of SystemUI.apk to rw-r-r like it was before, but the statursbar won't appear with a moddified status_bar.xml.
[Android Themes] agentsandy007:
I tried Real hard......

But stuck at setting up apktool....(i've downloaded apk files extracted to C:/ but when i type apktool in cmd it says apktool hasn't been itegrated into sys or something like that)

So any help on apktool would be geat ....So far i've got adb working.....
[Android Themes] DJBhardwaj:
@TheGrammarFreak: hay bud!

Could you post the screenshot of your homescreen and the notifications (while pulled down) asap!
[Android Themes] TheGrammarFreak:
I've never had a desire to do that. It's possible that ZDune's patcher makes smali edits too, but seeing as he never documents what he's doing and I don't have the desire to go and work it out I can't be sure.

Hmm... Not entirely sure on that one. XML looks good to me. Did you get any errors when compiling?

Nope, I've stopped doing it for people now. Sorry

Again, not sure. Assuming your XML is right then I can only assume it's a signing/permissions issue.

I've never set up APKTool on Windows. A few google searches yeild this and this

Why?
[Android Themes] DJBhardwaj:
@All :- TheGrammarFreak is right, learn by yourself. He provided you a great guide. Being true around 2 weeks ago, i knew nothing about modding the status bar. But this kind person, helped me. Provided me just a short guide and now what! I can control each and every part of my status bar ;)

Thanks to him

So, its better to learn :-)
[Android Themes] TheGrammarFreak:
Greetings!

Shameless bump here, I just wrote a guide on removing the blur behind the power menu in post #3, go check it out!

My plan is to slowly empty my (limited) theme/tweaks knowledge into this thread, even if it's not directly related to the centre clock/notif. icons switch stuff. Happy days
[Android Themes] aditusprojects:
I try this so many times, and I don't run into any errors while compiling, but I still get a FC when I push the SystemUI.apk.

Here's my CMD :

http://pastebin.com/42wn9idr

Here's my status_bar.xml :

http://pastebin.com/GTSEJmq1

Thanks in advance.
[Android Themes] TheGrammarFreak:
I don't see you building SystemUI at any point. According to your CMD dump you install framework, decompiles SystemUI, decompiled framework-res and then pushed SystemUI.

You need to build SystemUI, and copy the built status_bar.xml across to your SystemUI.apk, and then push
[Android Themes] yonzz:
@TheGrammarFreak. Yeah, maybe it's possible to do that. Maybe i will check and try that again. :)

By the way, is it possible to add another battery icon when the statusbar is expanded? So, when statusbar at normal position

for example, when statusbar is at normal position, the battery icon is blue. but, when we expand (drop down) the statusbar, the battery icon changed to green. Is it possible to do that? Or we have to edit the smali first? :D