yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device Development Themes and Apps] whalesplaho:
buddy i have been using like dat without issues... even with tha last mod & if yhu check my screenshot, tha carrier text & network icon both re tha culprit, so if it was tha carrier text code faulty, den it should just be tha carrier text displaying without having to do with tha network icon.

see what i mean (full code of left top status bar);

<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@+id/status_contents_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
[color=red]	<com.android.keyguard.CarrierText android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />[/color]
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>

it is showing everthing in dis code which are in red at tha lockscreen also which isnt supposed to be so.

when i tried tha below code, den it moves to tha right top of tha lockscreen cos of tha id=system_icon_area

"<com.android.keyguard.AlphaOptimizedLinearLay out androidrientation="horizontal" android:id="@system_icons_area" android:layout_width="wrap_content" android:layout_height="fill_parent">"

dis is tha full code of tha right top status bar;

<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</com.android.keyguard.AlphaOptimizedLinearLayout>

thanks for yur support always buddy..... im looking forward for help!
[Sony Cross-Device Development Themes and Apps] FunSucker:
Try using this for your status_bar.xml :

<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1" android:gravity="end">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1">
<com.android.keyguard.CarrierText android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
</LinearLayout>
<include layout="@layout/system_icons_battery" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
[Sony Cross-Device Development Themes and Apps] whalesplaho:
woah... works great buddy, how come yhu thought of dat? at first i was thinking it ll conflict with tha right part of tha status bar but didnt. only notification icons comes before network icon & carrier text, so i move tha notification_icons_area code below & voila works like a charm;

" <include layout="@layout/system_icons_network" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />"
[Sony Cross-Device Development Themes and Apps] FunSucker:
Thats works? Great!

In the stock status bar, the left side has a layout that is longer than the right side. So I changed the order instead. You can also see there is a new linear layout, the new layout is used to keep the carrier text to stay on the left :D
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Yeap... Working buddy!!
[Sony Cross-Device Development Themes and Apps] whalesplaho:
nav bar & dock still overlaying..... tried on N too!!! :crying:
[Sony Cross-Device Development Themes and Apps] Beetle84:
Thank you to [MENTION=4315551]Ticklefish[/MENTION] [MENTION=5539344]FunSucker[/MENTION] and special thanks to [MENTION=4471890]whalesplaho[/MENTION], great mods still working on N.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
good news buddy:good::highfive:
[Sony Cross-Device Development Themes and Apps] FunSucker:
If you still use the same launcher, the issue will remain. Unfortunately, I have less know how to modify the launcher :(

Do you try it too, sir?
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Using updated Home tho buh still stock home.... Once i increased tha status bar height, it gets overlap buh if i increase above stock value a bit, its get normal buh tha status bar wont contain tha icons.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] i wanna make clock at tha center without tha icons on the left syde overlapping & battery at tha right side. tried but didnt aligned well.

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" 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" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1" android:gravity="end">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1">
<com.android.keyguard.CarrierText android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
</LinearLayout>
<include layout="@layout/system_icons_battery" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="@dimen/status_bar_clock_starting_padding" android:paddingEnd="@dimen/status_bar_clock_end_padding" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
[Sony Cross-Device Development Themes and Apps] Beetle84:
Yeah mate, not the navbar but the data icons on the left I got working with a little help from [MENTION=4471890]whalesplaho[/MENTION], thanks again for the great guide.
[Sony Cross-Device Development Themes and Apps] Joad:
sry to post it here but can someone guide me how to center clock on android n please ? tried to learn from first post but couldnt figure out what to change . thank you

using stock xperia android n
[Sony Cross-Device Development Themes and Apps] FunSucker:
try to used files from attachments. I hope that works.

You're welcome. Glad to help, sir :)

can you share your status_bar.xml please?
[Sony Cross-Device Development Themes and Apps] Joad:
here the stock i extracted from systemui . thank you
[Sony Cross-Device Development Themes and Apps] whalesplaho:
buddy i got dis after trying tha center clock....
[Sony Cross-Device Development Themes and Apps] Beetle84:
I got this, I copied and pasted the 2 files from sos.zip and recompiled and i got center battery/alarm and right clock.
[Sony Cross-Device Development Themes and Apps] FunSucker:
For different ROM, comparing files recommended. Maybe you can share your files here and i can look at your codes.

For [MENTION=4471890]whalesplaho[/MENTION] and [MENTION=5793666]xmmn[/MENTION] , can you try to use files from attached files please? Because your files both are same i think.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
i tried & got dat... tried adding layout to right but still no luck!

if i have more dan 2 notifications icons, it ll shrink & show one.... dnt know if it can still show upto 3 or 4 & it ll overlap on tha clock!

thanks buddy
[Sony Cross-Device Development Themes and Apps] Beetle84:
Here they are mate, i tried to compare the two files and make the changes and ended up with the battery/alarm centred but the time was right next to it. Thanks for all your help mate, we all appreciate it.
[Sony Cross-Device Development Themes and Apps] FunSucker:
Both of you can use the same files i think. Try these files and let me know.

One line is divided into 3 layout, center - left - right, and that means there is a limit of space for each layout. So, some of the notification icons will not be visible.. Sorry for that :)
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] success.... Thanks for yur time and always ready to help!!!

Buh i have one more request.... I have tried tha first post but not working.... With tha center clock, i want to make it look loke first having fun_rtop and tha likes and also have statbg png also, is it still possible? If yes, just help with tha layout code.
[Sony Cross-Device Development Themes and Apps] Beetle84:
That did it!! Thanks mate, I removed the line relating to carrier which will free up a little more space, your a legend buddy.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] i need little help.... sorry for bugging alot!

i wanna move signal icon to left besides carrier text.... move tha carrier text & battery icon up!

thanks... i have attached keyguard_status_bar & system_icons
[Sony Cross-Device Development Themes and Apps] FunSucker:
You're welcome, sir. Glad to help and thanks for your nice words :fingers-crossed:

While keyguard_status_bar.xml use RelativeLayout, i only can move your stuff to the top. I can't move from left to the right, or vice versa. Because it was blocked by @id/multi_user_switch

This codes will move your stuff to the top :

Find @id/keyguard_carrier_text, and change to be like this:

android:gravity="top"

Find @id/system_icons_super_container, and change to be like this :

android:layout_height="wrap_content" android:layout_gravity="top"

Currently, i'm trying to make this guide works on android M & N too. This thread will updated for it ASAP :)
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] it works..... Thanks!

Hope updates out soon....
[Sony Cross-Device Development Themes and Apps] FunSucker:
Do you running on android N right? Can you share your stock files for me, sir :D ?

I already have android M files, thanks for [MENTION=4315551]Ticklefish[/MENTION] .
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Framework-res.apk and systemui.apk right?

Yeah...
[Sony Cross-Device Development Themes and Apps] FunSucker:
Yes, and SemcGenericUxpRes.apk too ;) thanks before.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
I dnt have dis apk brov
[Sony Cross-Device Development Themes and Apps] FunSucker:
Oh oke, if you success decompiling with that files only, so nothing matters. Sorry i dont know :D
[Sony Cross-Device Development Themes and Apps] whalesplaho:
here yhu go buddy; https://drive.google.com/file/d/0B6Q-veJIWV_GTXlmMUQ2ZnhXWDA/view?usp=sharing

thanks.... [MENTION=5539344]FunSucker[/MENTION]
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] i do like to move my battery icon to tha bottom but tried everything and no luck.... i have attached a screenshot of my present LS & system_icons.xml & keyguard_status_bar.xml!

thanks always....:good:

also wanna reduce tha gap between carrier text & GodisGreat text...
[Sony Cross-Device Development Themes and Apps] FunSucker:
Sorry to be late in replying. I'm trying to unbrick my device, because it has been hardbrick from one week ago :rolleyes:

By the way, attached file is already reduce for your text gap. You can try it.

For moving everything in right-top side to the right-bottom side :

Find @id/system_icons_super_container and change to be android:layout_height="fill_parent"

Find @id/system_icons_container and change to be android:layout_height="wrap_content"

But if you want to move battery icon ONLY, you can use Lollipop method (Check SystemUI section and system_icon.xml subsection)
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Thank yhu buddy... Gonna try but I only want to move tha battery icon.... I have tried @+id/fun_rbottom code but no effects and sometimes if it ll work, tha text ll be missaligned n smaller to other icons....

Av a little bug too, tha carrier text after ll move a bit right after reboot and using tha fone, i dnt know why. Buh if i reboot, it ll work aligned bak to left den after sometime it ll move to right again.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
And for reference purpose, please which code did yhu edit for tha text gap?

Thanks...
[Sony Cross-Device Development Themes and Apps] FunSucker:
In this case, I'm using some of the same attributes in both text :

android:layout_width="fill_parent"
android:layout_height="25.0dp"
android:layout_alignParentStart="true"
android:layout_toStartOf="@id/multi_user_switch"
android:gravity="center_vertical"

And add this to the text which was on the top line :

android:layout_alignParentTop="true"

Add this to the text which was on the bottom line :

android:layout_alignParentBottom="true"

try this file. if your text issues persist, change your font or try to playing with text size/dimens/paddings/margins.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
I used differs fons n it happens... I ll try tha above code n xml to see. Thanks a ton brov!

No power supply here dats why I avnt tried. Would post feedback soon!
[Sony Cross-Device Development Themes and Apps] FunSucker:
no problemo, you're welcome sir.

the above code just for explaining what i did, the xml's already modded :)
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Everything working fine... No misalignment yet but noticed dah wen i changed my fonts, tha carrier text moved right a bit and tha battery + signal icon shoot up n wasnt showing cos dey shifted up and out of tha screen layout but if i reboot it ll fix den after sometime, it ll shoot up again.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] it happens now after long time.... Dnt know why its like dat but if i placed dem together without top and bottom den no issues!

Help buddy.
[Sony Cross-Device Development Themes and Apps] vinaykharayat:
Non Sony user here :(

Will you bother to tell me what is wrong? :confused:

Log in attachment
[Sony Cross-Device Development Themes and Apps] FunSucker:
Do you mean is top & bottom lines in system_icons.xml, sir ?

W: warning: string 'quick_settings_wifi_display_no_connection_label' has no default translation.
W: C:\Users\vinay\Downloads\Programs\TickleMyAndroid\_WorkArea1\_working\SystemUI.apk\res\layout\[COLOR="Blue"]status_bar.xml:[/COLOR][COLOR="Red"]39[/COLOR]: error: [COLOR="Magenta"]Error parsing XML: mismatched tag[/COLOR]

Look at colored text.

Blue = XML's name

Red= Lines number

Magenta = The problems

In this case, make sure the XML tags are correct. You can try to check the "Start tag" & "End tag" on your XML's.
[Sony Cross-Device Development Themes and Apps] vinaykharayat:
How to fix no resource found problem?

Is it because of wrong editing of xmls?

I think I messed it up :(

Will you bother to check
[Sony Cross-Device Development Themes and Apps] FunSucker:
Do you have installed all the framework?

For status_bar.xml, you can try this file.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] yhu ll see in tha screenshot dat tha battery icon and signal icon was displaced.
[Sony Cross-Device Development Themes and Apps] FunSucker:
try it

open keyguard_status_bar.xml, find this id and then change it using this codes :

<LinearLayout android:id="@id/system_icons_super_container" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentEnd="true" android:layout_alignWithParentIfMissing="true" android:layout_toEndOf="@id/multi_user_switch" android:gravity="end">
<FrameLayout android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal">
<include layout="@layout/system_icons" />
</FrameLayout>
</LinearLayout>

open system_icons.xml and change the whole codes using this codes:

<LinearLayout android:id="@id/system_icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|right" android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:layout_gravity="right" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="0.5dip" layout="@layout/signal_cluster_view" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<LinearLayout android:gravity="center_vertical" android:id="@id/battery_group" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" >
<com.sonymobile.systemui.BatteryLevelView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="@dimen/status_bar_battery_icon_width" android:layout_height="@dimen/status_bar_battery_icon_height" android:layout_marginBottom="@dimen/battery_margin_bottom" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Still same again..... Check tha below screenshot. I even tried adding another code to system_icons.xml buh it fcs!

Dnt know whats wrong but its okay if i dnt separate top and bottom.

Thanks for tha troubles brov....
[Sony Cross-Device Development Themes and Apps] FunSucker:
sorry for long long time replying.

it solved or not yet?

can you make separate lines without dividing top & bottom ? if yes, don't used my last codes.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Couldnt, it fcs... But your codes is tha only one one dat works, just dat it misaligne. I have leave it on a straight line.
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Yeah... Trying new code buh confused, no specification for battery to be placed at tha bottom, so how ll it work?
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Battery icon didnt display..... Just network icon and system icons at tha top.

---------- Post added at 11:07 PM ---------- Previous post was at 11:02 PM ----------

I reboot now and it shows buh after sometimes it go off again... Didnt display!
[Sony Cross-Device Development Themes and Apps] FunSucker:
how about the misaligned issues after a few minutes rebooting ??
[Sony Cross-Device Development Themes and Apps] whalesplaho:
It wont display anymore..... Just signal icon and other icons.!
[Sony Cross-Device Development Themes and Apps] whalesplaho:
[MENTION=5539344]FunSucker[/MENTION] just having fun around.... Date and clock together!!!:highfive::good:
[Sony Cross-Device Development Themes and Apps] FunSucker:
yeah, nice shot sir! :fingers-crossed:

But I was still curious about the last issue :eek: I will find out soon
[Sony Cross-Device Development Themes and Apps] whalesplaho:
Thanks for yur time... I ll so much appreciate!!!