New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
HitMaN/
Old
#1  
Junior Member - OP
Thanks Meter 6
Posts: 15
Join Date: May 2012
Unhappy [Q]Can the Carrier tag in status bar be REMOVED????

Hey GUYs!!!

Its really annoying that my status bar is Showing two Carrier Tags
Can any1 tell me How to remove them all ??? pls


PLEASE see the attachment for my Problem..


Sent from
Xperia Ray running Stock ICS
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2012-05-21-00-17-37.jpg
Views:	309
Size:	14.5 KB
ID:	1073195  
 
Azev
Old
#2  
Azev's Avatar
Senior Member
Thanks Meter 58
Posts: 174
Join Date: Dec 2007
No, but you must replace it by another name with Carrier name
Toshiba Folio 100 > Android 4.1.2 CM10 Alpha 5
Xperia Arc > Android 4.0.4 Original Xperia T ICS Rom v6.0 & KTG Kernel
Galaxy Note 2 > Android 4.1.2 XXDLK7 Poppuri Simple Theme Edition Transparent
 
pvyParts
Old
(Last edited by pvyParts; 21st May 2012 at 02:36 PM.) Reason: bloody xda app deleting my code....
#3  
pvyParts's Avatar
Recognized Developer
Thanks Meter 2105
Posts: 1,667
Join Date: Oct 2010
Quote:
Originally Posted by HitMaN/ View Post
Hey GUYs!!!

Its really annoying that my status bar is Showing two Carrier Tags
Can any1 tell me How to remove them all ??? pls

PLEASE see the attachment for my Problem..

Sent from
Xperia Ray running Stock ICS
removing is easy with some small edits to the XML's,

1 - decompile the statusbar.

2 - goto the res/layout folder

3 - open the statusbar_tracking.xml file

4 - change the line with this
Code:
com.android.systemui.statusbar.phone.CarrierLabel
to include
** fixed now sry **
Code:
android:visibility="gone"
eg.
my file looks like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingVi ew android:orientation="vertical" 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">
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
 <com.android.systemui.statusbar.phone.CarrierLab el android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
 </FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHan dle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHand le>
</com.android.systemui.statusbar.phone.TrackingView>
turn it into this

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.TrackingVi ew android:orientation="vertical" 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">
<FrameLayout android:background="@drawable/notification_tracking_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
 <com.android.systemui.statusbar.phone.CarrierLab el android:visibility="gone" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" />
 </FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHan dle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHand le>
</com.android.systemui.statusbar.phone.TrackingView>
that will hide the carrier lable, never to be seen again. it will also resize the notification are to be a bit bigger.

the reason you DO NOT delete the line is that the code can still update the carier lable when it needs to even tho it is invisible. if you delete it you would have to remove all the code that updates it too and that is a big job in smali... (far too hard)

Hope that helped.

Pvy.
The Following User Says Thank You to pvyParts For This Useful Post: [ Click to Expand ]
 
HitMaN/
Old
#4  
Junior Member - OP
Thanks Meter 6
Posts: 15
Join Date: May 2012
Thanks dude ...:) I ll try it n reply
The Following User Says Thank You to HitMaN/ For This Useful Post: [ Click to Expand ]
 
pvyParts
Old
(Last edited by pvyParts; 21st May 2012 at 02:37 PM.)
#5  
pvyParts's Avatar
Recognized Developer
Thanks Meter 2105
Posts: 1,667
Join Date: Oct 2010
Quote:
Thanks dude ...:) I ll try it n reply
Sorry just noticed a huge mistake. I put that you wanted

Quote:
android:focusable="true"
When intact you really want this :-S

Quote:
android:visibility="gone"
I got it right in the code snipet tho lol... So sorry bout that I'll fix the post now.

Pvy

Sent from my TEAM Powered Arc S