yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lordgoata:
Hi all, I've been playing around with the status bar on the Xperia Z, and have a couple of questions. In order to visualise what the heck is going on, I have assigned background colours, and padding to all elements. Welcome to Psychedelic Statusbar ;)

I've broken down the sections of the XML to determine what each one does:

Red is the complete status bar (@id/status_bar_contents)

Pink is the left hand container (@+id/statusbarleftside)

Green was the notifications container (@id/notification_icon_area)*

White is the user notifications (@id/notificationIcons)

Blue was the system notifications container (@id/system_icon_area)**

Cyan is the center container (@id/clock)

Brown is the right hand container (@+id/statusbarrightside)

Light Orange is the right hand container content (@+id/statusbarinsiderightside)

Orange is the system notifications (@id/statusIcons)

Yellow is signal/battery cluster container (@id/signal_battery_cluster)

* In the original XML with the clock on the right, all the space on the left (now the green area) was for both types of notification icons.

** In the original XML with the clock on the right, the blue section housed all the system notification icons.

In the XML, the green area is not a typical LinearLayout, but rather calls com.android.systemui.statusbar.phone.IconPartitioner, and contains the white and blue areas. The white area is also not a LinearLayout, but rather calls com.android.systemui.statusbar.phone.IconMerger. Lastly the blue area is a LinearLayout.

From doing some research in AOSP, it appears that the IconMerger handles the user notifications so that when they do not fit into the container, it will show the "more" icon and truncate them (which appears in the pink container when it is enabled).

However, I am at a total loss as to what IconPartitioner does.

The reason I am trying to fathom all of this out is, when I did the original mod, I moved the while blue container (@id/system_icon_area) into the light orange area (@+id/statusbarinsiderightside), but every time I tried, SystemUI would crash. The only way I managed to get it to work, was by moving the orange container (@id/statusIcons) by themselves, and leaving the blue container where it was in the code (namely nested within the IconPartitioner).

I am guessing that IconPartitioner therefore requires two nested elements in order to function (due to the fact in the original it held both the user and system icons (with the user left aligned and the system right aligned), that it takes the two nested LinearLayouts, and does the justification on them automatically. But that's just a guess.), so that maybe what was causing it to crash.

Any ideas ? Or more to the point, if I leave the blue container where it is, is it likely to cause any problems ? Or can I remove the IconPartitioner completely (after all its effectively just duplicating what the new @+id/statusbarleftside container is doing now) I'm still playing around with things, but thought it worth asking here in case anyone knows.

Thanks guys, and especially to Mr TickleFish for the awesome tutorial(s) :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Your code looks fine to me. If there was anything wrong with the syntax, you wouldn't have been able to recompile the apk. What did you do when you recompiled the file?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, before I say anything else, I just have to say that I am loving your funky statusbar! :cool:

Anyway, you've done some seriously impressive research here. IconPartitioner is a puzzler but the good news is you can just leave it there. It won't cause any trouble at all.

If you figure out quite what it does, let me know! :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Because there's no reason for it not to.

You've essentially used Method 1, although you've put your centered item towards the end of the xml. Not that that's a problem.

Basically, your TextView LinearLayout sits on top of the icons and the ticker Layout. So your icons overlap the text because , from their point of view, the text isn't there.

To get the icons to recognise the TextView and not overlap it, you need to put the TextView in the same LinearLayout. It needs to go into @id/icons.

And, if you want it centered, the best solution I've come up with so far is to use the second method. It's not perfect, Android just isn't set up for a central clock or TextView or whatever, but it does the job!

Have you Tickled Your Android lately?

(tinyurl.com/ticklemyandroid)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
No, thank you for all your hard work! :cool:

Have you Tickled Your Android lately?

(tinyurl.com/ticklemyandroid)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Pangkoy08:
Hello ticklefish, how are you doing?

I do have a question, this code is perfectly working and im not sure if this still needs adjustment if i wanted to have the softkeys not working when lockscreen is turned on or have them completely display but not functional. Below is the screenshot.

I also wanted to know if this is because of the status xml bar or a different xml? Oh and one more thing when im playing a movie on landacape mode the softkeys will disappear and will tell me unfortunately the system ui is not functioning.

Sorry to bother you again on this one mate.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Your softkeys shouldn't be even showing on the lockscreen, it does kinda defeat the purpose of having a lockscreen!

Softkeys are laid out according to your navigation_bar.xml, but that doesn't control them showing on your lockscreen. It's worth looking in the various xml files in the actual lockscreen apk, whatever that is. Although this may be a possible smali edit.

I've no idea why you can't watch movies. There's nothing about the changes we made to your statusbar.xml that would cause that.

If you're using a third-party rom I'd suggest asking the rom's developer.

Have you Tickled Your Android lately?

(tinyurl.com/ticklemyandroid)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Pangkoy08:
Hey [MENTION=4315551]Ticklefish[/MENTION], thanks. Its working great now.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
Thanks ! Yes it's CM10.1

I will test that :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xyyxpp:
I love you:o

but..you see the screenshot:(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Hmm..try changing the layout_width of the statusbarleftside line from '0dp' to 'fill_parent'.

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xyyxpp:
Ah...Working fine now but still have some problem..

but never mind,now is ok:laugh:

thank you:good:

Tickle My Android I have tried before...but install fail:(

then i give up:rolleyes:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
At what point did your installation fail?

I've got version 7 to release over the next few days..;)

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xyyxpp:
Forgot...just remember error..

I will try it after you release version 7:D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ghostbusted:
Is Tickle My android support multi sim systemUI?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Did you get this sorted out eventually?

Version 7's now available for download. Head to tinyurl.com/ticklemyandroid to get the link. If you still have any problems installing it, post about it in that thread and I'll be more than happy to help out.

Yup. TMA supports practically every type of Android. :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
Hi [MENTION=4315551]Ticklefish[/MENTION] im trying to make the clock in the center of the status bar,but im always having errors,i guess i cant figured out what line corresponds to every stuff in the status bar,can you give me a hand? i already did some stuffs before like transparent status bar or 0.00kb in the status bar,but i cant make this...here is my statusbar.xml

http://db.tt/7wLDPwzo

also i want to ask you can you send me the strings of your awesome tool tickle my android? i want to translate to spanish

also you have seen this ? it can decompile and compile files in your device! its awesome when you are not in your computer!

https://code.google.com/p/apktool/

thanks in advance master !
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
Thanks Im Using A Ported SystemUI from JB, Im using ICS a will try to compare the codes to see what i need to do,i alredy replaced your status_bar.xml in my SystemUI but didnt work :p

PS:

Im starting making the translation! :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
Ticklefish!

Some help would be very much appreciated, attempting to get the centre clock on my Xperia T JB (latest firmware)

I've got this far:

Trying to work out how to get that vibrate icon over to the right with the battery and signal. Can't work out what's controlling it. tried moving various things but either results in a compiling error or systemui FC. It also may be due to me moving stuff but then needing to adjust parameters but not sure what to move.

this is my status_bar.xml: http://www.mediafire.com/?jw83n66gftduklv

It'd be awesome if you could help out, but also let me know what to do as I'd rather do it myself and learn then I can further edit and move things around the status bar (hopefully haha)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I had a suspicion about what was causing this and, looking at your code, I was right.

I could tell you precisely what you need to do if you want.

But since you want to learn, which is a great attitude, I'll give you just a hint for now. That's a status icon..

Hopefully that hint'll be enough but I'm always happy to give you more information if you need it. :cool:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
okay cheers! I think i had it down as 'moreicons' or something like that! cheers for the hint, I'll look over it again and try fix it
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
The 'more' icon is what shows when you run out of space for notification icons.

It all makes a sort of sense. Sort of.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
cheers! my issue now! thanks for being patient, I bet you get this a lot :P

I have no reason to believe that this should not work:

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

yet it won't compile for some reason :/

I'm not sure weather I need </LinearLayout> at the end of that little bit! i also tried that but failed to compile, if I do put it in when I check what </LinearLayout> is linked to what it is all over the place, so a little lost

<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<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" />
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
Cheers, that was useful.

Though is yours the simple method rather than separating them into left, right and centre. As I can't see any @id/statusbarrightside or @id/statusbarleftside in your code
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
You don't need an end tag at the end of that line...there already is one. That's what the /> is.

If you're having compiling errors, it's worth sharing what those errors are as they will actually tell you where the problem lies.

Oh, it is the second method. He's just not used the three id's. They're not really needed, but they do help people to understand which parts of the code affect which parts of the statusbar.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
At first it said something about it being badly written, which I've now solved.

Then it wouldn't compile because of stat_no_sim not having an id, so i've added the id. It now has compiled but when I put it across it leads to a SystemUI FC
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
What are you using to compile with? And what do you do with the apk once it's compiled?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
I use apktool. Once I finish I copy the meta-inf and androidmanifest from the original SystemUI to the newly built one. my current SystemUI has the clock centred, notifications on the left, everything else on the right, other than the [MENTION=4378624]statusi[/MENTION]cons which for some weird reason is in the middle. as soon as I try to move it, it causes a FC. I think everything is in place and fine, tried a variety of different places in the layout to put it, leads me to believe it's the actual bit of code that is wrong.

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<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" />

This is the code in question.

When I was reworking it ended up under stausbarleftside, but within the parameters of the notification zone. and was only the first line, the stat_no_sim was not there.

If I move it down to the statusbarrightside with either just one or both, it will compile (since I added the stat_no_sim ID) but then FC when in /system/app/
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Can you share your xml please?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
Cheers! http://www.mediafire.com/?ciie5goe5r9ov9u

I know that the statusicons shouldn't be up there where it is (you'll see)

but if i try to move it down to where I want it to be it just won't work.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
TK always ready to help!!!!

great thread.... missed alot.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
Yeah my current one, that has the centre clock but vibrate icon in the centre too doesn't have stat_no_sim in it. not sure how it ended up like that, but it works. I've tried adding the stat_no_sim line as well, but also leads to a FC.

The code I used from yours leads to a FC, my phone just booted, I'll add the stat_no_sim line underneath it and add the ID and see if that works. but unfortunately I'm pretty sure I've tried that, but I'll see

EDIT: as I feared, adding that stat_no_sim line also lead to a FC, I also added the ID in IDs.xml. no idea why this isn't working.

I'll reupload my status_bar.xml with the added line to make sure that is actually correct

EDIT2: here is my status_bar.xml and ids.xml

(the ID is right at the bottom, it is as I believe it should be

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

http://www.mediafire.com/?5mwl6ey14b52x4f
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Can you share your apks please?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
This is the one on my device which partially works:

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

This is the one with amendments that should put the status icons on the right but won't work:

http://www.mediafire.com/?6oqnvidbsyk7l4r

Appreciate your help by the way!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
My pleasure. :)

Can you share your framework-res.apk as well please? I'll need it to decompile those SystemUI.apk's.

Can you share your files please? Oh, and please use the CODE option when quoting code. Otherwise it ends up full of smilies and random spaces.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
New Tutorial Out Now!

Some of you reading this may be aware that it's not my only tutorial. I've written quite a few others, most of which can be found in this very forum.

And now there's one more. It's over on the Xperia Z forum but it applies to any Xperia phone running ICS or above. It's all about how to remove the battery icon....the awesome way.

If you're interested, head here: http://xdaforums.com/showthread.php?t=2417364

If you're not...er....then don't head there. lol
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
Sorry for that, here is the One wich works,but the alarm and vibrator icons are in the middle with the clock :

http://db.tt/At3FlSNa

And These One is the One i edited moving stats_icon to The right, wich i can compile fine but doesnt work and i get FC :

http://db.tt/fkqwwDwk

Thanks Again Master!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
My mistake, here you go:

http://www.mediafire.com/?zh8f5i4s4w6rys9
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
So..nearly half ten on a Saturday night..I have a cold beer in my hand...and what am I doing? Fiddling with xml and modding Android apk's...boy, do I know how to live!

Anyway...give these a try and let me know what happens. :cool:

Try TryMeFirst.zip first. If it doesn't work, then try TryMeSecond.zip. Imaginative filenames, no?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Sorry, this is my fault. I actually meant could you share your apk files? :o

If you're having the same problem as matt4321, it's worth waiting to see what happens with the mods I made for him. :cool:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
And what do I have to do on my Saturday night? Flash zipz made by ticklefish ;)

Both of them flash and work, but the status icons are next to the clock, weird right? I'm gunna decompile the ones you did and see what's changed
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Hmm...give this a whirl. And can you provide a screenshot of the result please?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
This is how it was before and it stayed this way after flashing all 3 of them
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
[MENTION=4393511]matt4321[/MENTION] you should try to put the file manually with some app like root explorer,cause maybe the flasheable zip its not compatible with your phone.
[MENTION=4315551]Ticklefish[/MENTION] no problem bro i Will try to upload my files asap, thanks for your time
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
already tried it ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, I've found out what's causing this problem. For some reason your apk isn't compatible with the preparing function. I'm working on that right now, but in the meantime, you can prepare it manually.

I'm busy testing command line archiving tools as we speak to find a fix for this.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Right, I think I've got this fixed now. Give this a shot.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
SystemUI FC :( how am I the only one to find the issue? is it a problem with the decent method on JB for modern xperias or something
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This is my Xperia Z, running stock 4.2.2...

I did have a lot of problem preparing your apk. 7zip, which I used in the preparing process, wouldn't recognise it and I've been unable to track down precisely why..

This is from a stock Xperia rom, right? I'm going to try this again. If the zip in this post doesn't work, then I'm almost out of ideas. I know I'm full of beer and distracted by old episodes of American Dad but I can't think of any logical reason why it doesn't work. It's possible your apk could be slightly corrupt or something. It may be worth taking the stock apk and modding that.

There are two zips. I can't remember how many we've got up to so I've just called them TryMeFirst and TryMeSecond again.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
Hi ticklefish these are my files

http://db.tt/YmKoqzhP

I make the status icons to the right but also moving the notificaton icons,we need to know how to "divide" this line

<com.android.systemui.statusbar.phone.IconPartitioner android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0"> <com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />

</com.android.systemui.statusbar.phone.IconPartitioner>
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matt4321:
Unfortunately this doesn't work either. really weird, I'm going to decompile it though and have a look, since I can test on my device so it's easier.

I appreciate your help, don't worry about it though, you've been great
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dakshpokar:
please help me to move clock on right side on status bar

please help me to move clock on right side on status bar
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Where is your clock at the moment? On which rom you are and can you provide us your code? Without some mor information, I am afraid no one can help you....
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] attack11:
Thanks but, doesnt work , i will look at your changes and try to recompile myself,Thanks!

I report you later!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ghostbusted:
Hi guys, is anyone can help me to theming mtk android 4.2 system ui, i already decompiled and so confusing to see such as gemini_status bar etc so if anyone hwo has an experience on mtk systemui mod ... Help me please ..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
That's Mediatek, isn't it? I haven't encountered their apk files before but the same principles should still apply. It's still Android, after all.

Can you share your files please and let me know what you want to do? I'll have a look and see if I can help. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ghostbusted:
thank you very much

thank you so much mr [MENTION=2820080]ticke[/MENTION]lfish, im using android 4.2 ZTE N986 MTK device, and here's my SystemUI and Framework-res.apk i just want to know how to change the carrier data and move the icon as well, i have a multi sim phone and im so desperate to find the msim_status_bar.xml ... i really love if you can teach me how to do so ...:crying:

here's my Framework-res.apk : http://d-h.st/1oy

and below my SystemUI and images of the question just want my result like that

thx in advance and im sorry if i have a bad english
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Rataraxia:
Problem with digital clocks.

Thanks for this useful tutorial, Ticklefish!

But I have the problem... I am currently on monxDIFIED rom on Xperia Z, but it doesn't really matter.

Problem is : when you are using second method with "3 zones" status bar and clocks with seconds(digital clocks) in middle, clocks are jumping to left and right each second. It happens because some characters and numbers have different width. Since android trying to put clocks exactly in middle, each time widget increases on, for example 2 pixels, android will place 1 pixel to right and 1 to left. I think you got me.

So, can you suggest anything to prevent such jumping of digital clocks to left? I was thinking about making clocks aligned to left but leaving them somewhere in middle of status bar. But my knowledge of syntax of xml language... you know, I opened my first xml file 2-3 days ago :)