yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
That was good timing! I was going to post your modded apk later today! :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Q, can u attach the modded/edited .xml in ur op?? Or can u just giv us the line to add in the designate file. Thanks.:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] stblue:
nice tutorial:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
But that's pretty much what the tutorial does...

There's no point me attaching any xml. What's in my stock ICS rom might not be in other roms. I know the code won't work in Gingerbread and I've no idea if it'll work in Jellybean.

The purpose of this tutorial is to tell you how to center the clock on any rom.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
So is there gonna be a problem if i just copy/paste ur highlighted code to the corresponding line?? This is my 1st time dong this, so thats the reason for the .xml. Lol.:silly: Just curious.:o
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
As long as your stock code is the same, then sure. Just be careful to get it in the right place.

And if you get it wrong, don't worry. It won't hurt your phone.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
The weird thing is i can't even compile my .apk to test it out. Bump!!!:( The attachment is the .apk that i've been using to try this mod.:o Could u tell me what i'm doing wrong?? I'm using ApkManager by the way coz its the simplest tool to do this things. Could that be the problem??:confused:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Hmm.. I'm still learning bout all of this, so i'll try my best to keep up. Mybe i'll try ur tickle.exe n see how it goes.:p
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Oh, we're all noobs at some point. When I got my first Android, I spent months trying to work out how to change the battery icon. And the number of times I've given myself a bootloop..lol

Just remember to take it slow and back your phone up!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Finally:victory: i use ur step 1. And work out great. Simple n yet astonishing. It givs my phone a 3D looks when the statusbar covers the clock. Lol. Also i've use this method for my mod. Already givs u the credit. Thanks man.:p
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
I got a another Q, how to limit the notf to at least 4 or 5?? Which line do i change?? I'm using ur method 1 by the way.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
That is in your values folder. I'm on the road so can't check but I think it's something like integers.xml,
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
So tell me when u off the road then. Lol.:p Don't text n drive man.:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Steph310:
To help you, use simply this status_bar.xml

1. Extract to have the xml

2. With a root browser "copy" original SytemUI.apk (sytem / app / ) on SD

3. With 7zip replace "status_bar.xml" that is in SystemUi / res / layout

4. close

5. With a root browser "move" SytemUi.apk to his original place and overwrite it!

Reboot, enjoy! ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Thanks man. Can u tell me how do u move the alarm icon over there?? Kinda makes everything perfect as it did not bother the right icon 1 bit.;) Is it already in the status_bar.xml?? Haven't try it tho.:p

Edit; Dude, my status bar fc. Lol.:p Are u on cdma?? Can u giv'em in decompile state?? That should help me get the picture how to edit mine.;) Also, my Q bout that alarm icon...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Steph310:
I don't know decompile :( and I use this method that works fine for me!

I extracted this status bar xml from a mod found here using 7zip.

The copied SystemUI (with a root browser) stay on the SD.

The phone connected to the computer with usb. With 7zip I open it and replace the xml.

With root browser you move SystemUI.apk to system / app and overwrite the original apk.

I reboot and I don't have any FC.

For me permissions don't change but you can chek RW-R-R.

I have unlock bootloader.

I also use this method to modify alarm icon, % battery,... in SystemUI

Otherwise I find an excellent app that help you to modify xml, icon,... in Framework-res, SystemUI any system apk's;)

ninja morph
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Meh...:banghead: Thanks anyway, dude.;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Any1???:banghead:

-"This is just the begining & it continues;)"-
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] iCung:
uh...do you know how to apply this mod on GB? because there are some different between ICS and GB statusbar_xml (the line, which ICS has 32 line while GB has only 20 line)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] flasherman:
Thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I do, yes. The idea behind the mod will work in GB, ICS, JB, CM, MIUI..whatever. Have another read of the op, compare it to your statusbar.xml code and see if you can work out what's going on.

If you can't figure it out, I'm happy to help. Just post your statusbar.xml and I'll show you. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I was right. In SystemUI.apk/res/values/integers.xml, the code looks like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_maxNotificationIcons">5</integer>
<integer name="config_clock_am_pm_style">0</integer>
</resources>

:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, there is a fairly easy way to add id's..but I think we might be over-complicating things a little.

Basically, you want to center the clock with Method 2, right?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Yupp. Any ideas?? Coz ur methods involve a lot of individual icons. So that makes'em kinda a hassle to compile. So how would u make'em work like method 2, or possible method 3!!:p
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Thank you for simplifiying everything!!!!

A'ight. Imma test it out right now post a screenshot with notifications up to center. We'll see how it'd goes.:fingers-crossed:

Edit; A'ight this is ur code result along with a screenshot. Watch for the highlighted/color phrase.;)

This is mine after i figure it out what the problem is.;)

Thanks man!!! U've been a lot of help & i'm sure other GB themer would benefit much from this. I only hope they'll appreciate all this as i've appreciate urs'.:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] AleksandarST15:
I managed to center clock using third method from first post and Ticklefish tool (great tool, btw), but now i need some help with two more things.

First, i need to completely remove battery icon from statusbar. I'm using stock .587 if it's relevant in any way.

Second thing is a bit tricky, i'll try to explain...when first notification appears, it's icon is located on left side of sidebar. When second notification comes up, it moves that first icon to the right, and places it's own to the left. So, it goes like this: 3 2 1... and i need it to be 1 2 3 (oldest notification to stay on the left). Is that possible?

Thanks to everyone who can help!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Tickle My Android is a great tool, isn't it? I must compliment the guy who wrote it..oh, wait..that's me! Lol

Removing the battery icon can be done quite easily if you're on ICS and a little less easily if you're on an earlier version. On ICS, just delete the battery icon line in your status bar xml.

If you're on a different version, let me know which and I can run through the different possibilities.

As for the order of your notifications, this I think is a smali thing. I don't know what you need to do here but I'm sure some of the clever people here do!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Yeah its smali thing. Its kinda the same problem i had with the alarm icon. I tried to rearrange the sequence but just made it worse. But it did moved!!! Lol.:p So if u don't know what u doing, don't do it. Coz it'll be a pain.;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
@Ticklefish; Would it be a problem if i just remove this line??

"android:layout_orientation"

And how to make the status bar background still?? I want add something on it but it dosen't centers out. Or is there another way to add image/icon in the status bar background.

Thanks in advance.;)

Regards,

Sdojoin

Use'em THANKS Button;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
sent using the xda app!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, the general answer is to try it and see what happens. Experimentation is a good way to work out what all this code does.

Specifically though, why do you want to delete this line? And where is it?

What do you want to put in the status bar background?

sent using the xda app!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sdojoin:
Just finish experimenting.:p Everything worked out great. Now i figured out how style my dropdown status bar.;)

Regards,

Sdojoin

Use'em THANKS Button;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jdh2001:
I tried using both methods 1 and 2 to center my clock. It centers the clock but also brings the battery and signal cluster as well. Any help with what line I need to edit to keep them to the right? Thanks.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Sure. Just share your xml and I can take a look.

sent using the xda app!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jdh2001:
Here is my xml using Method 2. I also attached a screenshot. Thanks for your help!!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Oohhlala:
plz look at my status bar.xml and tell me how to add carrier label to the left of statusbar. i tried some way like this

<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">

<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:background="@drawable/carrier_logo" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />

but it's width is too big so there was not enough space for notification icon as missed call, facebook, sms.

and if you know, plz tell me how to add day of week to the left of center clock on statusbar like this :
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Code SyGma:
Im stuck :confused:

Could you do mine for me please? As i have no experience doing it myself haha!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, you have the right idea. Try using the textSize parameter.You may have to experiment to get the right size though. Try using android:textSize="10.0dip" first and then changing the value until you're happy.

However, with a centered clock, you may not have enough room for the carrier label anyway..

To add the day of the week really depends which version of Android you're using. 4.2 has a new feature that lets you do this easily. Any previous version though will require someone to make a clock with the day of the week on the left in code. Best to speak to a dev for that.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I'm always happy to help if I can! It is worth mastering this stuff though. It's the first step in doing your own mods. :cool:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
TickleFish please do yhu have dis battery mod & is it possible to have a clock like dat in Tabbed SystemUI?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Code SyGma:
Shall i upload my systemui.apk?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
And framework-res.apk, yes. I should be able to do it for you either today or tomorrow, if I'm lucky.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Didik ramadhan:
+1
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
No, but I do have the same sort of thing in white.

And for the clock, you either need 4.2 or to talk to a pro like serajr to make it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
thanks brov......!!!:good:

need yur response at Xperia T tab & center clock thread
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firda4415:
Ticklefish, how can I arrange my statusbar to be like this? and with the color if possible.. :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Seems simple enough, although I don't know where your notifications are supposed to go. Nor where your status icons like Bluetooth, GPS and so on go.

But it depends on what version of Android you're on. You have to have a separate line for your signal, WiFi and battery icons.

If not, then this can't be done.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firda4415:
the signal & wifi will be on the left side, the icons like gps, bluetooth etc etc is beside the battery icon. I'm using stock android 4.0.4..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Excellent. Then this should be do-able. Can you share your framework-res.apk and SystemUI.apk please? And I'll show you how it's done. Hopefully I'll get this done tonight, if not it'll be the next few days.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firda4415:
I've attached the zip file containing my SystemUI & framework-res.apk. Hope you can hepl me sorting this up :fingers-crossed:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] XxlemonxX:
If you get this to work for android 4.0 could I use it for miui ( ICS ) aswell? I have an HTC one V and this is the last thing I need for a complete iOS device haha :))
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mr.nou:
What about.move wifi and data icon to the right side of signal?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Nepythys:
Ticklefish, I followed all your methods but I can't really make it, System UI force closes all the time.

My best attempt ended up like having my status and notification icons on the left and clock halfway from the center to right.

I want to move my clock to center and everything else as is... notifications on the left and status icons, battery, signal on the right.

I'm using the SystemUI.apk from Xperia T on my Xperia S

Mind doing it for me?

Here is my framework and my SystemUI

https://rapidshare.com/files/1465729430/New WinRAR archive.rar
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Thanks, I'll sort this out as soon as I can.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Sure, but MIUI has different code although the principle's still the same!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Now there's a dramatic picture!

I did get your pm about this. I'll show you how once I get to my pc.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mr.nou:
I had ake trial and error but i'm not find the solution

1st i tried on arrays.xml on framework

Move position data n wifi

But there's no change

I want make it real cz i think wifi n.data icon on the right side on signal

Will be look nice

Lol

Could you learn me?

:p
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mr.nou:
It's my data position now

I still tried what u say dude

Signal_cluster_view.xml

But i'm not found to make it move

:confused:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Hey..this thread has been featured on the main website!

http://www.xda-developers.com/android/changing-the-android-status-bar-clock-color-for-beginners/

Many thanks to whoever recommended it! :cool:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mr.nou:
Ooh thanks so much i will try now

Ure the best man:beer:

---------- Post added at 02:28 AM ---------- Previous post was at 01:52 AM ----------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sutyi:
lockscreen clock

Hi!

Can i center my ICS wave lockscreen clock with this tool? I mean: http://dl.dropbox.com/u/103358906/Screenshot_2012-10-18-00-52-29.png

thank you!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Code SyGma:
Hey ticklefish! If i upload my CM9.1 status bar, can you center the clock and show a battery percentage icon near the battery icon? :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This is mainly about centering the clock in the statusbar. You could use what's mentioned here to help you get to grips with your lockscreen code.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This close to Christmas, I can't really take any more requests on. You can share your statusbar's xml here and I can show you what to do.

And putting a percentage next to the battery icon is a smali job, which is still over my head.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Code SyGma:
Well can you just post the instructions on how to do that?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ZN6:
I like the tickle way fish.

Oh I mean Ticklefish way:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Yup. That's what the op is all about. Cyanogenmod code will have more lines in it, but the principle is still exactly the same.

Actually, if you're on CM, don't you have the option to center the clock in your settings app anyway?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Code SyGma:
Doesnt have it in CM9.1 :( but can you give the instructions to place a battery percentage icon near battery icon?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Really? That's odd, I wonder why they got rid of it..

Anyway, I don't know how to add a percentage next to the battery icon. I just use a percentage-style icon.

Adding a percentage involves smali and that's still a mystery to me. Best to ask someone like serajr since he's done it in his SystemUI mod.

Oh, and once you know, post a tutorial!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
If you don't see those icons, then you can safely ignore those icons. In fact, you could probably delete them. Those lines are meant for tablets and phones with no physical buttons for Home, Back and so on.

You can still use Method 3. It does require ID's for most elements of the statusbar but you can add those using '@+id'.

Basically, your code looks a bit more complicated than most but it still makes sense.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
Could you be so kind to help me with this problem :( (http://www.subirimagenes.com/imagen-screenshot2012122714-8205693.html)

Use Method three
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Now there's an interesting wallpaper....ahem...

So you've taken the clock code from your status_bar_expanded.xml and copied it directly into your status_bar.xml.

Nothing wrong with that in theory, but the expanded clock is too big.

Probably the easiest way to fix this is to add the parameter 'android:textSize="16.0dip"' to the clock line.

If this isn't quite right, adjust the value of the textSize to your personal satisfaction.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
Sorry to bother you so much but I can tell exactly where I should add (android: textsize = "16.0dip") I find it hard to tell because I do not have any knowledge about it:(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
You'll have a line in your status_bar.xml that starts something like "<com.android.systemui.statusbar.clock" and will have lots of different parameters in it. Add "android:textSize="16.0"dip" to that line.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] RiPPLE_92:
Worked For me also thanks :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] RiPPLE_92:
the clock is a little up from the center of the status bar ... how to fix that ?? (sorry I am new to these kind of modifications so bear with me :) )

OK now fixed with help from this post :) http://xdaforums.com/showpost.php?p=31789521&postcount=232
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kempex:
Finally...my status bar look nice.

but i need to retouch it again, i want to reduce space between my signal icon, i've been find the way by resize icon size, it's that true? Or it can be done with some xml editing?

And i need find the way to resize my status bar clock, to make it more bigger, i think to add android:textSize="16.0dip" in com.android.systemui.statusbar.clock , can i do that ?

Device Hisense e910 OS Stock Gingerbread
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vyolent:
Hello Ticklefish,, can you help me center clock my systemUI :o

I had an error in decompile^^

Thank you so much before:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, it really depends on your device's resolution. That parameter will give your clock a size of 16 Device Independent Pixels. Try it and see what it looks like. It's possible you may have to change the value.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
What error did you have?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
Great tutorial! But...

Don't think it's supposed to look like that lol

Any idea what might have gone wrong?

TIA
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I think I'll need to see your code..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
need some help please

i managed to get the clock centered with method 1 and 2. Everything works fine so far.

But:

I am on JB 4.2.1 and if i klick on camera app or use daydream and the screen goes off, or better phone goes in daydream, the the systemui stopps.

First i thought it depends only on daydream, then i figured out that this is also with the camera app....my conclusion is, that the change of or the shut down of display/screen cause that issue.

But i cannot find something in systemui? Perhaps i messed something up? or do i have to include something....additional to my changes of center clock?

Many thanks for your effort and help
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Have you already tried: center_vertical and/or center_horizontal?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
^^^this
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
:confused: what does it mean?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
http://xdaforums.com/showpost.php?p=31789521&postcount=232
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Ah now i understand. But is this the way to align the already centered clock to the top, as he was asking for?