yashsingh1/xdaforums huggingface dataset:
[Android Themes] TheGrammarFreak:
I don't quite follow what you mean. You want a battery in the dateview?
[Android Themes] yonzz:
Yeah, i want a battery in the dateview. It's because i saw MIUI ROM, that can change the battery bar. Is it possible on CM7? Sorry my broken english. :)
[Android Themes] Lockett:
Excellent write up my friend. If I had money to donate I would in a heartbeat, lol. I do have two quick questions:

1. If using APKmanager instead of APKtools, having to sign the apk after recompiling would be the only difference, right?

2. Any idea what changes would have to be made in order to move the status bar to the bottom of the screen similar to the Nook Color? I use Launcher7 so accessing my apps is just a swipe away.

Once again thank you for such a great write up. I will give this a shot when I get home and post a screenshot for ya.
[Android Themes] TheGrammarFreak:
I'm not sure it's possible with XML hacks alone, it might (rwad: probably will) need some smali edits too. I'm no good with smali.

I do have an idea on how you could get something similar. Let me test it and I'll get back to you

APKManager is mainly a wrapper script for apktool. Feel free to experiment (please do) and if you come up with a good way to do it using APKManager write it up and I'll link to it ;)

The status bar can be moved to the bottom in CM7, CMSettings --> Tablet Tweaks

If you're not using CM, I'm not sure how easily it could be done. My git-fu isn't up to scratch, so I can't (and won't) promise that I'll figure it out. But if, one day, I stumble across it I'll let you know.

RE Donations: No. Just no. I've never done this for money, and I never will
[Android Themes] Lockett:
I've been playing around with apkmanager for a few days now and attempted this on my own last night (before someone linked me to this thread) and had no issues decompiling and recompiling the systemui but I was a little off on my XML edits. I'll most definitely report back tonight. Another quick question, when I finish the edits and push the apk back to the phone is there anything specific I would have to do (like actually clicking on the file and installing it, rebooting, etc.) to get the changes to take place?
[Android Themes] DJBhardwaj:
If you are pushing through adb, make sure to type this command before pushing it "adb remount"

this will change the SystemUI.apk permissions suitable

push the apk then

and after its push type "adb reboot"

the phone will reboot in half a minute and if you haven't done anything wrong, your status bar will be working with the edits you made.

Using apkmanager is sometimes a pain in a**

Prevent its usage :)
[Android Themes] Lockett:
Thanks for the info Optimus. I just gave this a shot using APKmanager and looks like I have to try it the adb way now, haha. I decompiled, made the changes to the xml, recompiled, signed, and copied the new SystemUI.apk to the phone. I kept getting FC's on the SystemUI but luckily I made a copy of the original and placed it on my SD card. Copied the original over and rebooted and now have my status bar again. I will report back when I give adb a shot and let ya know how that went.
[Android Themes] spc_hicks09:
Hey Lockett, just so you know, the framework-res and systemUI files don't need to be signed. Don't know if that will help with what you're doing or not but just wanted to let you know.
[Android Themes] Lockett:
Ahh thanks man. I will have to give it a shot using an unsigned apk. Is it also possible to make a flashable zip of the apk and flash in CWM? I'm having some trouble getting adb working right so I'm hoping there is another way around it since I already have the file edited.
[Android Themes] spc_hicks09:
You can download the zip file for my theme from here:

http://www.multiupload.com/67A7U85KAC

Right click on the file

scroll to "7zip" and click on "open archive"

When the file opens, go through all the folders and delete the apks that are in there, then replace them with yours.

Close it out and put it on your sdcard, then flash away.
[Android Themes] Lockett:
Awesome. I'll give that a shot tomorrow evening. I did finally get adb work right so I will try both editing myself and your theme.
[Android Themes] ensmile:
omg finally it works on my atrix

thanks for the cool detailed modification manual

just wondering is it possible to control the number of notification icons?

what i mean is that the clock has been blind if i got more than six notifications

i think it can display up to 10 icons

any chance to fix it?
[Android Themes] Lockett:
After trying both APKmanager and APKtool I still can't get this to work. Everything seems fine, the code looks right, but when I go to recompile the apk I get an AAPT error. It says it completed pushing back to the phone and when I reboot nothing has changed. Has anyone else had an aapt error come up? Once I get home I will try again and post what the exact error says. All I can remember is its something having to do with audio.
[Android Themes] TheGrammarFreak:
Not without some smali edits. I don't understand smali :(

The error would be helpful ;)
[Android Themes] Felimenta97:
Can someone do this for me? My status-bar.xml is diferent from the guide and I am a noob in this. Everything is diferrent from the guide. And, if possible, include tony's noob transition animation:

http://xdaforums.com/showthread.php?t=1349116

Thanks.
[Android Themes] TheGrammarFreak:
Eh? I just decompiled it, it's not different. Not in the slightest. What bit is different in your opinion?
[Android Themes] Felimenta97:
Here:

<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" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

</LinearLayout>

In Android:gravity="center"

My System UI is Android: gravity="right|center"

And When I paste back the layout get strange, don't look the way it has to be.

Sorry for english, btw.
[Android Themes] TheGrammarFreak:
Change "right|center" to "center" then...
[Android Themes] Felimenta97:
And the paste problem? Well, if someone make it for me, will receive Thanks on each post I see (lolol), if anyone can make it, thanks anyway.
[Android Themes] TheGrammarFreak:
You've been very non-descriptive with your problem. I want to help you, it's why I'm here.

Maybe a screen shot of your status bar? What exactly doesn't work when you paste the code?
[Android Themes] Felimenta97:
Forget it, I am without pacience right now. When I have that, I will try again. Thanks for the help.
[Android Themes] Lockett:
Okay so here is what I am getting while recompiling:

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'quickpanel_sound_text' has no default translation in C:\Android\StatusBarMod\SystemUI\res; found : es

I: Building apk file...

I have no idea if this is what is causing this not to work or if I screwed something up while editing (I've started from the beginning at least 4 times). I also attached a copy of the file in a .txt form. Hopefully this will help ya some.
[Android Themes] Schneeder:
Doing this will be the death of me. Can't see to get it to work. ):
[Android Themes] Lockett:
Agreed. I've tried this over and over. Started from the beginning numerous times and still keep getting the same error. I've become convinced that this doesn't work on the Droid Charge.
[Android Themes] Schneeder:
I'm starting to think that too. Going to try a couple different things and see if it works. Wish TSM parts came with Humble.
[Android Themes] Lockett:
I never had any luck with TSM. That's why I always came back to Humble.
[Android Themes] Schneeder:
I got it to work. :D
[Android Themes] Lockett:
Any chance you could pm me your XML so I can compare?
[Android Themes] Schneeder:
Sure.

Sent your way.

---------- Post added at 11:13 PM ---------- Previous post was at 10:17 PM ----------

How might we change clock text color to black or transparent? I want it gone. lol
[Android Themes] Lockett:
Thanks man. You could try deleting the line for the clock.
[Android Themes] TheGrammarFreak:
Deleting the clock line would cause problems, set its width to 0
[Android Themes] Schneeder:
I tried changing the one part in the clock line with width in it and it did not work. Gave me a bunch of crap when I tried to recompile and only recompiles the class.dex.
[Android Themes] Lockett:
Schneeder, I did notice a few differences between your code and mine. Just to see if it would work, I copied your code and pasted it to my status bar xml and guess what??? Still got the same aapt error and it didn't work. Now I'm lost.
[Android Themes] Schneeder:
I could possibly take a look at it for you.
[Android Themes] Lockett:
That would be awesome.
[Android Themes] Schneeder:
I can't seem to figure out how to change the clock color to black so I don't have to see it any longer. lol
[Android Themes] TheGrammarFreak:
Set the clock element's width to 0. If you're using a recent CM7 build there's an option in CM settings to turn the clock off too.

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

The bit I edited is highlighted in red
[Android Themes] Schneeder:
That worked for me. Thank you. :)

Lockett, if you want to pm your xml I'll look at it.
[Android Themes] Lockett:
I posted a copy of the XML in a txt format on page 6. If that doesn't work for you let me know and I will copy it into a PM when i get back to my computer.
[Android Themes] etp23:
Would ur xml work on cm7?? If soo permission to borrow? :)
[Android Themes] TheGrammarFreak:
Who's XML?
[Android Themes] Lockett:
Alright, I'm back at this again. This time I am using a Droid Bionic instead of the Droid Charge. Everything went fine and dandy until using ADB to remount. In CMD, I type adb remount and i get an error "remount failed: Operation not permitted." Any idea on how to get around this?
[Android Themes] TheGrammarFreak:
You may well need an insecure boot image for that bit to work. I had a feeling that it might be the case, but most CM ROMs have this.

Workaround (use instead of adb remount):

adb shell mount -o remount,rw /system
[Android Themes] odod:
i have some problem with the notif icon, wifi bar and signal wich in right now in left it's work. but the notif icons isnt move to right it still in left

i attached my systemui, could you see the problem ? thx :)
[Android Themes] 00McD00:
Actually you can delete that line without any problems at all and it will hide the clock perfectly. That's how I always do it.
[Android Themes] KOala888:
Hey, I centered the clock and made statusbar transparent using themepatcher but I'd like to change clock vertical position a little bit too.

That is what happens when I use apktool, can not recompile apk, my whole process:

Microsoft Windows XP [Wersja 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Flick>cd C:/apktool

C:\Documents and Settings\Flick\apktool>
C:\Documents and Settings\Flick\apktool>cd C:/apktool
System nie może odnaleźć określonej ścieżki.

C:\Documents and Settings\Flick\apktool>cd C:/apktool
System nie może odnaleźć określonej ścieżki.

C:\Documents and Settings\Flick\apktool>cd C:\apktool

C:\apktool>systemui.apk spica

C:\apktool>framework-res.apk spica

C:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Documents and Settings\Flick\apktool\framework\1.a
pk

C:\apktool>apktool d systemui.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Flick\apktool\fra
mework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

C:\apktool>apktool b systemui
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\systemui\res\layout\status_bar.xml:38: error: Error: No resource foun
d that matches the given name (at 'background' with value '@drawable/statusbar_b
ackground2').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\Flick\USTAWI~1\Temp\APK
TOOL6884578106236555888.tmp, -I, C:\Documents and Settings\Flick\apktool\framewo
rk\1.apk, -S, C:\apktool\systemui\res, -M, C:\apktool\systemui\AndroidManifest.x
ml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\D
OCUME~1\Flick\USTAWI~1\Temp\APKTOOL6884578106236555888.tmp, -I, C:\Documents and
Settings\Flick\apktool\framework\1.apk, -S, C:\apktool\systemui\res, -M, C:\apk
tool\systemui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\apktool>

What am I doing wrong?
[Android Themes] TheGrammarFreak:
The error is because you're specifying a none-existent file for the background of one of your elements
[Android Themes] KOala888:
yep it worked, thanks a lot!

finally got all these tools workin and can start to customize my statusbar...any tips about changing icons place (heaphones icon)? or should I analyze taine0 xml and try on myself?
[Android Themes] Felimenta97:
Someone can help me. I think I don't know how to create the lines correctly. Some nice soul can edit for me? I want centered clock (of course) and the icons, from right to left, in the following order: Headphones (if possible), Wifi, Battery and phone signal. No need for data transfer because I don't use it.
[Android Themes] Rob116:
Very good, thanks a lot!
[Android Themes] netwokz:
Has anyone tried this on ICS? I doubt it will work, but just curious. I'm going to try it in a few hours after work.
[Android Themes] TheGrammarFreak:
I couldn't get anything to decompile from ICS
[Android Themes] netwokz:
Hmmm... I just downloaded apktool and was able to decompile just fine. Gunna take a stab at it.
[Android Themes] netwokz:
For some reason it work for me first try this time. I could never get it to work on GB. Thanks again for the tutorial!
[Android Themes] TheGrammarFreak:
I just checked, APKTool has updated since I last tried ;)
[Android Themes] 00McD00:
I was having this same problem for a while and it was because I needed the latest Aapt.exe from the Android-SDK instead of the one which comes with Apktool. Trying using the one I have attached. Hope this helps.

Can I asked what rom you did this on? Because I tried forever to get this to work on ICS 4.0.3 and it would not work. The clock would center, but the status bar icons would be all the way over to the left. Example of what I mean below.

http://twitter.com/#!/AlwaysAndroid/media/slideshow?url=http://twitpic.com/802c03
[Android Themes] netwokz:
Could you post your SystemUI.apk?
[Android Themes] eeee616:
Why theme transparent still overlap notifications :(
[Android Themes] chiefy009:
Can this mod only be done on CM7 based rom's ?

I have a modded stock rom that is themed and I really like the clock centred so before I attempt it I just wanted to check my systemui and framework are attached in case you needed to see them
[Android Themes] Notorious544d:
Super clear instructions. Worked like a charm OP, thanks! :)

And yes, I used this on a CM7 based ROM, so it will work on CM7 ^
[Android Themes] yash_p90:
Thank you very much. I have been trying this thing since many days. Finally succeeded.
[Android Themes] yash_p90:
I succeeded in centering the clock and date. But i couldnt make the status bar transparent from this link that you gave. Im pretty sure i did everything right (i did it twice).

Im on the latest cm7 nightly.
[Android Themes] brainvision:
So why don't you try with UOT Kitchen? It's really so easy!

{ brvsn ~ CM7 on GT-I5500 ~ Tapatalk }
[Android Themes] yash_p90:
I got transparent yesterday. But it works only on system theme. I was trying on some theme that is why I wasn't able to get transparent. Thanks anyways :-)

Sent from YOUR HTC Wildfire!
[Android Themes] brainvision:
If you are using ADW Launcher try to disable the Wallpaper Hack (or something like): I don't know if also others launchers needs and have it.

What theme are you using? Try, just to say, LUNARUI or MIUI and see if they got transparency..

Hope you solve that, man..

{ brvsn ~ CM7 on GT-I5500 ~ Tapatalk }
[Android Themes] yash_p90:
yes i get transparency only if i disable wallpaper hack. i using ntsense theme. i havent tried with lunarUI theme. gotta try that!
[Android Themes] brainvision:
Sometimes transparency works also with Hack option enabled, but not always and anyway the result is not so good to see..

Anyway, glad you solved it!!

{ brvsn ~ CM7 on GT-I5500 ~ Tapatalk }
[Android Themes] Felimenta97:
OK, with the video this seems to be a lot easier. I am on my phone, so tomorrow I will try it, but anyone know if this works with ICS Layout?
[Android Themes] yash_p90:
SHEZ HOTT!!
[Android Themes] TheGrammarFreak:
You haven't put the clock inside a linear layout. Look over the guide again, you missed this bit:

Read from that bit on ;)

-_-
[Android Themes] TheGrammarFreak:
It's closing a statement there. You really shouldn't be getting an error on that line. Can I see the log from APKTool pl0x?
[Android Themes] kristjanp:
here it is
[Android Themes] TheGrammarFreak:
Hmm...

I think there's a closing tag somewhere in there that shouldn't be there. I'm not sure where it is though, the XML looks fine to me. I can only assume it's a subtle error that I haven't seen. I'm not all that great with XML to be honest.

I have a tonne of coursework that I'm behind on, so the only even-vaguely useful advice I can give is to start fresh with the mod, and be sure to follow the guide as closely as possible. I realise that me saying that isn't what you want me to do, but I really don't have time to delve into XML at the moment. :(

Sorry
[Android Themes] Felimenta97:
Anyone?

It's due the ICS layout my status bar.xml is different? Or it's because my ROM?

My original statusbar.xml

Somethings are already changed, some lines are bigger and some are smaller than the video, and some of them are different. I am getting confused about this. The LinearLayout line is different.

Someone can help me, please?
[Android Themes] TheGrammarFreak:
Can you paste the XML inside code tags or on pastebin, so I don't have to work out what all the smilies mean please? I'll try to figure it out, but I've never looked at the ICS XML before
[Android Themes] Felimenta97:
Sorry. Here is it:

Don't waste your time, if you don't want to. I'm going to change my phone in about 2 or 3 months. If can't find a way to do this, forget it. But, if you manage to, thanks :)

EDIT: Forget it, my ROM dev managed to add a option in CMParts.apk to make it work. Thanks for your time.
[Android Themes] supetawesomedude:
Great guide! I'm serious this is awesome!!

But one thing. I don't know if this is just for me, but when I ran through your guide (which worked fine), and rebooted my phone, I saw that when I attempted to switch only the Battery, Wifi, and Signal Icons to the left, all other apps (SMS, Facebook, Twitter, etc.) had their icons shifted to the left as well. This also happened to me when trying with Taine0's guide. Thanks to KDotty, I have a solution:
[Android Themes] WhiteBoy997:
thats how it is on my phone. the sms, facebook, etc. stay on the left. but its fine with me.
[Android Themes] supetawesomedude:
Oh. Haha anyway,

Is it possible to move the battery icon (not the percentage) and keep everything else to the left? as in,

Left: Wifi, Signal, Data, Vib/Sil/Ringer

Center: Clock

Right: Notifications, and Battery ICONS (not percentage)
[Android Themes] perkhus:
excelent, thanks.
[Android Themes] xxxMADxxx:
Hallo my friend....if i want to switch icon wifi n signal to left what xml code should i changed??? thx button i hit for ur reply or not...im on cm7...thx a lot man..
[Android Themes] kong:
Thanks for the great guide!

Looking forward to "Re-organize status icons in notification bar" tutorial :D
[Android Themes] SrkeeOSK:
i did the clock centering successfully, thanks for your help!

now i have another challenge

i'm trying to do this

______________________________________________________________________

(SIGNAL ICON, WIFI,3G)----------CLOCK------------ notifications (BATTERY ICON)

______________________________________________________________________

but i just cant find the signal icon in that XML, ive tryed a lot of combos, but it mainly ends up in dead notification bar D:
[Android Themes] lopman:
Will this work for cm6 froyo 2.2?? :)
[Android Themes] TheGrammarFreak:
Nope, the froyo clock doesn't have an xml element. It's lumped up with the status icons.

@everyone else, I'm inundated with coursework at the moment. I plan on celebrating the deadlines (and my finishing the work) by rooting my new phone and generally getting back into xda. With any luck I'll write the rest of the stuff I said I'd write then too
[Android Themes] Kannibalism:
i need help with centering the clock in the statusbar only for some reason i am unable to complete this mod nothing happens when i flash my zip files

Link to my framework.res & systemui.apk

http://www.mediafire.com/?vyazai4pfvkzm3i

Edit Fixed my apktool and did everything the guide says statusbar disappears using this method
[Android Themes] alley23:
How to fix the overlap of the date and notification?
[Android Themes] brainvision:
Hi all..

I'm having the same issue here on my GT-I5500..

I applied transparency through the UOT Kitchen online tool, than I centered the date and the clock following the GrammarFreak guide (also the No overlap section) and now my clock and my date are well centered..

But when I pull down the notification bar the clock and the date are placed one above the other, so that the result is a little unreadable..

Then, when a notification comes, it places itself over the clock, so again, in the portion where the clock is, the text is a little unreadable..

It's very annoying: is there a way to fix that or is it a problem that we all have when we want the transparent status bar and the clock centered?

Do I miss something?

I hope someone is able to help me, I can't find solution!!

Thank you very much for paying attention..
[Android Themes] TheGrammarFreak:
Can I see some screenshots to clarify please? Depending on exactly what you mean it might be fixable, or it might not
[Android Themes] TheGrammarFreak:
Shameless bump

I added the guide to changing the status bar icon order, see post 3.

Once again, if you're having issues then a screenshot is massively helpful for me. If you're using CM then the screenshot functionality is built right in there. ;)
[Android Themes] brainvision:
Yep, sure I can show you some screenshots!! Thanks for replying..

so, that's the normal state:

this is what I get pulling down the notification statusbar..

and finally the last 2 images show my screen when a SMS notification (but it's the same for others notifications, obviously) arrives:

I didn't make a screenshot of the last situation with the bar pulled down, but I think that those are enough..

what do you think about?

Thanks again for your interest..
[Android Themes] alley23:
Solve for me.. the only problem is the picture 4. But notification update. It covers the clock.
[Android Themes] SrkeeOSK:
is there a way to move let's say just a few icons, signal and bluetooth to the left? and others to stay right?