yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
God bless MIUI...

I'll have to take a look at this later. This mod may take a bit of time to perfect!

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 22sl22:
[MENTION=4315551]Ticklefish[/MENTION]

I managed to get a log of the SystemUI crash, let me know if it helps :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Hmm...doesn't say much that's helpful. Just a load of java exceptions.

Although there's a very cool Batman logo that shows up a few times in your logcat. That's pretty awesome. :D

Can you share the original xml please? I think we need to move a bit slowly with this one to find out at which exact point the apk FC's..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] adek89:
how to create gradient bar in gb?

Wysyłane z mojego WT19i za pomocą Tapatalk 2
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
If you're using Gingerbread, your statusbar background is probably controlled by a .png image file. Find that file, open it with a decent image editor and redraw it a with a gradient.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 22sl22:
[MENTION=4315551]Ticklefish[/MENTION]

I'm doing it now so what about normal statusbar.xml not the simple one we are working on? Do I just use the simple method in it for now and leave it be?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Until we can get the simple xml working, you might as well.

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 22sl22:
Ok that's fine.

Both codes you gave me work fine, compiled and boot all ok. However, Overlap is still there :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
That's fine. I knew it would be.

That's not the whole Method. I think we just need to do it piece by piece, slowly.

Now we can start moving individual lines and working out at what stage that FC happens.

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 22sl22:
yeah, I only just realized what you did with the code, Lob everything at the end of the code and add it in one by one :)

Will a new <LinearLayout android:id="@+id/Status_Bar_Left_Side" have to be created because of the following lines :

<com.android.systemui.statusbar.phone.BatteryIndicator android:layout_gravity="top" android:id="@id/battery_indicator" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/battery_indicator" android:scaleType="fitXY" />
<com.android.systemui.statusbar.phone.BatteryIndicatorCharging android:layout_gravity="top|right|center" android:id="@id/battery_indicator_charging" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/battery_indicator_charging" />

Which looks like Battery Indicator on top of the statusbar unless i'm mistaken?

So a new linear layout beginning with:

LinearLayout android:id="@+id/Status_Bar_Top

Does that sound right?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Spaces before/after my icons.

I modded my statusbar to look like flyme OS statusbar and I'm having a problem with some icons.

I can't remove the spaces before/after the icons, the battery icon and the notification icon, as you can see in my screeshot... Can you help me sir Ticklefish? :confused: :confused: :confused:

I have attached my status_bar.xml for you to take a look sir.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This might be a syntax issue:

[COLOR="Red"] <RelativeLayout android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">[/COLOR]
[COLOR="RoyalBlue"] <LinearLayout android:id="@+id/Inside_Status_Bar_Right_Side" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentRight="true">[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Carrier" android:gravity="left|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:id="@id/notification_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<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="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
[COLOR="Red"]</RelativeLayout>[/COLOR]

<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
[COLOR="RoyalBlue"]</LinearLayout>[/COLOR]

You've got a LinearLayout that's opening in a RelativeLayout but closing outside that RelativeLayout. You're not allowed to do that. Any open tag in a nest must be closed before the nest is closed.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
What sort of problems are you having?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
i did get to make the clock center but the system icons such as bluetooth & alarms comes in the left side of clock making it full once i get notification such as messaging, of course i follow the instructions carefully in fact i've already done it in ICS SystemUI before so it's not new to me, it's just this code (IN RED) and the items inside this that makes it hard to center the clock in z2 SysUI, i can't seem to separate items inside it, it's causing FC.

[COLOR="red"]<com.android.systemui.statusbar.phone.IconPartitioner[/COLOR] android:id="@id/notification_icon_area" 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" android:layout_alignParentStart="true" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" 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" />
</LinearLayout>
[COLOR="Red"]</com.android.systemui.statusbar.phone.IconPartitioner>[/COLOR]
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Hmm...I'll do some thinking and experimenting and I'll get back to you.

Anybody who promotes TMA in their signature deserves my full support, after all! :highfive:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
haha. it did help me in a lot of way and it's the only tool i use for all my modifications back when i first learn how to decompile and compile and up to now,it never failed me!simply genius! Thanks it's free!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Right side prob

Sir, the left side now is ok but I still can't figure out how to edit the right side. Like you said I made it similar to my left side but the icons are not on the right "end" side of my statusbar...

Here's my right side code:

[CODE]	<LinearLayout android:orientation="vertical" android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_weight="1.0" android:layout_alignParentRight="true">
<TextView android:textSize="14.0sp" android:textColor="@*android:color/white" android:id="@id/percentage" android:paddingLeft="0.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/battery" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Consider changing your first LinearLayout to a RelativeLayout, and changing the attributes of the other LinearLayouts to make one align with the top of the RelativeLayout and the other align with the bottom...

<RelativeLayout android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_weight="1.0" android:layout_alignParentRight="true" android:layout_alignParentTop="true">
<TextView android:textSize="14.0sp" android:textColor="@*android:color/white" android:id="@id/percentage" android:paddingLeft="0.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/battery" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="0.0dip" android:layout_weight="1.0" android:layout_alignParentRight="true" android:layout_alignParentBottom="true">
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Sir, when I put the code you gave me and recompiled, all my right side icons are gone...

Is there another way? :( :( :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I think I know what caused that. Try this code instead:

<RelativeLayout android:id="@+id/Status_Bar_Right_Side" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true">
<TextView android:textSize="14.0sp" android:textColor="@*android:color/white" android:id="@id/percentage" android:paddingLeft="0.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/battery" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentBottom="true">
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:paddingRight="0.0dip" android:layout_marginRight="0.0dip" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Toni Suwanto:
Any tutorial how to hide statusbar when expanded?

I'm on stock ics
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Nothing that I know of. To do that, you'd need to edit some smali. But precisely which smali and precisely how, I don't know. Sorry. :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Toni Suwanto:
Ok. Thanks. I really like z1 Ui when expanded , may be you can take a look some code here http://xdaforums.com/showthread.php?t=2467070
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Huraay :)

I've just put the code, recompiled and it's perfect!

Now I'll just have to adjust some paddings.

Thank You sir!!! :laugh: :victory: :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Anytime! :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
AM/PM how to remove?

Sir, It's me again...

Do you have any idea how to remove the AM/PM in the clock on a statusbar?

I don't wanna use 24 hour clock format.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
That depends...what version of Android are you using?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
My android vesion is 4.2.2 jb sir.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
The easiest way is to use a TextClock. It's a very customisable clock that's part of Android from 4.2.

Have a look at this tutorial from [MENTION=2948558]Spannaa[/MENTION]: http://xdaforums.com/showthread.php?t=2713812
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
It still not working for me, SystemUI FC's as the sytem boot, i couldn't even get past the lockscreen pin code..anyway if it's not that much for, i'll send you a PM with my SystemUI and hope that you could take a look at it..thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Okay sir, thanks again :)

meanwhile, still waiting for Spannaa's reply..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
problem again..

Sir, I did it, my 12 hour clock now has no am/pm on it but the problem is, it isn't centered like before. How to fix this?

This is my clock code now

<TextClock android:format12Hour="h:mm" android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:layout_gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Here's the ss attached
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
you mean it's a little bit in top part?try to play with this code:

android:layout_height="fill_parent"

replace the red colored text with this wrap_content
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Thank you!

Oh, I never thought of that haha!

Thanks sir :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
I don't normally discuss xml modding by pm, not if there's a thread to post in instead.

But you're one of the ELITE - you support Tickle My Android in your signature. So I'll do anything for you. :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
I apologize for that Master, and im sorry too for late reply :crying:(i'm just using a prepaid internet:silly:)..and i'm really, really thankful for that great consideration of you:victory:..I just hope i could donate some..but i'm still a working student now..:(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ezzam_Itachi:
I got the same problem .. :confused: decompile & recompile succesfully .. But still fc .. :banghead:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
The same problem as what..? :confused:

No problem. :)

Don't worry about donating...I can't take donations anyway! :laugh:

Try flashing the attached zip and let me know what happens.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ezzam_Itachi:
I can't get the edited statusbar to appear .. The SystemUI fc .. Can't get the reason .. :confused:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This could be because of the xml you're using...or how you decompiled/recompiled the apk.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Right...this is my first post with the xda one app..let's see how it goes..

Sadly that logcat doesn't tell me much that I can use. It's entirely possible that the code works in KitKat but not in Jelly Bean. Which would be typical..

Are you able to get onto KitKat?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vampent0026:
yeah,in my other device i did copy and edit some lines and it's working fine,but with my Xperia SP running JB4.3 it's FC'ng.. i actually did 30 or more combination of layouting that status_bar.xml before i asked you to no avail..it's like i'm staring in a blank canvas until blood starts to drip in my head..lol:D,anyway..Thanks a lot master..i guess it's too much for centering that clock..:silly:,

I have a new interest..:D, a little bit off-topic, Do you think it's possible to embed the Gaussian blur code in systemUI rather than using a xposed framework and module??it's native in android,isn't it??I'm still learning so forgive my ignorance..and thanks again!!!:good::good:

Edit: i somehow feel proud that your first use of XDA one app was to reply to me..haha
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
It does look like the 4.3 code won't let us center that clock. Annoying..

In theory, it may be possible to embed the blur in SystemUI.apk but I've no idea how. You may be looking at making your own SystemUI.apk from source and modifying it, rather than trying to work out all the smali changes.

P.S, that was the first post I did with xda One...but I think I'll stick with TapaTalk until it's finished. An exciting project though!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
What's this?

Hello sir,

can you tell me what does this code do or what this affects or somethin'? :angel:

android:typeface="monospace"
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
This changes the font of the TextView to 'monospace'.

To quote Wikipedia:

You can also set the typeface to 'sans' or 'serif'. And Wikipedia says...

The typeface can also be set to 'normal' if your app is using a monospace, sans-serif or serif font as standard.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
Did a quick search of the 165 pages of this thread but couldn't find an answer so.. how to center clock in kitkat. I have an S4 with kit kat. I tried the method by serajr and it did move the clock but all the way to the left side lol... just a bit too far. So if there is a method in kitkat I would be most appreciative. :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Unless there's something unusual about your xml, the best method should work just fine. [emoji1]

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
Thanks for the quick answer, but I not sure if there is anything unusual LOL just started with KitKat but I know there are a couple things in the best method that don't match with my status_bar.xml which I have attached if you wouldn't mind looking at it and telling if it has anything odd, to me most of it looks odd. JB was so simple... thanks in advance

View attachment status_bar_xml.zip
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] gave the code a try and systemui fc'ed. it did recompile fine with no brut errors tho so not sure what is causing it to fc.. thanks ffor the code...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
What did you use to recompile the apk with?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
apktool1.5.2, it worked when I tried seconds on the clock so don't think that was the cause... appreciate your trying to help me.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] still doing the fc thing.. thanks anyways, appreiciate your time. no panic or stress... tyt
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ticklefish:
Interesting. I wonder if the two id's are meant to be next to each other..

Try putting the clock code between those two id's, without any further editing. It won't be centered but it'd be interesting to see if it fc's just from that.

Also, what do you do once you've recompiled the apk? I just want to check your process.

--------------------------------

Sent via Tapatalk

---------------------------
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
Not sure which two id's to put the clock between. sorry... lots of id's in the xml lol.

and after I compile the systemui, I open the old one and new one with 7zip, and copy the meta and manifiest from old to new.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
getting closer....

The revised code did the FC thing again. So I moved the clock to where you said, between '@id/notification_icon_area' and the '@id/system_icon_area' and it did not fc, and clock is now on the left hand side of the icons.. see screen shot.

getting close I think :)

Edit: Have been playing with clock position, and seems only left side or right side but no in between yet.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] OjelaMorp:
Sir :)

what does these codes means?

android:stretchColumns="1" android:shrinkColumns="1"

Thanks in advance :)

sorry for the spoon fed
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] here is screenshot of latest code...

everything on right side of status bar moved to the left. interesting. thanks for your help, but it is getting more puzzling if I say so myself lol...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
[MENTION=4315551]Ticklefish[/MENTION] the last code, it looked like when we first start with clock and wifi and signal all where they should be on the right.

My rom btw is stock odex. I only deodexed the things I wanted to mod like systemui and secsettings so far. What I was curious about is what if there was three sections, all linearlayout instead of mixing with that and relative. You are such a great help!!!! thanks....
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobfrantic:
SUCCESS!!!!! :D

[MENTION=4315551]Ticklefish[/MENTION] It worked!!! Great job, I would never have accomplished what you did. Thanks a million sir!!!!!

I took the time to add seconds and remove that stupid battery icon. Now it looks as I want. Again thanks for your time and patience!!!!

What finally made it work? Modification to the "Best Method" or something new? Curious I am...