No..but that's because the status_bar.xml is different. The same sort of thing can be applied to Gingerbread though and the clock can still be centered. If you can share your xml file, I'll show you how.work it on 2.3?
No..but that's because the status_bar.xml is different. The same sort of thing can be applied to Gingerbread though and the clock can still be centered. If you can share your xml file, I'll show you how.work it on 2.3?
Isn't it for gingerbread and below only??
It's not 100% compatible with ICS just yet. Some files de- and recompile without any issues and some don't. I'm waiting for the next apktool to be released which will make it 100% compatible.Isn't it for gingerbread and below only??
Or Mr.tickle already updated it to work with ics?
Personally I prefer step by step editing the code.
But it's alright to use that tool if compatible with ics already.
This is the status_bar.xml from my tablet. The tablet's still on Gingerbread so your code won't be very different.work it on 2.3?
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:background="@drawable/statusbar_background" android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" android:paddingLeft="6.0dip" android:gravity="center_vertical" />
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentRight="true" android:paddingRight="6.0dip" />
<com.android.systemui.statusbar.Clock android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="left|center" android:paddingRight="6.0dip" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:animationCache="false">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0dip" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:background="@drawable/statusbar_background" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="6.0px" android:gravity="left|center" android:paddingRight="6.0px" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.StatusBarView android:background="@drawable/statusbar_background" android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]">
<com.android.systemui.statusbar.Clock android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:paddingRight="6.0dip" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:singleLine="true" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentLeft="true" android:paddingLeft="6.0dip" android:gravity="center_vertical" />
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentRight="true" android:paddingRight="6.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="@drawable/statusbar_background" android:id="@id/ticker" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:animationCache="false">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0dip" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:background="@drawable/statusbar_background" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="6.0px" android:gravity="left|center" android:paddingRight="6.0px" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:singleLine="true" />
</com.android.systemui.statusbar.StatusBarView>
Just had a look and I can see why. That'll teach me to stop doing this stuff while I'm at work!i copy all your code into systemui from my rom and i got clock in status bar in left
whooaaa~ great thanks >,< :good:Done. I used the same principles mentioned above and did it in a few seconds. This can be pushed back to your phone, just make sure you get the permissions right.![]()
Yup...and I did!whooaaa~ great thanks >,< :good:
but it's still little prob bro :fingers-crossed:
the signal go left position but the clock too hehe
can you fix it?? thanks![]()
oyeah thanks very much >,<Yup...and I did!
android:paddingRight="6.0dip"
Can you share your code?First, thanks for this tutorial. But I have this little problem:
When I reboot my phone, status bar is all black and it remains like that until I receive a notification. Can that be fixed?
Sent from my ST15i using xda premium
<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:id="@id/ticker"[/COLOR] [B]android:background="@drawable/status_bar_background"[/B]
<LinearLayout android:orientation="horizontal" [B]android:background="@drawable/statusbar_background"[/B] [COLOR="red"]android:id="@id/ticker"[/COLOR]
Yes..but I would need your framework-res.apk and SystemUI.apk to do it. Your XML might be different from mine.Can someone make a flashable zip for this???
Sent from my WT19i using xda app-developers app
That's some very good questions!I have a question, in serajr code the order is this:
and Ticklefish is this:Code:<LinearLayout android:orientation="horizontal" [COLOR="Red"]android:id="@id/ticker"[/COLOR] [B]android:background="@drawable/status_bar_background"[/B]
Does the order matter?Code:<LinearLayout android:orientation="horizontal" [B]android:background="@drawable/statusbar_background"[/B] [COLOR="red"]android:id="@id/ticker"[/COLOR]
And if I get this right you are drawing the status bar background on top of the clock so it "hides it" , am I getting this right?
I ask because I am trying to make a theme and I want to know what to do next with the status bar background drawing thing, so I can use it to my advantage.
I had to attach status_bar.xml because i have a problem inserting code (something to do with 10 posts requirement).Can you share your code?
So when you get a notification, your status bar returns to normal?I had to attach status_bar.xml because i have a problem inserting code (something to do with 10 posts requirement).