yashsingh1/xdaforums huggingface dataset:
[Android Themes] CodexLink:
Hi there

At last thanks for this guide!

I have a traffic data for now and work great! But somethings wrong in the notification panel

Can someone help?

My status bar has a "clear" word in clear button

And i want my settings shortcut is in center of it and i want to add a recent app shorcut there

Can someone help?

Heres my SystemUI: https://app.box.com/s/jjv0mb5p515yvclz9zgq

Screenshot:
[Android Themes] dadroid98:
You need to delete values ​​- string.xml

by so

<string name="Clear_all_button"> clear </ string>

in this way

<string name="Clear_all_button"> </ string>
[Android Themes] CodexLink:
Oh thanks

How about that settings shortcut move to the center of it?
[Android Themes] dadroid98:
status_bar_expanded.xml

<ImageView android:layout_[COLOR="Red"]gravity="center_vertical[/COLOR]" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
[Android Themes] CodexLink:
Hi there

It seems that red colored text thing line that is layout_gravity:center_vertical it make the settings shortcut goes to the left

I want to make it at the center

Any can help with this?
[Android Themes] dadroid98:
You may try this:

<ImageView android:layout_gravity="right_vertical" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
[Android Themes] CodexLink:
Not allowed right_vertical?

Well let me try other layout_gravity.

Heres the Log:

<ImageView android:layout_gravity="right_vertical" android:id="@id/settings_button" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tombol_setting" android:contentDescription="@string/accessibility_settings_button" />

Screenshot of Log:
[Android Themes] dadroid98:
you try this :)
[Android Themes] CodexLink:
Bro thanks for it it work

i try to change some codes but i forgot what code i changed this time .

Thanks but that clear worx doesnt even remove.

SS(Screenshot):
[Android Themes] dadroid98:
i try to change some codes but i forgot what code i changed this time .

Thanks but that clear worx doesnt even remove.

SS(Screenshot):

Thanks you !

If you do not know how to fix this as well ask the rest :)

Even if you want to improve the layout :)

This is my result in perfect style Android 4.1.2 with the status bar in full screen! ; D
[Android Themes] CodexLink:
Well i fix yesterday bro

Thanks for your help at least some i even add to the status bar

Clear word fix by seen all string.xml and leave a blank of it

I will add you in credits when i finish creating a update from my rom and in this thread..

Thanks you! :D
[Android Themes] psidco:
Hello guys.just try jelly style.look at my screenie.can someone help?

Sent from my GT-S5360
[Android Themes] dadroid98:
You when you finish the rom send me a private message and give me the link of the rom so I can look at :)

---------- Post added at 11:03 AM ---------- Previous post was at 10:56 AM ----------

find this line in statusbar_expanded

<com.android.systemui.statusbar.CarrierLabel

delete that entire row that starts with that code...
[Android Themes] psidco:
Thankyou mastah.

Btw where I put your traffic smali?

And for carrier on bottom.after <com.android.systemui.statusbar.CloseDragHandle I see something like <image view bla bla bla.so where I put your code?before Image view or after?

TIA and sory bad english hope u understand :D:D:thumbup:

Sent from my GT-S5360
[Android Themes] psidco:
Edit:data trafic not appear n how to get carrier at my bottom png background?not overlay like that?TIA

Sent from my GT-S5360
[Android Themes] dadroid98:
You put the smali in systeui.apk/smali/here

your StatusBarTraking.xml should be similar to this:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:background="#ff171b1e" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
[COLOR="red"][COLOR="Blue"]<com.android.systemui.statusbar.CarrierLabel android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:textSize="16.0sp" android:textColor="#00000000" android:gravity="center" android:layout_gravity="bottom" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="24.0dip" />[/COLOR][/COLOR]
[COLOR="Red"] <com.android.systemui.statusbar.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:background="#ffdf7c0d" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip">[/COLOR]
<ImageView android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="32.0dip" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
[Android Themes] nightwalker:
How to do this on mtk gingerbread devices??
[Android Themes] dadroid98:
Is possible but you have adapt xml for mtk ;)

attach your xml ? :)
[Android Themes] nightwalker:
I am attaching all my status_bar_expanded that are present in my layout folder.!!

Status_bar_expanded

zzz_status_bar_expanded_gemini

zzzzz_gn_status_bar_expanded

zzzzz_gn_status_bar_expanded_gemini

zzzzz_gn_status_bar_expanded_notifications

zzzzz_gn_status_bar_expanded_toggles

zzzzz_gn_zzz_status_bar_expanded_gemini.

Thanks bro,I was in a confusion!!
[Android Themes] dadroid98:
o.o there isn't status bar traking ?
[Android Themes] Gongy81:
HELP

Thanks for this tut but I have litle problem,my systemUI dont work after this :confused:

I'm followed everything step by step decompile,modding,compile everything goes OK but push to system/app and SystemUI disappears with message FORCE CLOSE.I've done port some roms but this is a mystery to me :rolleyes:,my SystemUI is attachment.

Yes,I'm using APKMulti tool,is that maybe problem?

Thanks and sorry my bad English,I'm form Bosnia!
[Android Themes] esatanic:
in my status_bar_expanded i cant find

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

This is my status bar expanded

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="#00000000" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/a_nonotif" android:paddingRight="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="14.669983dip" android:textColor="#00000000" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/a_ongoing" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="#00000000" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/a_notif" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.0dip" android:textColor="#00000000" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/clear_btn" android:focusable="true" android:clickable="true" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="7.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:id="@id/title_bar_shadow" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
[Android Themes] dadroid98:
you try ;)
[Android Themes] dadroid98:
Guide 1.0 : How To Make Date, Time and Day on Status Bar Expanded

1. you need to decompile your SystemUI.apk (please dont tell me how to do that)

2. extract my jelly.zip.. download on attachment below

3. copy 2 files blablablajellyblablabla.smali to SystemUI.apk/smali/com/android/systemui/statusbar/here

4. now you need to modify status_bar_expanded.xml find on SystemUI.apk/res/layout/here

for first you need to find this line :

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

paste this code below :

<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />

5. now recompile your file and push to system/app

Hello petrukgrinder ... is possible to make clock look like Kitkat ? :)
[Android Themes] xfeedbacker:
Very good worked here! thanks.

But when wifi and traffic data is turned off the Network Traffic Speed keep showing in the status bar :/

i want to just dont show it when the wifi and network traffic is turned off

i'm using cm7.2 can you help me pls?
[Android Themes] Dekill93:
hy all ... I want to modify the status bar expanded like a jelly bean in my galaxy mini android 2.3.6 but I do not quite understand to move the jelly bean clock toggle on and move to the bottom ... anyone who understands please help me ...
[Android Themes] Erhany:
Check my topics about that then move other authors which i mentioned in my topic. It will move you samsung guide line. Ohh sorry wrong quote ://
[Android Themes] EpullSalvatrucha:
got error while recompile after edit the statusbarservice.smali

D:\Rom tool\apktool1.5.2>apktool b systemui2
I: Checking whether sources has changed...
I: Smaling...
[121,44] Error for input '/': Invalid text
[121,49] Error for input '/': Invalid text
[121,55] Error for input '.': Invalid directive
[121,72] Error for input ';': Invalid text
[260,101] Error for input '/': Invalid text
[260,106] Error for input '/': Invalid text
[260,128] Error for input ';': Invalid text
[262,15] Error for input '.': Invalid directive
[810,101] Error for input '/': Invalid text
[810,106] Error for input '/': Invalid text
[810,128] Error for input ';': Invalid text
[121,36] mismatched input 'Landroid' expecting set null
[260,93] mismatched input 'Landroid' expecting set null
[810,93] mismatched input 'Landroid' expecting set null
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: D:\Rom tool\apktool1.5.2\systemui2\smali\com\android\systemui\statusbar\Status
BarService.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)

D:\Rom tool\apktool1.5.2>

someone help please..
[Android Themes] Mranggapo:
Does anybody know how to move toogles under the header ?

I mean lidroid toogles, my layout is like cm7 which i really dont like
[Android Themes] universocrema:
please for Rom MiniCM7 2.2.1 (x10 mini pro) Pleasee!!

I attach the systemui.apk http://www.mediafire.com/download.php?9i2u2by3se9j2r0
[Android Themes] Steven87:
im sorry to ask but..., isn't this statusbar from Achep? have you gotten permissions? or this is your original work? very good by the way...
[Android Themes] AiphNday:
It was answered few post before..

And i think AChep will give him the permission..

:D
[Android Themes] cyberangel22k:
can someone help me with this..? tried to do this but my statusbar disappears when installing it.. This is the ROM that i'm using is ICY Tiramisu

attached is my SystemUI.apk

thanks for the help..
[Android Themes] balben:
Hello!

I have a galaxy ace phone. My problem:im not find this text in file status bar expanded. this: <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">

where can i found it?i have cm7.2.
[Android Themes] saldymhmd:
to OP, maybe u should complete this tutorial how to move the carrier label to the bottom. Also, how to add setting shortcut beside the date. I've found it on Galaxy Young thread, maybe u can link it to first post.
[Android Themes] AiphNday:
+1 for this.

:D
[Android Themes] CataHd:
Can somewon help me ,i cant get it working
[Android Themes] x-dira:
Waiting........update ^^
[Android Themes] saldymhmd:
just add: android:textColor="@android:color/transparent" into this:

<TextView android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />

so, on the first post, OP need to change to:

<TextView [COLOR="Red"]android:textColor="@android:color/transparent"[/COLOR] android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
[Android Themes] universocrema:
I do not have these folders in my SystemUi.apk....

(SystemUI.apk/smali/com/android/systemui/statusbar/here)

(SystemUI.apk/res/layout/here)
[Android Themes] petrukgrinder:
Update How to add Settings button on status bar expanded and How to add carrier label before statusbar close on
[Android Themes] AiphNday:
Mantap kang.. :D

Eng : great job bro.. :D
[Android Themes] fjw0803:
Please remake your guides...please...
[Android Themes] universocrema:
Please for Rom MiniCM7 2.2.1..

I do not have these files in my systemui.apk
[Android Themes] x-dira:
plzz ....ATTACHED FILES

...:eek::rolleyes::(:crying::mad:
[Android Themes] vikasb32:
everythings is working but when i add setting button statusbar give me fc.

here is my problem

i dont have this line

"iput v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I"

not even when i replace v7 to v8

i have this line

"iput v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I"

so how to modified your code for above code.and in smali folder StatusBarService$8.smali is already exists so i change it to StatusBarService$10.smali and replace StatusBarService$8 to StatusBarService$10 in your code.
[Android Themes] AiphNday:
I got the same problem here.. :(

any suggestion??
[Android Themes] saldymhmd:
Same with me, just add below the:

put v5, p0, Lcom/android/systemui/statusbar/StatusBarService;->mEdgeBorder:I"

rename the StatusbarService$8 to StatusbarService$10. Edit StatusbarService$10, replace all code 'StatusbarService$8 to 'StatusbarService$10', save.
[Android Themes] AiphNday:
Add what??

please give me an example..

:D
[Android Themes] saldymhmd:
I mean, add this code below the code mentioned by me above

.line 333

const v7, 0x7f090027

invoke-virtual {v1, v7}, Lcom/android/systemui/statusba/ExpandedView;->findViewById(I)Landroid/vi

move-result-object v7

iput-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/

.line 334

iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsBut:Landroid/view/

iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landro

invoke-virtual {v7, v8}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListene

and also change the statusbarservice$8 to statusbarservice$10 on this code:

.line 1703

new-instance v0, Lcom/android/systemui/statusbar/StatusBarService$8;

invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/StatusBarService$8;-><init>

(Lcom/android/systemui/statusbar/StatusBarService;)V

iput-object v0, p0, Lcom/android/systemui/statusbar/StatusBarService;->mSettingsButListener:Landro

return-void.
[Android Themes] AiphNday:
Thanks bro..

Trying now..

:D
[Android Themes] chrissykess:
I'll try this in my X8 with Ginger Zaraki v10. Thanks. :3
[Android Themes] retroth97:
Is this possible to hide status bar when expanded? Just like in Jelly Bean.
[Android Themes] devilsking:
I followed the guide to add setting button but I cannot compile. Got this error, plz help :(
[Android Themes] autoradio78:
All perfect..but..in CM7..how to put power widget under (and not up) date, day and clock? If I wrtite in status_bar_expanded.xml:

<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/carrier_label_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/settings_button" android:layout_marginLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_notify_quicksettings" android:contentDescription="@string/accessibility_settings_button" />
<TextView android:textColor="@*android:color/transparent" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_clear" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/power_and_carrier" android:background="@drawable/title_bar_portrait" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginBottom="5.0dip" />
</LinearLayout>

Nothing happens..power widget remain on top..
[Android Themes] x-dira:
CAN U UPLOAD statusbarservice AND statusbarservice$10......

THANKS
[Android Themes] autoradio78:
Guys..clear button must be in .9.png..nope only png;)...See my result:

​

Please...any developer for help me in put Notification Power widget under day, clock etc..

Thanks;)
[Android Themes] vikasb32:
How did you mange to add setting button.it give me fc.
[Android Themes] autoradio78:
Follow this guide (work for CM7..my rom is CM7 based)...and use smali files from discussion..

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

Here my final result...

​

Please..any developer for my question..thanks;)
[Android Themes] saldymhmd:
No, just download the files on page one, rename the statusbarservice$8 to statusbarservice$10.

Guys, i need help how to move the clear button to the right side, and also how to switch the power widget on bottom,and the date to the top. Some help would be nice :D
[Android Themes] SpaceCaker:
Power wdiegt on cm can be don easily its

A small line in statusbar expanded.xml

On samsung stock rom it is smali

Also change dateview to textsize 0.009dip

And add android:background @drawable/datebackgroundexp

And make a black png named datebackground exp

Then when statbar is pulled down above part wont beseen
[Android Themes] AChep:
You are wrong ;) On cm7 to move power widget you should edit smali/java code
[Android Themes] SpaceCaker:
nope

on stock galaxy ace fw i need to do it in smali/java codee

]

but on cm7 i can move the powerwidget position in statusbar_expanded.xml

and the code that i need to move to other location is then

thats the powerwidget line

i can move it thanks to that to anywhere i want

only when i put it above close_on.9.png ( the handlebar png )

( or on the place where ics carrier name is ) then it will be buggy :P