[Solved] How to remove SIM Switcher from notification panel ? - LG G2 Mini

My question is how can i mod LGSystemUI to remove SIM switcher from notification panel on stock lollipop like in Monolithic OS ?

if someone can just point me to what xml file to edit i'll be thankfull !!

Decompile LGSystemUI.apk
Then edit res/statusbar_extended.xml
Sent from my D620r [Stock 4.4.2 , -V- Kernel]

didn't find statusbar_extended but status_bar_expanded
that's the line i should edit ?
Code:
<ViewStub android:layout_gravity="end" android:id="@id/keyguard_user_switcher" android:layout="@layout/keyguard_user_switcher" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_header_height_keyguard" />

I just compared between the original 4.4.2 LGSystemUI and the monilithic OS LGSystemUI
found in status_bar_expanded of the monolithic os that those 2 line are deleted
Code:
<include layout="@layout/network_stats" />
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="start|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_marginEnd="2.0dip" />
and the file network_stats.xml are deleted from res/layout
but it's different in 5.0.2 i can't find network_stats.xml or something similar
i attached the decompiled Layout if someone can help
PS: in 5.0.2 there is msim_status_bar_expanded.xml and status_bar_expanded.xml
i attached the two xml files to compare between them
everytime a replace the contenant of msim_status_bar_expanded with status_bar_expanded and recompile and flash SystemUI i get FCs

compared between the two status_bar_expanded
the msim_status_bar_expanded => when there is two sim card
the status_bar_expanded => when there is one sim card 2nd sim slot is empty
found two difference
- the first one
in status_bar_expanded those two lines :
Code:
<LinearLayout android:layout_gravity="top" android:id="@id/mascot_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/mascot_display_height" />
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
are replaced in msim_status_bar_expanded with those 3 lines :
Code:
<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/msim_carrier_label" />
<include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" layout="@layout/subs_label" />
<include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
- 2nd one :
in status_bar_expanded this line
Code:
1<include android:visibility="invisible" layout="@layout/keyguard_status_bar" />
is replaced with this line in msim_status_bar_expanded
Code:
1<include android:visibility="invisible" layout="@layout/msim_keyguard_status_bar" />
any one knows with XML ??
tried replace contante of msim_status_bar_expanded with the one of the status_bar_expanded and i got FC

Solved i managed to remove Sim Switcher from Expanded statusbar
and with Centred clock in statusbar

Related

[MOD][CM7] Clock and Date in center of statusbar/notification bar

This mod is for making Clock and Date to be in center of statusbar/notification bar.
Original Thread
ONLY FOR CM7 ROM's
What you need to do:
1.pull SystemUI.apk from your phone and put it on you pc.
2.decompile SystemUI.apk with apktool of apk maneger.
3.change lines in res/layout/status_bar.xml
4.here is complete xml it is actualy maded for latest CM7 build and this xml is from GingerDX v10 rom.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<com.android.systemui.statusbar.CmStatusBarView android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="20.0sp" android:typeface="normal" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="-1.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:paddingLeft="6.0dip" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:layout_alignParentRight="true" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.CmSignalText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="19.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.CmBatteryText android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<com.android.systemui.statusbar.CmBatteryMiniIcon android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/CmBatteryMiniIcon" android:layout_width="20.0dip" android:layout_height="25.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/buttons" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageButton android:id="@id/status_edge_left" android:background="@drawable/ic_statusbar_edge_right_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_home" android:background="@drawable/ic_statusbar_home_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep1" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_menu" android:background="@drawable/ic_statusbar_menu_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep2" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_back" android:background="@drawable/ic_statusbar_back_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep3" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_search" android:background="@drawable/ic_statusbar_search_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep4" android:background="@drawable/ic_statusbar_sep_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_quick_na" android:background="@drawable/ic_statusbar_na_up_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_sep5" android:background="@drawable/ic_statusbar_sep_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_hide" android:background="@drawable/ic_statusbar_hide_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageButton android:id="@id/status_edge_right" android:background="@drawable/ic_statusbar_edge_left_bottom" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="25.0dip" android:layout_height="25.0dip" />
</ImageSwitcher>
<com.android.systemui.statusbar.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@android:style/TextAppearance.StatusBar.Ticker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.TickerView>
</LinearLayout>
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.CmStatusBarView>
now compare it with your status_bar.xml or copy this one if you have all those lines above, except this
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
5.compile SystemUI.apk, sing it and push it to your phone
in attachment is moded SystemUI.apk for GingerDX v10 Rom.
Zip is flashable via CWM recovery.
Dev's you can use this mod for your Rom's but plese make credits to me
To Do:
fix covering clock and date in transparent statusbar (when you pull it down, clock and date are covering)
Thanks Eyama here's mine
MOD's please push this thread to the Theme and App section
flex96 said:
MOD's please push this thread to the Theme and App section
Click to expand...
Click to collapse
Well it's neither a theme nor is it an app, it is in fact part of android development as it modifies system apps and it requires some features that might not be shown in themes & apps i.e. in this case CWMrecovery as it is a flash, but go try be a moderator harder somewhere else
when I decompile the system apk i cant find were the xml goes, there's a log created but I cant find the xml code, sorry noob questions
nice work by the way.......
A bit off topic but its humorous reading the code on tapatalk as it puts smily faces everywhere
Good work though!
Sent from my U20i using Tapatalk
tekken179 said:
Thanks Eyama here's mine
Click to expand...
Click to collapse
nice looking theme! May I ask where you've downloaded it?
hi Eyama, i need ur help again
well i ws trying to compile modded systemui.apk but i m getting a lot of errors...my approach was:
java -jar apktool.jar if framework-res.apk
java -jar apktool.jar d systemui.apk mod
i then modded statusbar.xml only...I DIDNT TOUCH ANY PNG FILES
then i executed this command:
java -jar apktool.jar b mod systemuimod.apk
Click to expand...
Click to collapse
P.S. never mind i figured it out...a defective .9.png was causing all those errors
but i am getting a lot of errors...what am i doing wrong??
risayap said:
nice looking theme! May I ask where you've downloaded it?
Click to expand...
Click to collapse
Umm yea sure heres the bizz !
adw launcher EX
A theme (built in with gingerDX) (theme chooser)
homescreen grid is 5x5
removed icon labels
suave HD icon theme for LPP/ADW
mclock with miui skin
minimalistic text widget (weather stat)
removed the dock size down to 1 icon (placed the app drawer icon)
and adwnotifier for the notifier thingy majaber
tekken179 said:
Thanks Eyama here's mine
Click to expand...
Click to collapse
tekken179 said:
Umm yea sure heres the bizz !
adw launcher EX
A theme (built in with gingerDX) (theme chooser)
homescreen grid is 5x5
removed icon labels
suave HD icon theme for LPP/ADW
mclock with miui skin
minimalistic text widget (weather stat)
removed the dock size down to 1 icon (placed the app drawer icon)
and adwnotifier for the notifier thingy majaber
Click to expand...
Click to collapse
Yay thank you!
I guess I should be more creative in fixing my desktop from now on. I thought you had on a different theme all together! Pretty cool.
Installed dx then the time mod all works great, nice work
Sent from my U20i using xda premium
Only problem I have is the notification icons like text's and emails dont display, im guessing all this mod does is stretch the notification bar items to the left which cuts off notification icons
X10 Mini Pro runnin miniCM7Pro V7+ with custom red xperia theme
Sent from my U20i using XDA Premium
my notifications are normal and visable.witch rom are you using?
@drsood what are you using for decompiling and compiling and what for edit xml?
if you compiled it without errors then it should work but don't forget to sing it
Eyama said:
@drsood what are you using for decompiling and compiling and what for edit xml?
if you compiled it without errors then it should work but don't forget to sing it
Click to expand...
Click to collapse
i was initially using apktool...but now i have switched over to apk manager (although it itself uses apktool)...
the status_bar_close_on.9.png file is defective in the original systemui.apk which throws all those errors and warnings...i have fixed that n my personal apk is now free of any decompilation/compilation errors...
by d way, there is no need to sign a system aap...i have read that signing it may lead to uid errors..i m currently using the unsigned version on my mob
yes i changed status_bar_close_on.9.png without compiling i forgot about that hehe that's whay you have error.
well i alwasy sing apk and have no problems with it
Can someone make a flashable .zip for GinTonic.SE.. please.. Thanx..
faiyyaz said:
Can someone make a flashable .zip for GinTonic.SE.. please.. Thanx..
Click to expand...
Click to collapse
here it is for GinTonic.SE v1.3
i didnt test it beacuse im on GingerDX rom so backup your original SystemUI.apk
Eyama said:
here it is for GinTonic.SE v1.3
i didnt test it beacuse im on GingerDX rom so backup your original SystemUI.apk
Click to expand...
Click to collapse
thanx u made it Eyama..but after flashing, my status bar disappeared.. :/ so jus fixed back to normal.. is there any other way
Eyama said:
my notifications are normal and visable.witch rom are you using?
@drsood what are you using for decompiling and compiling and what for edit xml?
if you compiled it without errors then it should work but don't forget to sing it
Click to expand...
Click to collapse
Im using minicm7pro v7x, ive removed the statusbar mod for now until I can mess about and see why its not working
X10 Mini Pro runnin miniCM7Pro V7+ with custom red xperia theme
Sent from my U20i using XDA Premium
well on GinTonic is odexed SystemUI.apk and on GingerBread is deodexed maybe is this causing problem try with this http://zdune.mod2xtreme.com/android/tweaks.php it is a patch for odex apk's

[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
No, but you must replace it by another name with Carrier name
HitMaN/ said:
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
Click to expand...
Click to collapse
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">
[B][I] <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" />
[/I][/B] </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">
[B][I][COLOR="Red"] <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" />
[/COLOR][/I][/B] </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.
Thanks dude ... I ll try it n reply
Thanks dude ... I ll try it n reply
Click to expand...
Click to collapse
Sorry just noticed a huge mistake. I put that you wanted
android:focusable="true"
Click to expand...
Click to collapse
When intact you really want this :-S
android:visibility="gone"
Click to expand...
Click to collapse
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

[MOD][GUIDE] How to Add Carrier Label in Statusbar

This guide is for adding Carrier Label in Statusbar, inspired by Motorola Moto X and HTC First
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Don't know how to decompile? You can ask me to build your SystemUI :good:
Things you will need
PC or Laptop
apktool, zipalign and others
WinRAR or WinZip
Notepad++
Patience!
Click to expand...
Click to collapse
So, lets begin..
INSTALLING APKTOOL AND OTHER TOOLS
STEP 1
You must install apktool to your PC from HERE and other tools HERE
Extract it to a same directory same as the screenshot below
Then, copy cmd from Windows/System32 Directory (ex. C:\Windows\System32) and move it your apktool directory​
STEP 2
Download zipalign from HERE, move it to Windows Directory (ex. C:\Windows)​
GUIDE FOR ADDING CARRIER LABEL TO STATUSBAR
STEP 1
Before continuing, please MAKE SURE your apktool version is v1.5.2 or lower. Newer version of apktool will gives you error! See here
Copy your framework-res.apk from system/framework and SystemUI.apk from /system/app/ (/system/priv-app/ For KK-Based) then place it in your apktool directory​
STEP 2
Open cmd in your apktool directory, type
Code:
apktool if framework-res.apk
and
Code:
apktool if SystemUI.apk
then
Code:
apktool d SystemUI.apk
STEP 3
Go to SystemUI\res\layout\
Open status_bar.xml with Notepad++
Go to this
For ICS-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<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" />
For JB-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" 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.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" />
For JB-4.2/4.3-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" 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.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" />
For KK-Based SystemUI
Code:
<LinearLayout android:orientation="horizontal" 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.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" />
add this between those line
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
so it will look like this
For ICS-Based
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<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" />
For JB-Based
Code:
<LinearLayout android:orientation="horizontal" 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.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<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" />
For JB-4.2/4.3-Based
Code:
<LinearLayout android:orientation="horizontal" 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.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<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" />
For KK-Based
Code:
<LinearLayout android:orientation="horizontal" 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.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<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" />
and save​
STEP 4
For JB-Based, Go to SystemUI\res\layout\
Open status_bar_expanded_header.xml with Notepad++
Go to this
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="red"]android:background="@drawable/notification_header_bg"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
change to
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
and save​
STEP 5
Download this, place to the correct location on your compiled SystemUI​
STEP 6
Open cmd in your apktool directory, type
Code:
apktool b SystemUI al.apk
then open al.apk and SystemUI.apk with WinRAR, drag META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk same as the screenshot below, when it ask to compress click OK​
STEP 7
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk SystemUImod.apk
STEP 8
Move your SystemUImod.apk to your phone, rename to SystemUI.apk, move it to /system/app/ (/system/priv-app/ For KK-Based) and change permission to rw-r--r--
Then reboot​
reserved
CARRIER LABEL BEHAVIOR
CarrierLabel (for desired your custom color for Carrier Label, but if you using CM theme that changing your Clock's color to red, then CarrierLabel color will NOT changing (still white/holo_blue_light)
Clock (for following Clock's color, so if you using CM theme that changing your Clock's color to red, then Carrier Label color will turn to red too)
Click to expand...
Click to collapse
COLOR
holo_blue_light (for Holo Blue ex. Motorola Moto X Carrier Label on post #1)
white (for White ex. HTC First Carrier Label on post #1)
Click to expand...
Click to collapse
CREDITS TO
@Adi Aisiteru Reborn for his original guide here​[/CENTER]
Hmmm...nice guide my friends....
just one questions, is it possible to make the carrier label temporary disappear then a notification appear???
if you look closely, the status bar will stack up with a lot on icon if the the carrier label doesn't disappear and it will become more worse if they use center clock on their status bar....
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
iPusak Gaoq™ said:
Hmmm...nice guide my friends....
just one questions, is it possible to make the carrier label temporary disappear then a notification appear???
if you look closely, the status bar will stack up with a lot on icon if the the carrier label doesn't disappear and it will become more worse if they use center clock on their status bar....
Click to expand...
Click to collapse
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Diaz1999 said:
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Click to expand...
Click to collapse
good idea, but don't know yet where to start,. it can be improving smali code,.
Few links here worth reading - http://forum.xda-developers.com/showthread.php?t=1566639
Diaz1999 said:
@Adi Aisiteru Reborn, there's a question from another member, from my device forum, here's the question
Actually he's right. I'm not using Center Clock, but my Status Bar nearly full
(Vodafone in Indonesia lolz )
Are it's possible to make Carrier Label gone if there's a ongoing or unopened notification(s)?
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
Click to expand...
Click to collapse
Hmm.. Yeah, it should be.
In fact, now that I think about it, it should be pretty simple.
I'll do some experimenting and I'll get back to you. It won't be today, sadly, because I'm not near a pc but it'll be the next few days for sure.
Sent from my Xperia Z using XDA Premium
..Have you tried Tickle My Android yet?
So, this is how we can have the carrier label and our notification icons, without it all taking up too much room. We want the carrier label to be on the left side of the statusbar, but to vanish when a notification comes in.
This is the code for the stock ICS statusbar, with the carrier label added:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<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" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Without going into too much detail the statusbar basically consists of two horizontal LinearLayouts, one on top of the other.
The first LinearLayout, which is the full width of the statusbar, contains all our notification icons, status icons, signal icons, clock and so on. In the above code, it's called the '@id/icons' LinearLayout.
The second LinearLayout, which is also the full width of the statusbar, contains our notification text. This is what we see when a notification arrives. This is called the '@id/ticker' LinearLayout. (In case you were wondering, this is a reference to tickertape.)
Normally the ticker layout is empty because, although you may have uncleared notifications, you're not getting one all the time. When you do get a notification, the layout stops being empty and now contains icons and text for a second or two. During this time, the icons layout is pushed upwards, effectively making it disappear off the top of the screen.
To make our carrier label disappear once there's at least one notification icon to display, all we need to do is basically do the same thing.
So, this bit of code here goes from:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
to:
Code:
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="fill_parent"
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
Now, here's the catch. This is untested. I can't currently test this on my phone as it's too heavily modified and I don't have the stock SystemUI.apk anymore.
So it's up to you to try it out. Give it a whirl, see what happens and let me know...but make sure to always make a backup!
Ticklefish said:
So, this is how we can have the carrier label and our notification icons, without it all taking up too much room. We want the carrier label to be on the left side of the statusbar, but to vanish when a notification comes in.
This is the code for the stock ICS statusbar, with the carrier label added:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<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" />
<LinearLayout android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animationCache="false">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingTop="2.0dip">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Without going into too much detail the statusbar basically consists of two horizontal LinearLayouts, one on top of the other.
The first LinearLayout, which is the full width of the statusbar, contains all our notification icons, status icons, signal icons, clock and so on. In the above code, it's called the '@id/icons' LinearLayout.
The second LinearLayout, which is also the full width of the statusbar, contains our notification text. This is what we see when a notification arrives. This is called the '@id/ticker' LinearLayout. (In case you were wondering, this is a reference to tickertape.)
Normally the ticker layout is empty because, although you may have uncleared notifications, you're not getting one all the time. When you do get a notification, the layout stops being empty and now contains icons and text for a second or two. During this time, the icons layout is pushed upwards, effectively making it disappear off the top of the screen.
To make our carrier label disappear once there's at least one notification icon to display, all we need to do is basically do the same thing.
So, this bit of code here goes from:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
to:
Code:
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="fill_parent"
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/carrier_label" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:visibility="gone" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
</LinearLayout>
Now, here's the catch. This is untested. I can't currently test this on my phone as it's too heavily modified and I don't have the stock SystemUI.apk anymore.
So it's up to you to try it out. Give it a whirl, see what happens and let me know...but make sure to always make a backup!
Click to expand...
Click to collapse
Could you upload pics, carrier label with notifications working?
Enviado desde mi Nexus 7 usando Tapatalk 4 Beta
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
AF_624 said:
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
Click to expand...
Click to collapse
OK, give me some minutes to work
Sent from my cm-10.1.2-coconut using Tapatalk 4 Beta
AF_624 said:
hi,
@op is it possible for you to add this mod to my system ui? in withe please
i only have pc on work, and i can not use it to personal works...
my phone is a neo v, with darkrom (cm 10.1 legacyxperia based)
i leave a link to my systemui and framework https://app.box.com/s/awblj9kf7kd40dzrdsxm
many thanks
Click to expand...
Click to collapse
Done.
Here your SystemUI, download at the attachment
one is holo_blue_light Carrier Label
and another is white Carrier Label
Hmmm...i got another challenge for you guys :fingers-crossed:
this is for CM base roms that use CM Themes....is it possible to auto change the carrier label color matching the color in CM Themes??? it would be nice if the carrier label color change after we change our phone themes.... lets take an example HueRed Themes in Hue Themes By Kroz....all color in the status bar are red...so if the carrier label color auto change to match the themes color, it be perfect right???
iPusak Gaoq™ said:
Hmmm...i got another challenge for you guys :fingers-crossed:
this is for CM base roms that use CM Themes....is it possible to auto change the carrier label color matching the color in CM Themes??? it would be nice if the carrier label color change after we change our phone themes.... lets take an example HueRed Themes in Hue Themes By Kroz....all color in the status bar are red...so if the carrier label color auto change to match the themes color, it be perfect right???
Click to expand...
Click to collapse
Decompile yours, Go to /res/layout/
Open status_bar.xml
Search this line
Code:
android:textAppearance="@style/TextAppearance.StatusBar.[COLOR="Red"]CarrierLabel[/COLOR]"
change to
Code:
android:textAppearance="@style/TextAppearance.StatusBar.[COLOR="Red"]Clock[/COLOR]"
and erase all this inside /res/values/
styles.xml
Code:
[COLOR="Red"] <style name="TextAppearance.StatusBar.CarrierLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@*android:color/(for color; look at [URL="http://forum.xda-developers.com/showpost.php?p=43996483&postcount=4"][COLOR="Black"]post #4[/COLOR][/URL])</item>
</style>[/COLOR]
Then Carrier Label will follow your Clock's colour
Diaz1999 said:
Done.
Here your SystemUI, download at the attachment
one is holo_blue_light Carrier Label
and another is white Carrier Label
Click to expand...
Click to collapse
thanks bro, it works really nice
Sent from my Xperia Neo V using Tapatalk 2
Mod Help
Hello @Diaz1999,
Could you make me the status bar mod to my SystemUI.apk? I don't want to do it myself as I know I'm going to mess up something. If you would want to help me, I would like it in blue, just like the Moto X. Anyway, I hope you can help me. My email is https :// www . dropbox . com /s/ k4gpygje0su4mss/ SystemUI.apk (no spaces). Thanks!
williamgravel2000 said:
Hello @Diaz1999,
Could you make me the status bar mod to my SystemUI.apk? I don't want to do it myself as I know I'm going to mess up something. If you would want to help me, I would like it in blue, just like the Moto X. Anyway, I hope you can help me. My email is https :// www . dropbox . com /s/ k4gpygje0su4mss/ SystemUI.apk (no spaces). Thanks!
Click to expand...
Click to collapse
In progress, tomorrow will be uploaded
Will try tonight!!! good post as always

[Q] Changing a string item into a drawable?

Okay, so I'm using Android 4.3 on Xperia M, and the dialpad numbers are strings (their font change with the system's font). I want to make it drawables so that I can theme the dialpad using my own icons. Is this possible, and if it is, how should I do it? Should I edit one of the xmls after decompiling it?
The framework and the dialer/contacts apk:
https://drive.google.com/file/d/0B956mjWProLXRy0xUkJhYlhTTW8/edit?usp=sharing
https://drive.google.com/file/d/0B956mjWProLXY0xoRFAtM1JVQVU/edit?usp=sharing
https://drive.google.com/file/d/0B956mjWProLXQWd2ME1fczNTNUk/edit?usp=sharing
GeniuSotaKu said:
Okay, so I'm using Android 4.3 on Xperia M, and the dialpad numbers are strings (their font change with the system's font). I want to make it drawables so that I can theme the dialpad using my own icons. Is this possible, and if it is, how should I do it? Should I edit one of the xmls after decompiling it?
The framework and the dialer/contacts apk:
https://drive.google.com/file/d/0B956mjWProLXRy0xUkJhYlhTTW8/edit?usp=sharing
https://drive.google.com/file/d/0B956mjWProLXY0xoRFAtM1JVQVU/edit?usp=sharing
https://drive.google.com/file/d/0B956mjWProLXQWd2ME1fczNTNUk/edit?usp=sharing
Click to expand...
Click to collapse
Change @string to @drawable should work and place the pngs
SpinXO said:
Change @string to @drawable should work and place the pngs
Click to expand...
Click to collapse
Thanks.
I want to ask another thing, if it's fine with you.
EDIT: App force close after a few seconds after recompile, and the dialpad remains the same. Tell me where I went wrong. The "nothinghere" is a transparent image.
HTML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:layout_width="fill_parent" android:layout_height="fill_parent" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ex="http://schemas.android.com/apk/res/com.sonyericsson.android.socialphonebook">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="0.0dip" android:baselineAligned="false" android:layout_weight="15.0" android:layoutDirection="ltr">
<com.sonyericsson.android.socialphonebook.ui.widget.DialpadButtonView android:id="@id/one" android:focusable="true" android:clickable="true" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:layoutDirection="ltr" android:paddingStart="@dimen/dialpad_button_padding_left" ex:normalBackground="@drawable/dial_num" ex:pressedBackground="@drawable/dial_num_pressed">
<TextView android:id="@id/oneNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_1_txt" android:contentDescription="@string/spb_accessibility_one_and_voicemail_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_centerVertical="true" android:layout_toEndOf="@id/oneNum">
<TextView android:id="@id/oneSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/nothinghere" android:layout_marginStart="@dimen/dialpad_search_lable_margin_left" style="@style/Dialpad.Label" />
<ImageView android:id="@id/voicemail_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/dialpad_1" />

[GUIDE][MOD] Lockscreen style Note 4 for S5 (new Update post#2)

VN-TEAM present Guide mod Locksceen style Note 4 for S5 !
First, This guide only help you to mod lockscreen Galaxy S5 ( Time, clock, alarm, charging like Note4) , Not help you to enable Note4 lockscreen unlock effect or anymore .
Just tested on S5 ported rom Tweaked stock S5 port and My S5 port rom ( not avaiable on XDA) , Galaxy S4 ( 4.4.2) .
However this guide can apply for Note 2, S4, N3 neo... etc running Kitkat 4.4.2 .
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
*Note :
- You must have and basic knowledge about Decompiling and compiling apks .
- Text editor using Notepad ++
- Copy Keyguard.apk from your rom to PC for modding .
1. Move clock from Right to center .
Decompile Keyguard.apk, navigate to > Keyguard.apk/res/layout/Sec_single_clock.xml
Open Sec_single_clock.xml with Notepad++ :
See codes below ( Marked in red zone.)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_single_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/kg_singleclock_margin_left" android:layout_marginTop="@dimen/kg_singleclock_margin_top" android:layout_marginRight="@dimen/kg_singleclock_margin_right"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="bottom" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/keyguard_single_clock_total" android:focusable="true" android:clickable="true" android:layout_width="wrap_content" android:layout_height="@dimen/kg_singleclock_height">
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm_kor" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="#ffffffff" android:gravity="bottom" android:id="@id/keyguard_single_clock_time" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/kg_widget_common_date_text_size" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_date" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow" />
<View android:visibility="gone" android:layout_width="20.0dip" android:layout_height="0.0dip" />
2. Move Weather and Shealth to center .
Navigate to Keyguard.apk/res/layout/sec_adaptive_event_container_small.xml
See code below ( Marked in red zone)
Change to the whole line with this code:​
Code:
<com.android.keyguard.sec.AdaptiveEventContainerSmall android:gravity="center" android:orientation="horizontal" android:id="@id/adaptive_event_container_small" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="ltr" android:layout_marginStart="19.0dip" android:layout_marginEnd="19.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/emergency_container" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/adaptive_info_area" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/weather_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ped_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
3. Move charging battery to center .
Navigate to Keyguard.apk/res/layout/keyguard_message_area.xml
See code below (Marked in red zone)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.KeyguardMessageArea android:textAppearance="?android:textAppearance" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/keyguard_message_area" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow"
xmlns:android="http://schemas.android.com/apk/res/android" />
</LinearLayout>
4. Move alarm icon to Center .
Navigate to Keyguard.apk/res/layout/sec_alarm.xml
See code below (Marked in red zone):
Change to the whole line with this code:​
Code:
<LinearLayout android:visibility="gone" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"
5. Download Note4 lockscreen wallpaper from Here
Copy it to : Keyguard.apk/res/drawable-xxhdpi/
6. All done and now Recompile apk .
Copy again Keyguard.apk to System/priv-app by Root explorer ( or etc)​
Special thanks to
:
VN-team
@thanhfhuongf
@tpv1988
Forum Samsungviet.vn
Click to expand...
Click to collapse
Update 16 Oct 2014 :
7. Move Owner Infomation from right to center .
Navigate to Keyguard.apk/res/layout/sec_owner_info .
Find this line :​
Code:
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
Change the whole line with this code :​
Code:
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
Save and done !
me......................
thanks for posting stuff like this helps loads
devs dont seem to like to share as much on here as they used to
juDGEY2k10 said:
thanks for posting stuff like this helps loads
devs dont seem to like to share as much on here as they used to
Click to expand...
Click to collapse
Maybe they want to keep it for owner rom but VN-TEAM will share everything we can do .
Can we also move finger scanner indicator, so to change dpi and stil have it 8n center?
thanks My friend :good:
You have a great team
Great tutorial! Thanks. Do you know how to do the same with the accuweather app?
Btw, after recompiling, do you need to add the original META-INF and AndroidManifest?
Edit: my SystemUI crashes when I add it to the priv-app folder, and then my phone freezes up completely and I am unable to do anything. I had to retore from a backup.
My phone is a S4 i9505, and I have citymen34's lockscreen/keyguard.
brhoomy101 said:
thanks My friend :good:
You have a great team
Click to expand...
Click to collapse
Thanks, mate ! we will helping together
oracle01642 said:
Great tutorial! Thanks. Do you know how to do the same with the accuweather app?
Btw, after recompiling, do you need to add the original META-INF and AndroidManifest?
Edit: my SystemUI crashes when I add it to the priv-app folder, and then my phone freezes up completely and I am unable to do anything. I had to retore from a backup.
My phone is a S4 i9505, and I have citymen34's lockscreen/keyguard.
Click to expand...
Click to collapse
You need signed your APK before copying keyguard.apk into your rom .
ksr007 said:
You need signed your APK before copying keyguard.apk into your rom .
Click to expand...
Click to collapse
Do I also need to add the original META-INF and AndroidManifest?
---------- Post added at 06:09 PM ---------- Previous post was at 05:58 PM ----------
ksr007 said:
You need signed your APK before copying keyguard.apk into your rom .
Click to expand...
Click to collapse
It still crashed my phone after signing it? I did everything right in the tutorial, I am alway very careful not to make any mistakes.
oracle01642 said:
Do I also need to add the original META-INF and AndroidManifest?
---------- Post added at 06:09 PM ---------- Previous post was at 05:58 PM ----------
It still crashed my phone after signing it? I did everything right in the tutorial, I am alway very careful not to make any mistakes.
Click to expand...
Click to collapse
Yes ! signed apk need META-INF and AndroidManifest. Using "advance apktool" will auto signed apk for you .
Code in tutorial just tested on S5 rom port . Maybe it's differences with stock rom .
Peut on changer la couleur de la font ?
Great mod. Just one question. Is there a way to bring everything down a few lines. It seems too high on the page. See screenshot.
Can someone help me, I like to know if you can change the font color
help me please
ksr007 said:
VN-TEAM present Guide mod Locksceen style Note 4 for S5 !
First, This guide only help you to mod lockscreen Galaxy S5 ( Time, clock, alarm, charging like Note4) , Not help you to enable Note4 lockscreen unlock effect or anymore .
Just tested on S5 ported rom Tweaked stock S5 port and My S5 port rom ( not avaiable on XDA) , Galaxy S4 ( 4.4.2) .
However this guide can apply for Note 2, S4, N3 neo... etc running Kitkat 4.4.2 .
*Note :
- You must have and basic knowledge about Decompiling and compiling apks .
- Text editor using Notepad ++
- Copy Keyguard.apk from your rom to PC for modding .
1. Move clock from Right to center .
Decompile Keyguard.apk, navigate to > Keyguard.apk/res/layout/Sec_single_clock.xml
Open Sec_single_clock.xml with Notepad++ :
See codes below ( Marked in red zone.)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_single_clock" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/kg_singleclock_margin_left" android:layout_marginTop="@dimen/kg_singleclock_margin_top" android:layout_marginRight="@dimen/kg_singleclock_margin_right"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="bottom" android:layout_gravity="center_horizontal" android:orientation="horizontal" android:id="@id/keyguard_single_clock_total" android:focusable="true" android:clickable="true" android:layout_width="wrap_content" android:layout_height="@dimen/kg_singleclock_height">
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm_kor" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="#ffffffff" android:gravity="bottom" android:id="@id/keyguard_single_clock_time" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_text_shadow" />
<com.android.keyguard.sec.SecKeyguardTextClock android:textSize="16.0dip" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_ampm" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:shadowColor="#cc000000" android:textAllCaps="true" android:format12Hour="@string/status_view_ampm_for_12_hours" android:format24Hour="@string/status_view_ampm_for_24_hours" style="@style/keyguard_text_shadow" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_horizontal" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/kg_widget_common_date_text_size" android:textColor="#ffffffff" android:id="@id/keyguard_single_clock_date" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#cc000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow" />
<View android:visibility="gone" android:layout_width="20.0dip" android:layout_height="0.0dip" />
2. Move Weather and Shealth to center .
Navigate to Keyguard.apk/res/layout/sec_adaptive_event_container_small.xml
See code below ( Marked in red zone)
Change to the whole line with this code:​
Code:
<com.android.keyguard.sec.AdaptiveEventContainerSmall android:gravity="center" android:orientation="horizontal" android:id="@id/adaptive_event_container_small" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layoutDirection="ltr" android:layout_marginStart="19.0dip" android:layout_marginEnd="19.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/emergency_container" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:layout_gravity="center_horizontal" android:id="@id/adaptive_info_area" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/weather_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/ped_container" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
3. Move charging battery to center .
Navigate to Keyguard.apk/res/layout/keyguard_message_area.xml
See code below (Marked in red zone)
Change to the whole line with this code:​
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:paddingLeft="20.0dip" android:paddingRight="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.KeyguardMessageArea android:textAppearance="?android:textAppearance" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center" android:id="@id/keyguard_message_area" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:shadowColor="#7f000000" android:fontFamily="sans-serif" style="@style/keyguard_text_shadow"
xmlns:android="http://schemas.android.com/apk/res/android" />
</LinearLayout>
4. Move alarm icon to Center .
Navigate to Keyguard.apk/res/layout/sec_alarm.xml
See code below (Marked in red zone):
Change to the whole line with this code:​
Code:
<LinearLayout android:visibility="gone" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content"
5. Download Note4 lockscreen wallpaper from Here
Copy it to : Keyguard.apk/res/drawable-xxhdpi/
6. All done and now Recompile apk .
Copy again Keyguard.apk to System/priv-app by Root explorer ( or etc)​
Special thanks to
:
Click to expand...
Click to collapse
I want to remove weather in the lock screen. Please describe how can I do
Thanks a lot
Is possible have Keyguard.apk modified i have not pc and i do not modifi please. Thanks
Look in my rom Thread allready there
Project X Rom 9505 S5/Note4 Style https://m.facebook.com/projectxrom
dack23 said:
Look in my rom Thread allready there
Project X Rom 9505 S5/Note4 Style https://m.facebook.com/projectxrom
Click to expand...
Click to collapse
You are The best
---------- Post added at 02:21 PM ---------- Previous post was at 02:20 PM ----------
dack23 said:
Look in my rom Thread allready there
Project X Rom 9505 S5/Note4 Style https://m.facebook.com/projectxrom
Click to expand...
Click to collapse
But now i have s5
---------- Post added at 02:22 PM ---------- Previous post was at 02:21 PM ----------
uberto.costanzo said:
You are The best
---------- Post added at 02:21 PM ---------- Previous post was at 02:20 PM ----------
But now i have s5
Click to expand...
Click to collapse
I have s5 now

Categories

Resources