yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LfcFan1977:
I've tried so many different things, I should have writen the all down.

Tried the ones below but no change to the clock position and no statusbar FC's.

Just wondering if it something to do with a gap at the top of the font glyphs, going to try a different set.

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"]android:gravity="center_vertical"[/COLOR] android:textSize="26.0sp" android:textColor="#ff33b5e5" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"]android:gravity="center_horizontal"[/COLOR] android:textSize="26.0sp" android:textColor="#ff33b5e5" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"]android:layout_gravity="center_horizontal"[/COLOR] android:textSize="26.0sp" android:textColor="#ff33b5e5" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"]android:layout_gravity="center_vertical"[/COLOR] android:textSize="26.0sp" android:textColor="#ff33b5e5" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Yeah got the status icon aligned to the right ok

<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true" />

EDIT

After trying different fonts (that I've used previously) and getting stuck at the splash screen, I've decided to stick with android:textSize="22.0sp" and crack on with the rest of my statusbar theme.

The size looks ok, if a little low. Thanks all
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, 'center_vertical' and 'center_horizontal' won't help as 'center' does both of those already.

The best way to resolve the clock, or any other item, being a bit too low is to add the 'android@paddingBottom="?dip"' parameter. Just replace the question mark with a number. You may have to do a little trial and error to get it precisely right.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Is this your modded code?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
The changes in the tutorial won't cause these problems. How did you put the apk file back on your phone?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
Yes it is. I actually got it to work with the second method but in curious as to what I did wrong with the first one. If you don't have the time to look at it no problem because I got it working another way. Thanks again
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
I recompiled the Systemui.apk with apktool, extracted the status_bar.xml with 7zip and morphed it with universal flasher back to the phone again.

Edit:

Wasn't sure whether i tried it with recompiled complete systemui. So just did it again and have same issues.

I also tried yesterday half of the last night, to get it running propper with your 3rd method. The issue that systemui stopped and closed, when display shuts down or camera app starts is gone, but till now i did not get it sorted in the right way. Problem for me at the moment is, because i have several options to choose in battery symbol and text and in signal symbol and text....

At the moment i am rather frustrated and not sure whether i continue or stopp this "project". Even because i think, JB CM10.1 (4.2.1) will get the center clock option to select also in the next future updates anyways....
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
I got it fixed!!! Yeah and strike and hopefully finally....

I took the system_bar xml from an other custom rom based on same source, then modified it with method 1.....and replaced it to actual ROM and it works :)....at the moment without any issues.

Perhaps i will try it again with method 2 too. But at the moment i am lucky with this and perhaps take a rest till ....tomorrow perhaps :).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LfcFan1977:
Clock Size Problem

Started with this.

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="22.0sp" android:textColor="#ff33b5e5" [COLOR="Red"]android:gravity="center"[/COLOR] android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Changed to this. Instead of being pushed up, it cuts off the bottom.

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="22.0sp" android:textColor="#ff33b5e5" [COLOR="Red"]android:paddingBottom="6.0dip"[/COLOR] android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

I was thinking, if it chops off the bottom then perhaps it will chop off the top. No such luck.

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="22.0sp" android:textColor="#ff33b5e5" [COLOR="Red"]android:paddingTop="6.0dip"[/COLOR] android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Any other suggestions?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Could it be that something limit the hight of the included icons?

If its not an irritation from the screenshot, you have a lighter blue line above the statusbar. Seems like the upper part of a frame?

But only on the third picture the line goes complete through the screen. On the others the line is only on the left 3rd of the screen.

Perhaps you can try to change the statusbar background? Or is the blue line included from or with one of your changes?

Just my thoughts....and what i think i could see on the pics :).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
The blue line a battery bar:) it's changing because his phone is charging
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LfcFan1977:
Sorry for the confusion. Yeah it is from T.E.A.M. battery bar app, it sits infront of anything that is displayed and not actually a part of the statusbar.

All the 38x38px icons fill the statusbar perfectly, left and right of the clock.

I am almost convinced that the alignment problem is due to the font glyph having a blank area above the visible number. Unfortunately I can't seem to replace the font file to confirm this.

However, due to the fact that I can crop off the bottom with padding, I wonder if there is a way to crop off the top.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nabeelahmad909:
Can u tel me which xml file have menu icon text color seting and seting menu text colors xml file.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ssojyeti2:
I'm working on it I think I have almost figured it out

---------- Post added at 07:36 PM ---------- Previous post was at 07:33 PM ----------

The android padding bottom just cuts oft parts of the clock
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] alobear:
Hey tickle fish, everytime i try using method 1 it works but i get two clocks.

when i try to use method 2 i get two clocks and battery, signal strength and clock are in the middle, while a clock on the far right.

i've tried method 3 but will not compile.. any help please?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Yes...which is odd because android:padding is meant to move things. I wonder if it might be worth trying android:paddingBottom but also changing the layout height to "wrap_content"?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LfcFan1977:
I have tried both of these but they appear the same as my second screenshot from post#313

android:paddingBottom="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
android:paddingBottom="6.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />

Going to try a couple more things later.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
try method 3 does not work in 7.1 Serajr systemUI of

battery icon is not fixed using Method 2

Could you help:confused:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ShyPixie:
Very good!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] KageBeast:
Ok so I tried the gingerbread way and got the clock centered, but I want the status icons to be pushed all the way to the right if somebody can help me with that.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Yep. Share your code and I can see what you've done and what you need to do. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] KageBeast:
I got it. I forgot to change something. Now I want to push the status icons all the way to right while still keeping the clock centered if that's possible because there's a little gap between the end of the screen and the icons themselves. I Updated my previous post with a new screenshot of what I mean

<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<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" />
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center" android:id="@id/clock" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.5" android:layout_alignParentRight="true" />
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Try changing the layout_weight of your statusicons to 1.0.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] KageBeast:
Sheesh I can't believe it was that simple but that worked thanks.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LonelyLife:
2

I use method 1 and i make image trasparent with name status_bar_background and go value/drawable.xml delete line <...status_bar_background ..> . It work fine for me,i think it is 1 method

thanks you very much!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kempex:
I wont to move my battery icon to the left, please give me advice
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Depends on your code really. If you're on the same ICS as the op, all you need to do is move the line for the battery icons into the LinearLayout with the notification icons.

That's your first hint. If you're having trouble, feel free to share your xml. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kempex:
Sadly, i'm still on gingerbread :( ,

Here my status bar.xml

http://db.tt/wL2QzyhV
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kempex:
Thank's for explaining :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stat_no_sim" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">

I hope your help:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I'm working on this and I have a suspicion about what's happening. I've done a few mods of serajr's latest SystemUI and I've noticed something a little strange. Nothing that will cause a problem though. Leave this with me and I'll get back to you.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
Thank you very much for your time and disposition:good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rjpurk:
Bump this :D

i'm from the same rom, but i also have this issue and im waiting for a solution :fingers-crossed:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mr.nou:
Tickle

What the solution?

I had tried move clock to center and add carrier logo on serajr sysUI tabbed.toggles

But i've got error when recompile
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Yeah, I've figured this out now. Got Method 3 working on 7.1... :D

However, it's 3:10 in the morning here now so I'll just have to post all about it later..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
Glad to hear that from you'll be waiting:laugh:

serajr hopefully not make too many changes in the Next Version

for their work so it can be used
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Right, I was going to post about this in more detail but time just isn't on my side right now.

Basically, you'll get a fc if you delete the '@id/icons' LinearLayout. Not sure why, but I've encountered it before so it may just be an Android quirk.

Insert the whole RelativeLayout just before that LinearLayout and add the parameter 'android:visibility="gone"' to the LinearLayout. That way, the code is still there but your phone will ignore it.

Hope this makes sense!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
the truth is very difficult for me because I speak English enterle and use the google translator

this is what I did

<RelativeLayout'android:visibility="gone" <LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" android:layout_alignParentLeft="true"/>
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_toRightOf="@id/moreIcon" />
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:layout_centerInParent="true" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true"/>
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" android:layout_toLeftOf="@id/battery" />
<ImageView android:id="@id/stat_no_sim" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:visibility="gone" android:layout_gravity="center_vertical" android:layout_toLeftOf="@id/signal_cluster" />
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_toLeftOf="@id/stat_no_sim"/>
</RelativeLayout>
</LinearLayout>

gave me error when compiling

sorry to be so useless in these matters
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
I had the same problem, could solve it only with the "workaround" of connecting the device via usb to pc or if external sd card is included and was scanned....

Because i could not solve that "bug", i changed to method two, which was a bit more tricky, but problems are gone now :).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

I've had a few people saying that Method 2 doesn't work quite right. They tell me that the clock centers but the status icons don't line up with the right of the statusbar.

So I've done a bit of thinking and a bit of experimenting and I've updated the op with Method 2.5. Check it out and let me know how it works for you!

I've also updated the op to make all the lines of code a bit more readable. The results are a bit mixed but hopefully the new formatting helps it to make more sense. If it doesn't, again please let me know!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] avirale123:
Excellent friend is working 100%:laugh:

A million thanks for sharing :good:

makes for more proof in SystemUI

later he reported:fingers-crossed:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] str3tch72:
Odp: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

Can You give me some tips to move clock on CM10? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] plegdroid:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

afternoon, the op will also work on cm10 & cm10.1 verified :)

@Ticklefish, nice rewrite of the op :)

ⓐⓝⓓⓡⓞⓢⓘⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

The exact code will be different on different rom's but the theory is still the same.

I'm always happy to help if you are having trouble but I do ask that you try your best first. :)

And thanks! I hope it all makes more sense now!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

Usual questions before I can take a detailed look at this..

Did you get any de/recompiling errors? Did you sort out the META-INF folder and resources.arsc?

Also, is this a mod of serajr's SystemUI?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
compiled successfully brov with thorough code checking.... am using Serajr v7.1!

Did you sort out the META-INF folder and resources.arsc? dnt understand dis... i just recompiled & make a flashable zip & flash!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

That might be the issue. You need to extract the META-INF folder from the original apk and add it to the new one. That'll ensure it's still signed correctly.

Then you need to extract resources.arsc from the new apk and add it back again with a store compression rate.

I've noticed with serajr's mod that you can get force closes if you delete some lines. Even there's no obvious reason why you should. Have a look at my mod of his mod and look at my statusbar.xml to see how I've gotten around it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
will do dat right away buddy... thanks a bunch for always been there!!!

but what do yhu mean by store compression rate? cant i just drag inside tha zip archieve?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

No. It has to be inside the archive without being compressed. I don't know if Winrar has the option but 7zip does.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
i should just copy & paste right..... thanks buddy!!!

just download yur SystemUI Mod!.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
If you copy and paste resources.arsc, it may end up compressed. You have to make sure that it's in the archive at the same size as it is outside of the archive.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] NUNsLAUGHTER92:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

Great guide, thank you.

"You know, a long time ago being crazy meant something. Nowadays everybody's crazy."
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
Sorry, you are limited to 8 thanks per day
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Re: [TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!

Cut the DigitalClock line from statusbar.xml and add it to statusbar_tracking.xml. I've put AnalogClock on my tracking xml but have a look at the layout parameters I've used as a lot will apply to DigitalClock as well.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
Brotha please break down a lil bit... dnt understand at all!!!

> How can i center tha clock

> Incase i wanna remove clock from status bar & add to status bar expanded, how will i? cos i see some codes yhu add in status_bar_expanded.xml

just confused.