yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Inside decompiled framework too?

if it is the case from where did pick that line you put in your xml?

I am not at work so i cant help you a lot more.

Tomorrow send me your xmls. I have cm10 files. I will try to nail the problem.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
yes, i checked files from system ui and framework too.

tried once again, done everything like in the first post, except I deleted line with stat no sim, because couldn't recompile. zip flashed, "android upgraded, optimized 119 apps" and yet, everything looks the same. even yesterday was more progress, with moving clock too far to the right, that barely could see it, if battery and signal icons were turned off.

what xmls would you need?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Your modded statusbar.xml.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Mate, i tried your status_bar.xml and i can compile without error.

So as i guessed, your probleme come from TMA : I am almost sure your framework is replaced at compile time, so you will have to try as i said before with the classic method.

1. Uninstall TMA completely

2. Search your entire c: drive for aapt.exe and delete or rename them.

3. Create an APKTOOL folder at the root of your c:\ drive and copy inside aapt.exe, apktool.bat and apktool.jar (in attachement you have mine : they work).

4. Put framework-res.apk and systemui.apk inside c:\APKTOOL

5. Open a command window by going to start -> run and type cmd.

Navigate back to the root by typing cd\ and go to apktool by cd\apktool

6. Now type

apktool if framework-res.apk

It will install your framework.

7. Decompile systemui

apktool d systemui.apk

8. Delete public.xml located in res/values

9. Replace the status_bar.xml by your modifed one

10. Recompile Systemui

apktool b systemui MYNEWSYSTEMUI.apk
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
this xml I sent you was with deleted line which wouldn't let me compile. I guess I should enter that line and send xml to you again, right?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Yep, it would be better.

Your last PM, I don't understand : you ask how to pull framework-res and systemui from your phone ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
yes, because since I deleted TMA to pull files from phone, I didn't want to pull my battery ant copy files from SD, but I already did that. :cyclops:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Well you don't need to do so. Just copy the two files where you want and plug with usb to your PC or use a wifi direct method (software data cable is the app i use, but you need a wifi router for this).

But you should download the last CM10 on your computer : you would have all the files at hand.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
ok, next time.

Anyway, I reedited xml, and it could not be recompiled with the full code from the first post.

edit. I have sent you that xml to mailbox.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Ok, i understood.

The problem is you are picking the code from OP and put it directly in your xml.

BUT this thread is in Sony Ericson forum and the code is for stock Sony Rom, isn'it ?

And your error come indeed from adding an id (stat_no_sim) which is not present in CM10, hence the compiler can't find it and throw the error. If you look closer at the code you can even see that the visibility for that particular object is set to "gone", which means it doesn't even appear in the status bar.

Sooo : just delete the line :

<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" />

And Compile ;)

PS : And if you want to know : that line is/was used to show an icon in case you don't have a sim card in your phone.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
So thats what I've done before, deleted exactly the same line, recompiled, flashed zip, but nothing, absolutely nothing, changed.

I'm totally lost.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Try the xml in attachement. It only change the clock color to red.

Let's see if something happen.

EDIT: Another thing. You use CM10 right ? But you don't use any theme, isn'it ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
that's what i was about to say, im using theme. after i recompiled apk and pushed it back, got some strange error constantly appearing.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
You can't use theme : they override your changes ! or you must edit the theme, but it is tricky, mostly with layout.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
so even if I manage to move icons, after applying any theme, any changes will be gone?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
If the theme deal with layouts (ie : the layout you want to change) : YES

If the theme just changes the drawables : NO

What is the theme you use (where can i find it ?)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
this one for now http://xdaforums.com/showthread.php?t=2293257

as I understand, it deals only with drawables, am I right?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Let me decompile it first ;)

Ok, it doesn't modify the layout BUT it modify some dimens, color, styles.

Here the modifed color :

The dimen:

Some drawables are repalced too (including status bar background):

PLUS a lot of png are replaced including the notification_panel_bg.9.png...

So if you just want to move things in the Statusbar it should work, but to change the color and the transaprency of certain element you will have to edit the theme. Pretty easy : decompile/recompile AND sign.

You can even do all your modification directly in the theme : It is more convenient (no need to flash) and you can always go back to stock.

It is how I do : i never moddify the apk : i just create an external theme to suit my needs.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
ok...I guess. can you refer me to any guide or topic about that?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
http://xdaforums.com/showthread.php?t=2103679

For dealing with layouts :

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

But i would highly encourage you first to make your modification work WITHOUT the theme

, as a training.

Using the Theme Engine isn't very compilcated WHEN you have assimiled at least the basic or you will be completly lost in the redirections and so on.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
without the theme? isn't that what I tried to do with TMA and flashing zip?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Yes of course. But disable completely the theme until you succeed. And then, try to implement the moddifications directly in the theme :)

If the theme is not disabled, you won't see your changes or you will not see them completely.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] salamkonaziz:
thanks for ure grate learning
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] le grande magnetto:
ok, gotta try it. thanks for help :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nbnion:
hello!

do you guys know how to keep a specific distance between the icons?

Wi-Fi, signal network, battery, clock in status bar?

in my case Wi-Fi is way to far from signal network, signal to close to battery....

thank you!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
You just have to add a right margin parameter before the element you want to move.

For example, lets say you want to add space before the battery : look in tw_status_bar.xml (on Sammy Rom) or status_bar.xml and search for the battery. It is defined by id/battery (and eventually id/battery_text on certain Rom for the % one can add in setting).

Just above those Id we have id/signal_cluster : here add in the parameter of the layout a android:layout_marginRight="4.0dip" (i put 4.0dip but feel free to experiment).

Now you will have a space of 4 dip just after the signal cluster, hence a space between the signal cluster and the battery.

Here is my resulting code :

<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@systemui:id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@systemui:id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR=Red]android:layout_marginRight="4.0dip"[/COLOR] layout="@systemui:layout/tw_signal_cluster_view" />
<TextView android:textSize="12.0dip" android:textColor="#ffa6a6a6" android:layout_gravity="center" android:id="@systemui:id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@systemui:string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@systemui:id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>

BTW the signal cluster is the cluster where the wifi, signal and airplane icons are defined, so if you want to add space also between those do the same but in the xml which defined this cluster (tw_signal_cluster.xml).

Just take care in here as for example the wifi icons is not only defined by the wifi icon but also the arrows. Idem for the signal (you have arrows too, +signal type +roaming icon).So check the layout to move the whole set of icons. For example the whole wifi is id/wifi_combo (id/wifi_signal + id/wifi_inout).

Cheers
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nbnion:
thank you so much for your help!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sgspluss:
Sorry for the very late answer but havent time to go to my computer :(

Well first the statusbar are gone so i thought i failed so i tried it 3 times again still same result at my last try i have done it but i only saw the centered clock all other (like signal bar etc.) are gone...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Post your modded and your original xml (not paste..., post them into a zip).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xitrumbatanhne:
please help me mod

hi tickle fish pro

please mod status bar for me

because I don't have enough money to buy an iphone, so I have an android phone instead

but I love iphone status bar so much I don't want to use launcher so I want to mod my status bar

so could you help me mod my status bar same as iphone ( center clock, wifi signal and network signal on the left, and battery on the right )

your helping is appreciate

please help me

I attachment my SystemUI
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xitrumbatanhne:
please help me tickle fish
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
Mate, why don't you try to do it yourself ? We can help to guide you, but i don't think anybody will do it FOR you.

It is a Tutorial, not a "please do it for me".

And your comment about buying an Android device because it is cheaper than an iPhone won't help a lot here in XDA where most people have certainly buy an Android because indeed it is not an iPhone ;) if you know what i mean :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I've got enough money for an iPhone. I wouldn't buy one though. Android all the way, baby!

Ahem..

Anyway..

Sadly, I don't have enough time right now to mod peoples apks for them. But I'm always happy to help with their xml if I can.

Please share your statusbar.xml and I can show you what you need to do to achieve what you want. It's actually a lot easier than you think! :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Very cool. Thanks a bundle!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Namoi:
You are welcome :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dzol Cp:
I can help you mate..but not with an iphone icon..i don't really like iphone..for sure..

so how? center clock only?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This sounds simple enough. If, and I mean if, he's using 4.0 or above. It should just be a case of using the Best Method and swapping some lines around.

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
Am back after a long vacation... now using Xperia V!!!

i think i will be tickling my status bar.... :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dzol Cp:
Welcome Back Brother! :D

Done.

============

FLASH VIA CWM
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
missed yhu guys.... :highfive:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xitrumbatanhne:
I will try it

thanks bro so much, I will try.........
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
Help...i wanna hide battery text, i add android:visibilty=gone but still shows!

Please help..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xitrumbatanhne:
Bro ticklefish

I have tried your mod which you done for me but after flash and reboot my status bar disappeared

Please fix it:eek:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, what else is the status bar for? lol
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Did you add

android:visibility=gone

or

android:visibility="gone"

?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Perhaps you have done something wrong? Did you only copied the lines you want to have modded or did you adapt, port and adjust the lines to yours?

Sorry forget my comment please, didn't realized that you have got a complete SystemUI. Sorry!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
As flattered as I am by the comparison, it wasn't me that did that mod.

Does your statusbar reappear once you get a notification?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Have you tried to change the width and height to 0.0dip?

android:layout_width="0.0dip" android:layout_height="0.0dip"
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] whalesplaho:
Woah!!!

#just like magic.... thanks a mill brov!!!:good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
statusbar ICS dual SIM

Hi ticklefish, I've done with your tutorial but nothings change to my statusbar. perhaps you could made it for me so I could decompile again to see what I'm doing wrong. you can see my systemUI.apk in attachment. billions thanks if you could help me...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
If you can share your modded xml and let me know what you did to put your apk back to your phone, then I can see where you've gone wrong. :)

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
okay, this is my status_bar.xml
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Thanks. This doesn't look like it's been modded, is this your original xml?

And I need to know what your process is, like I mentioned in my previous post.

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
is it? well, I think I've deleted my systemUI that I've modded. I done decompile systemUI.apk then I modding with the tutorial and I recompile. when it's done, I push the SystemUI.apk modified with root explorer and I change the permission. at last, I reboot my phone and my clock is still in the corner. I think it cause there a string that i couldn't found in my status_bar.xml so I wonder is it for SystemUI.apk ICS or gingerbread. so if you don't mind you can edit my xml so i know what is wrong.

your application "Tickle My Android" is downloading by now. a huge file for me, 131 MB. and my speed just only 40 KB/s :(

---------- Post added at 02:16 AM ---------- Previous post was at 01:19 AM ----------

my status_bar.xml had changed like this but doesn't work either....
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I think your problem lies with your process. After you recompile, do you sign your recompiled apk, do anything about its META-INF folder, or anything like that? Or do you literally use the recompiled apk without making any further changes?

Tickle My Android is a bit big, but there's a lot to it. :D

..Have you tried Tickle My Android yet?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xitrumbatanhne:
my status_bar.xml

hi ticklefish, I have attachment my status_bar.xml

please show me how to edit as I mentioned before ( sorry for requesting if you can teach me step by step because I have no knowledge about android like java or xml )

thank you very much:fingers-crossed:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] alvster:
Can someone give me a flashable zip to flash on my cm10????
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Carpe-Dimi:
I have followed this guide using both methods (and both worked! well enough, hooray! :D)

However, while using the second method does give me this nice animation on hiding the clock for notifications, the clock keeps jumping to the left and right, depending on how many icons appear on the right parts of my status bar.

Is that supposed to happen?

It is unbothered by the amount of icons appearing on the left side of my status bar btw.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
could you made it for me? I'd try for several nights but my clock is still on the right side. my SystemUI.apk is in my attachment above.

great thanks if you could help me... :thumbup::p
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Carpe-Dimi:
What you've posted above is the same i've done for myself on my working version of it, except I used - android android:gravity="center" (instead of horizontal_center|center)

Altho that second line (below ?xml version... and above xmlns... seems a little out of place, but that may still be unrelated.

you could try removing the line containing your clock info and then recompile and push it to your device. that should remove the clock from your statusbar entirely. and thus prove that something is happening.

Also since you've moved the clock out of linearlayout, it should overlap the status icons if it is not centered. Does that happen as well for you then?

I have used the systemUI you posted on previous page and changed that into what has worked for me and attached it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
There's really no need to post here and pm me about the same thing a few minutes later. I always reply to the posts in my thread when I can. :cool:

Looks like you know enough about Android to be able to decompile your SystemUI.apk. Which is great as if you can do that, you can do pretty much anything.

The code you gave me is identical to the code in the op. So if you want a step by step guide to modding it, that's precisely what the op is.

Read it, try it and if you have any problems, don't be afraid to ask for help here. :good:

Are you having trouble doing this mod?

It's theoretically possible. Android isn't designed to have a central clock, which is why you have to do so much to get it to work, so sometimes you can have some odd side-effects.

Can you provide a screenshot of what you mean please?

'android:gravity="center"' is the same as 'android:gravity="center_horizontal"' and 'android:gravity="center_vertical"' combined.

So 'android:gravity="center_horizontal|center"' is bascially the same as 'android:gravity="center_horizontal|center_horizontal|center_vertical"'.

Technically it's bad code but in reality it doesn't cause any harm and there's no disadvantage in doing it, it just takes a bit longer to type.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Carpe-Dimi:
I took my brother's phone and started on his systemUI from scratch with this (second method) and that worked as it should :D. Then tried my own again doing the exact same thing from scratch as well and it gave me same problem. So i'm guessing it's something samsung did to the statusbar that causes this (as i'm on a tw framework and my brother isn't) and then gave up trying. So can't sort you out with screnshots, but i'm happy with what I have now :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Well, I'm glad you were able to sort out your brother. Shame about your phone though. If you ever want to try it again, let me know.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
whoaa.....!!!! my statusbar is missing. I think my clock is cannot be centered, or maybe can but with another tutorial...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Sure it can. Can you share your files please?

So you haven't tried it yet? It looks like you've used the first method...then the second method as well. It'll work..but it's a bit overkill.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
1. I use SystemUI.apk that Carpe-Dimi attaching. my SystemUI.apk is in my earlier post.

2. with that xml, I can't recompile. the ticklemyandroid says it a lot of error.

this is log file:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] alvster:
Can anyone upload the modified files and i will just put it in the specific folder?? i really suck at decompiling..

Cm10 slim v2.. lww..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
If you can share your original files, I can take a look at this for you. Saves a lot of time.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Sichroteph:
It took me some time but I succeed in centering the clock.

I went further with playing with the android:visibility="gone" attribute and removing all the status icons I hated on my Xperia Z.

Thanks a lot it was longer than expected but it was fun.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
could you? wow, it would help me so much.

this is my original systemUI.apk also framework-res.apk if you need that.

great thanks before...

and this is my status bar looks like...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
are you still working on it? it's little bit harder isn't it??
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Perhaps Tickle is busy with real life :). So here is my try...perhaps it works and is that what and you want it. :fingers-crossed:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
maybe, I hope he'll be back soon.

btw, thanks to your help, will try it. is it your systemui or you moding mine? :thumbup:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
I modded this one you attached a few posts back together with the framework-res....think that was/is yours...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
well, I had download it and replace mine but still the same. my clock still on the right side.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Thanks for quick response and testing....and does this new one attached change something?

Edit: perhaps the 3rd one is even better, I did a few more changes....see new attachment.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dzingga:
thanks to still workking it. I've download it but with dzingga2 or dzingga3 my status bar is missing. so i back to replace it with first attached. or do you have another tutorial side this??
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rodman01:
Have you tried it with and on a fresh installed rom? Without any other mods flashed in advance? If not! could you please try v2 and/or v3 again? And report back again? And how do you change the new systemui? In a flashable zip or copy it to system/app? Or pushed it via ADB? If possible try to use a flashable zip....!!

Think the "problem" has nothing todo with the quide here, because its great and awesome!...you cannot just and only copy the files from here to there, you have to adapt it to your rom and device...no offense just my thoughts....