[MOD][XT1033] Remove carrier label and SIM numbers for statusbar[Do-It-Yourself] - Moto G Themes and Apps

Hey guys, i just modded our stock kitkat rom based on asian to remove the carrier label and cell broadcast from statusbar. I will share my flashable zip and also the method to do this. My big thanks to @siddarth.gtm and @ vikasb32 for helping me out on this!!
Code:
[SIZE="4"][COLOR="Red"]This mod is based on stock deodexed rom and wont work on odexed ones![/COLOR][/SIZE]
How to do:
1.Decompile ur systemui.apk and open res/layout/msim_signal_cluster_view.xml (to remove SIM numbers in statusbar):
2.Now find this line:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
and change to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
also change:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
3.Now for the carrier label part open res/layout/statusbar_expanded.xml:
find these lines and change the width and height like the above method to 0.0dip:
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
and also for
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id_2" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label_2" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel_2" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
4.Recompile and ur done!!
Here is the Flashable zip for deodexed roms
CarrierLabel&SIM Number.zip​
Click to expand...
Click to collapse
I dont ask for donations but please do press thanks button a click of a button is never gonna hurt!!​

yeshwanthvshenoy said:
Hey guys, i just modded our stock kitkat rom based on asian to remove the carrier label and cell broadcast from statusbar. I will share my flashable zip and also the method to do this. My big thanks to @siddarth.gtm and @ vikasb32 for helping me out on this!!
Code:
[SIZE="4"][COLOR="Red"]This mod is based on stock deodexed rom and wont work on odexed ones![/COLOR][/SIZE]
How to do:
1.Decompile ur systemui.apk and open res/layout/msim_signal_cluster_view.xml (to remove SIM numbers in statusbar):
2.Now find this line:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
and change to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
also change:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
3.Now for the carrier label part open res/layout/statusbar_expanded.xml:
find these lines and change the width and height like the above method to 0.0dip:
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
and also for
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id_2" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label_2" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel_2" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
4.Recompile and ur done!!
I dont ask for donations but please do press thanks button a click of a button is never gonna hurt!!​
Click to expand...
Click to collapse
Screenshot?
Sent from my XT1033 using Tapatalk

rajibie said:
Screenshot?
Click to expand...
Click to collapse
thanks for reminding i have made the attachment check OP and a kind request please dont quote full OP just quote the author is enough! and btw kindly hit the thanks button!

yeshwanthvshenoy said:
Hey guys, i just modded our stock kitkat rom based on asian to remove the carrier label and cell broadcast from statusbar. I will share my flashable zip and also the method to do this. My big thanks to @siddarth.gtm and @ vikasb32 for helping me out on this!!
Code:
[SIZE="4"][COLOR="Red"]This mod is based on stock deodexed rom and wont work on odexed ones![/COLOR][/SIZE]
How to do:
1.Decompile ur systemui.apk and open res/layout/msim_signal_cluster_view.xml (to remove SIM numbers in statusbar):
2.Now find this line:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
and change to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
also change:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
to:
Code:
<TextView android:layout_gravity="bottom|right|center" android:id="@id/mobile_slot_label_2" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="[COLOR="Red"]0.0dip[/COLOR]" style="@style/TextAppearance.StatusBar.SimSlotLabel" />
3.Now for the carrier label part open res/layout/statusbar_expanded.xml:
find these lines and change the width and height like the above method to 0.0dip:
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
and also for
Code:
[LIST=1]
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.SimSlotLabel" android:gravity="center" android:id="@id/carrier_slot_id_2" android:paddingRight="3.0dip" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:id="@id/carrier_label_2" android:visibility="gone"
[*]<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:ellipsize="marquee" android:gravity="center" android:layout_gravity="center_horizontal" android:id="@id/cellbroadcastLabel_2" android:focusable="true" android:focusableInTouchMode="true" android:visibility="gone"
[/LIST]
4.Recompile and ur done!!
I dont ask for donations but please do press thanks button a click of a button is never gonna hurt!!​
Click to expand...
Click to collapse
Thanks for the DIY steps, it's rare to find a post with a DIY and I enjoyed it. You have my thanks :good: :victory:

Can u mention how to remove sim logo ? I have broken sim no1 so i cant use it i want to disable it for ever =) >>
thanks in advance !

Odexed Please
Odexed When????

Romiui said:
Can u mention how to remove sim logo ? I have broken sim no1 so i cant use it i want to disable it for ever =) >>
thanks in advance !
Click to expand...
Click to collapse
u want to disable sim 2 signal icon? there is already a mod for that check this thread

yeshwanthvshenoy said:
u want to disable sim 2 signal icon? there is already a mod for that check this thread
Click to expand...
Click to collapse
I read this !!
I said I need to disable sim 1 not sim 2
Sim 2 already running in my phone
The only problem with sim 1 broken !!!

Romiui said:
I read this !!
I said I need to disable sim 1 not sim 2
Sim 2 already running in my phone
The only problem with sim 1 broken !!!
Click to expand...
Click to collapse
my guide says exactly that to remove both sims if u do it for one then only one will be removed from statusbar bro!

Do it yourself
Romiui said:
I read this !!
I said I need to disable sim 1 not sim 2
Sim 2 already running in my phone
The only problem with sim 1 broken !!!
Click to expand...
Click to collapse
in msim_signal_cluster_view.xml
Code:
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
change all wrap_content to 0.0dip

sidharth.gtm said:
in msim_signal_cluster_view.xml
Code:
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_gravity="bottom|left|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
change all wrap_content to 0.0dip
Click to expand...
Click to collapse
aha !! thats called solution =d ..
I'll Try it today !
Thank u
Edit: working Perfect But still there is gap ! How to remove it =D ..
i believe its here some where :
<View android:id="@id/spacer" android:layout_width="8.0dip" android:layout_height="8.0dip" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<FrameLayout android:id="@id/mobile_combo_sub2" android:layout_width="wrap_content" android:layout_height="wrap_content">
Click to expand...
Click to collapse

How to open xml file and edit?????
I tried notepad,wordpad and few others software but i failed to view the contents of the XML file please help

Bhavyasaran said:
I tried notepad,wordpad and few others software but i failed to view the contents of the XML file please help
Click to expand...
Click to collapse
try notepad ++

HELP ME
I was unable to remove 2nd sim icon in CRdroid rom this is the best available rom for motorola moto g XT1033...........please modify systemUI.APK for this rom........http://forum.xda-developers.com/sho...ying::crying::crying::crying::crying::crying:

Bhavyasaran said:
I was unable to remove 2nd sim icon in CRdroid rom this is the best available rom for motorola moto g XT1033...........please modify systemUI.APK for this rom........http://forum.xda-developers.com/sho...ying::crying::crying::crying::crying::crying:
Click to expand...
Click to collapse
send the systemui i ll do it for u

http://d-h.st/hjH ................ remove 2nd sim icon and number from 1st sim icon...........thank you my friend..

http://d-h.st/6lF ................ remove 2nd sim icon and number from 1st sim icon...........thank you my friend..

Bhavyasaran said:
http://d-h.st/hjH ................ remove 2nd sim icon and number from 1st sim icon...........thank you my friend..
Click to expand...
Click to collapse
yeshwanthvshenoy said:
send the systemui i ll do it for u
Click to expand...
Click to collapse
Hey bro, can you plz remove de sim1 and 2 numbers in CM 11? The SystemUI.apk is attached

Bhavyasaran said:
http://d-h.st/6lF ................ remove 2nd sim icon and number from 1st sim icon...........thank you my friend..
Click to expand...
Click to collapse
nArdow said:
Hey bro, can you plz remove de sim1 and 2 numbers in CM 11? The SystemUI.apk is attached
Click to expand...
Click to collapse
i ll do both on june 14th guys exams so kinda busy

yeshwanthvshenoy said:
i ll do both on june 14th guys exams so kinda busy
Click to expand...
Click to collapse
All right bro, thanks a lot! I'll be waiting =P
Sent from my Moto G using XDA Free mobile app

Related

[MOD]PARANOIDANDROID 1.9.1a/1.9.4a_power button on navbar&HOW to

Hi guys,I made a mod for PARANOIDANDROID 1.9.1a/1.9.4a And use it myself.
I add a power button into the navbar in tablet mode (and in tablet mode only) to save my power button .
here is the screenshot:
View attachment 1231213​
And:it is 1)back; 2)home ; 3&4)recent app/menu(long press);5)power(long press to start the advanced power menu).
Notice:
1)It is for PARANOIDANDROID 1.9.1a/1.9.4a,I dont test it in other version;
2)It just works in tablet mod;
3)backup ur system before flashing it,I dont guarantee it can prefectly work on ur device;
4)recovery flashable.
Here is the package
(for 1.9.4): View attachment 1232599
(for 1.9.1):View attachment 1231460
HOW to:
Decompile SystemUI
navigate to SystemUI/res/layout/system_bar.xml then open with notepad+
find the code between <LinearLayout ></LinearLayout>:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/navigationArea" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<RelativeLayout android:id="@id/recentsArea" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</RelativeLayout>
</LinearLayout>
And add this code before </LinearLayout>
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/power" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
I change the default
Code:
android:layout_width="fill_parent"
to
Code:
android:layout_width="wrap_content"
,or the button size will be too big.
& I prefer the honeycomb style icon ,so i change the
Code:
android:src="@drawable/ic_sysbar_back(or others)"
to link to the icon I like.
Recompile&Enjoy your work.
mumumusuc said:
Hi guys,I made a mod for PARANOIDANDROID 1.9.3a And use it myself.
I add a power button into the navbar in tablet mode (and in tablet mode only) to save my power button .
here is the screenshot:
View attachment 1231213​
And:it is 1)back; 2)home ; 3&4)recent app/menu(long press);5)power(long press to start the advanced power menu).
Notice:1)It is for PARANOIDANDROID 1.9.3a,I dont test it in other vision(it may work or not,u can try it);
2)It just works in tablet mod;
3)backup ur system before flashing it,I dont guarantee it can prefectly work on ur device;
4)recovery flashable.
Here is the package: View attachment 1231232
Click to expand...
Click to collapse
Since he pulled the 1.9.3 version, isn't this irrelevant? Does this mod work with 1.9.1?
akira02rex said:
Since he pulled the 1.9.3 version, isn't this irrelevant? Does this mod work with 1.9.1?
Click to expand...
Click to collapse
Sorry ,I dont notice that
I will rebuild it later for V1.9.1
akira02rex said:
Since he pulled the 1.9.3 version, isn't this irrelevant? Does this mod work with 1.9.1?
Click to expand...
Click to collapse
I build one for the newest 1.9.4 and release the method,thank u for the advice:victory:
mumumusuc said:
Hi guys,I made a mod for PARANOIDANDROID 1.9.1a/1.9.4a And use it myself.
I add a power button into the navbar in tablet mode (and in tablet mode only) to save my power button .
here is the screenshot:
View attachment 1231213​
And:it is 1)back; 2)home ; 3&4)recent app/menu(long press);5)power(long press to start the advanced power menu).
Notice:
1)It is for PARANOIDANDROID 1.9.1a/1.9.4a,I dont test it in other version;
2)It just works in tablet mod;
3)backup ur system before flashing it,I dont guarantee it can prefectly work on ur device;
4)recovery flashable.
Here is the package
(for 1.9.4): View attachment 1232599
(for 1.9.1):View attachment 1231460
HOW to:
Decompile SystemUI
navigate to SystemUI/res/layout/system_bar.xml then open with notepad+
find the code between <LinearLayout ></LinearLayout>:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/navigationArea" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentLeft="true">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<RelativeLayout android:id="@id/recentsArea" android:clipChildren="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_menu" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</RelativeLayout>
</LinearLayout>
And add this code before </LinearLayout>
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/power" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
I change the default
Code:
android:layout_width="fill_parent"
to
Code:
android:layout_width="wrap_content"
,or the button size will be too big.
& I prefer the honeycomb style icon ,so i change the
Code:
android:src="@drawable/ic_sysbar_back(or others)"
to link to the icon I like.
Recompile&Enjoy your work.
Click to expand...
Click to collapse
you are cool
Wow..great mod..
mumumusuc said:
I change the default
Code:
android:layout_width="fill_parent"
to
Code:
android:layout_width="wrap_content"
,or the button size will be too big.
Click to expand...
Click to collapse
hi mumumusuc.
i'm trying to lower the navigation buttons distance so i decompiled SystemUI.apk and edited SystemUI/res/layout/system_bar.xml (yes, i'm in "tabletui small" mode).
i'm able to change the drawables but not to change their distance. there's no padding or margin setting and changing layout_width to wrap_content seems not to have any effect...
could you give me some suggestion? thanks a lot!

[MOD][GUIDE][JB 4.1.2] AOSP Style Status Bar on Samsung ROMs

G'Day XDA,
I wanted to share with you a few quick and easy mods that I found while modding my phone. Here we go...
[SIZE=+2]AOSP STYLE CLEAR-ALL BUTTON IN EXPANDED STATUS BAR on SAMSUNG ROMs[/SIZE]
Original:
{
"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"
}
Mod:
Ok first things first, you need to decompile SystemUI.apk (I will assume that you know how to copy the apk from your phone using a root explorer and decompile using a program like APK Tool).
Once it has decompiled successfully, open up /res/layout/tw_status_bar_expanded_header.xml and you will see this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Now you need to delete everything after the line which starts with <com.android.systemui.statusbar.RotateToggle and replace it with the following code:
Code:
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
So your finished file should look exactly like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
</LinearLayout>
What this does is it moves the settings icon from the far right to the left next to the date (notice the first line we deleted started with <Space and the line we replaced it with was <ImageView android:id="@id/settings_button") and also adds the clear all button (@id/clear_all_button) to the top right.
Now save tw_status_bar_expanded_header.xml and close it.
So now the clear all button is going to be showing on the top right of the status bar, but there will also be a clear all button in the notification area, like this picture:
So we need to open up tw_status_bar_expanded.xml and look for the following line:
Code:
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="@color/tw_status_bar_clear_btn_text" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.100000024dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="4.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
and delete it.
The reason why we delete that is because it is the button which has the text Clear All that appears on the right side of the Notifications header when you have notifications, which we don't need as there is already a nice AOSP style button we can press in the top right of the expanded status bar .
Now save tw_status_bar_expanded.xml and close it.
Now recompile SystemUI.apk, and either change it's name by removing the 'unsigned' from the start of it's name, push it to your device (don't forget to change permissions to RW-R--R--) and reboot OR take those 2 files from the newly compiled unsignedSystemUI.apk and put them in a VRTheme zip, flash them in recovery and VOILA! I have included a VRTheme Zip to this post called 'AOSP Clear All Button' which you can download and flash in recovery as well.
Easy, even for a noob like me Enjoy.
[SIZE=+2]EDIT CLEAR ALL BUTTON TO INCLUDE FOCUS OPTION[/SIZE]
You can also do a minor change to an xml file and add an icon to SystemUI.apk to allow for a 'focus' option of the new clear all button that you have re-added.
In your APK Tool directory in /projects/SystemUI.apk navigate to /res/drawable and open up ic_notify_clear.xml you will see this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_clear_pressed" />
<item android:drawable="@drawable/ic_notify_clear_normal" />
</selector>
So this means the button acts in a very basic way. When the button appears in the expanded status bar, you will be looking at the icon ic_notify_clear_normal.png which is in the /res/drawable-hdpi folder, and when you press it, it changes to the icon ic_notify_clear_pressed.png which is also in the /res/drawable-hdpi folder. What we want to do is add some more code in there to allow for the icon to change to a third icon when we press and hold (focus) on it,
So you need to change the content of ic_notify_clear.xml to the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_clear_pressed" />
<item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/ic_notify_clear_normal" />
<item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/ic_notify_clear_normal" />
<item android:state_pressed="true" android:drawable="@drawable/ic_notify_clear_pressed" />
<item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/ic_notify_clear_focus" />
<item android:state_enabled="true" android:drawable="@drawable/ic_notify_clear_normal" />
<item android:state_focused="true" android:drawable="@drawable/ic_notify_clear_focus" />
<item android:drawable="@drawable/ic_notify_clear_normal" />
</selector>
So what this does is it tells the SystemUI.apk to change the icon we see when we press and hold on the clear all button from the normal ic_notify_clear_press.png to a new icon which I have called ic_notify_clear_focus.png which you will need to create using an icon editor. I use Greenfish Icon Editor Pro but lots of people use Photoshop as well.
To create the icon, I opened up ic_notify_clear_pressed.png from the /res/drawable-hdpi folder and added more of a glow effect to it. I have attached a copy of it to the post. You can create your own though, if you want to. What you will need to do it copy it into the /res/drawable-hdpi folder and after changing the ic_notify_clear.xml from the /res/drawable folder you will then need to save the file, close it and recompile the apk.
Now if you want to push it back into /system/app on your phone then do that (don't forget to change permissions to RW-R--R--) but if, like me, you wish to flash it in recovery using a VRTheme zip file, then you will need to do a few steps. Firstly, out of the newly recompile unsignedSystemUI.apk you will need take the new icon you created and put it into /vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable-hdpi in the VRTheme zip file and you will also need to take the ic_notify_clear.xml that you edited out of the recompiled apk and put it into /vrtheme/preload/symlink/system/app/SystemUI.apk/res/drawable in the zip file. Then you will need to close the zip file.
Now the next thing we have to do is take the resources.arsc file from our newly re-compiled unsignedSystemUI.apk and save it on the computer somewhere (I usually put it on the desktop so I know where it is and then delete it afterwards) and then you will need to us a zip program like WinRar to open up the VRTheme zip file. I don't use 7Zip for this part because I can't get it to simply store a file instead of compressing it. So we need to use WinRar to open up the VRTheme zip file and navigate to /vrtheme/preload/symlink/system/app/SystemUI.apk and you will see the res folder in the window. Now drag the resources.arsc file that you saved into the window and when the box comes up that asks you how you want to compress it, you need to change it to the 'store' option so that it doesn't compress the resources.arsc file at all.
I can't include the resources.arsc file as if you have any other mods or icons or anything in your SystemUI.apk, it will be incompatible with the resources.arsc file from my System UI.apk. I have, however, included a VRTHeme zip file to this post called 'Clear All Button Focus' which has the icon and xml file that we edited earlier, that you can add your resources.arsc file to and flash in recovery.
Enjoy!
[SIZE=+2]AOSP SIGNAL & WIFI INDICATORS[/SIZE]
Another quick and easy mod that I found was the layout of the signal & wifi indicators in the status bar.
Original
Mod
In SystemUI.apk/res/layout open up tw_signal_cluster view. You will see this.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
</LinearLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
The first line we need to edit is this:
Code:
<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
Directly after the android:layout_height="wrap_content" and before the > we need to add android:layout_marginRight="0.0dip" .
So now that line should look like this:
Code:
<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip">
The next line we need to edit is this:
Code:
<ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
In the very first part of the line android:layout_gravity="center" we need to add bottom| directly before center" . Directly after android:layout_height="wrap_content" we need to add android:layout_marginLeft="-6.0dip" before the last />
So now that line should look like this:
Code:
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-6.0dip" />
Now we need to focus on this section here:
Code:
<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
We need to change that whole section with this:
Code:
<RelativeLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.8000001dip" />
</FrameLayout>
</RelativeLayout>
Your fully edited tw_signal_cluster_view.xml should now look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-6.0dip" />
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<RelativeLayout android:gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true">
<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true">
<ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="0.8000001dip" />
</FrameLayout>
</RelativeLayout>
</LinearLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
That's it for the coding. You will also need to replace a number of icons in /res/drawable-hdpi which start with stat_sys. I have included them in a zip file called AOSP Signal Icons Only which is attached to this post.
Just put them all into /res/drawable-hdpi then recompile and enjoy. I have also attached a VRTheme zip file called AOSP Signal & Wifi Indicators.zip which you can flash from recovery.
That's it. See, easy as! Enjoy
[SIZE=+2]Credits:[/SIZE]
Spannaa - For all your help and support. Taught me everything I know and always helps no matter what. There should be more people like him on this forum. He is also a very knowledgeable themer, go and look at his thread [THEME][NeatROM 4.7 XWLSS] Blue Ginger Plus theme with 23 toggles
Google - For creating Android
Samsung - For making our beloved Galaxy S II
Faryaab - For making the AOSP ROM Super Nexus which I have used as a benchmark. Find it here: [ROM][AOSP][JB][4.1.2][JZO54K] SuperNexus - I9100 - BUILD 5 [17-10-12]
Reserved 1
Reserved 2
Good guide Thanks
Sent from my GT-I9300 using xda premium
res...
Hmm, have been found.... reserved 1
rush25 said:
Good guide Thanks
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Thanks mate,
I hope it was useful to you.
Dave
eray0687 said:
Hmm, have been found.... reserved 1
Click to expand...
Click to collapse
Umm sorry but I am not sure what you are asking or stating?
Added Clear All Button Focus guide
I have edited the first post to add a guide to make the AOSP Clear All Button have a 'focus' option when pressed and held.
I hope you all enjoy.
Dave
Hey daveyannihilation,
Thanks for the great tutorial,
it took me a while but i finally managed to achieve this mod on my phone,
i was even able to take it a step further and move the settings button to the left of the statusbar
I like the look of the stock settings icon, so i used that instead of the aosp one
Again thanks for the great tutorial
Tired Storeman said:
Hey daveyannihilation,
Thanks for the great tutorial,
it took me a while but i finally managed to achieve this mod on my phone,
i was even able to take it a step further and move the settings button to the left of the statusbar
I like the look of the stock settings icon, so i used that instead of the aosp one
Again thanks for the great tutorial
Click to expand...
Click to collapse
Hey Tired Storeman,
That looks great! Top work mate. Glad the tutorial was useful for you. To get the settings button where it is in your screenshot, did you put that particular line before the clock reference lines to achieve your desire effect?
Sent from my AOSP Blue SGSII
daveyannihilation said:
Hey Tired Storeman,
That looks great! Top work mate. Glad the tutorial was useful for you. To get the settings button where it is in your screenshot, did you put that particular line before the clock reference lines to achieve your desire effect?
Sent from my AOSP Blue SGSII
Click to expand...
Click to collapse
To be honest i didnt try putting it before the clock, i didnt think that would work, because i centered the clock
i used android
layout_marginLeft="-108.0dip"
after
android:layout_height="48.0dip"
if you find a better way of doing it, could you let me know, for future references
Any way of removing the settings button? I tried deleting that line and went into a bootloop. Maybe I need to edit some other part of the apk..
xcly said:
Any way of removing the settings button? I tried deleting that line and went into a bootloop. Maybe I need to edit some other part of the apk..
Click to expand...
Click to collapse
Removing the @id/settings_button lines should do this.
Delete from the original code:
Code:
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
Or maybe just change android:visibility="visible" to android:visibility="gone"
Or delete from the modified code:
Code:
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
Your bootloop could due to a bad recompile of SystemUI.apk
Spannaa said:
Removing the @id/settings_button lines should do this.
Delete from the original code:
Code:
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
Or maybe just change android:visibility="visible" to android:visibility="gone"
Or delete from the modified code:
Code:
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
Your bootloop could due to a bad recompile of SystemUI.apk
Click to expand...
Click to collapse
Thanks for the reply. Tried the last option you gave me because I do want the AOSP style, just not the settings button there as well. Still giving me a bootloop. I don't think it's a bad recompile as I tried it a multiple times with the same result.
Tried changing the width and height to wrap_content, as that seem to make it flexible, got through to Android is upgrading part but bootloop after that.. T_T
I'm probably naive but I don't see how deleting that one line, which seems sensible enough, causes a bootloop.. Probably will have to stick with settings button until I figure out a way.. unless you might have some other ideas?
xcly said:
Thanks for the reply. Tried the last option you gave me because I do want the AOSP style, just not the settings button there as well. Still giving me a bootloop. I don't think it's a bad recompile as I tried it a multiple times with the same result.
Tried changing the width and height to wrap_content, as that seem to make it flexible, got through to Android is upgrading part but bootloop after that.. T_T
I'm probably naive but I don't see how deleting that one line, which seems sensible enough, causes a bootloop.. Probably will have to stick with settings button until I figure out a way.. unless you might have some other ideas?
Click to expand...
Click to collapse
Does it work if you don't delete the line?
Just a thought: When you decompiled SystemUI.apk, did you install the two frameworks first (framework-res.apk & twframework-res.apk)?
Spannaa said:
Does it work if you don't delete the line?
Just a thought: When you decompiled SystemUI.apk, did you install the two frameworks first (framework-res.apk & twframework-res.apk)?
Click to expand...
Click to collapse
Yup following the guide as it is works fine. Just starts bootlooping if I delete the line..
Do you mean "apktool if frameworks"? Then I haven't done so.. worked fine without it so far so didn't really give it a thought. I'll try it out when I get home (if that is what you meant)
Sent from my GT-N7105 using xda premium
xcly said:
Yup following the guide as it is works fine. Just starts bootlooping if I delete the line..
Do you mean "apktool if frameworks"? Then I haven't done so.. worked fine without it so far so didn't really give it a thought. I'll try it out when I get home (if that is what you meant)
Sent from my GT-N7105 using xda premium
Click to expand...
Click to collapse
Yes, "if" the two frameworks when you decompile SystemUI.apk and don't delete them before you recompile.
Another thought: Instead of deleting the line, try adding: android:visibility="gone" to it instead - it maybe that the missing id for the settings_button is causing an issue.
Spannaa said:
Yes, "if" the two frameworks when you decompile SystemUI.apk and don't delete them before you recompile.
Another thought: Instead of deleting the line, try adding: android:visibility="gone" to it instead - it maybe that the missing id for the settings_button is causing an issue.
Click to expand...
Click to collapse
Ah cool. Will try that and let you know
Sent from my GT-N7105 using xda premium
---------- Post added at 02:59 PM ---------- Previous post was at 02:05 PM ----------
Spannaa said:
Yes, "if" the two frameworks when you decompile SystemUI.apk and don't delete them before you recompile.
Another thought: Instead of deleting the line, try adding: android:visibility="gone" to it instead - it maybe that the missing id for the settings_button is causing an issue.
Click to expand...
Click to collapse
The visibility thing worked like a charm. Thanks a lot for your help
Hi all;
I'm trying to do something and I've seen this thread.
I've replaced the alarm clock icon by this one (the little thin line at left of wifi icon)
Ok, what I want is to have this icon beside the clock, like this:
How can I get this? I've tried changing many things in SystemUI's xml but I'm unable to get it...
Can anybody give me a hand? Thanks in advance!
tevaadarelsol said:
Hi all;
I'm trying to do something and I've seen this thread.
I've replaced the alarm clock icon by this one (the little thin line at left of wifi icon)
Ok, what I want is to have this icon beside the clock, like this:
How can I get this? I've tried changing many things in SystemUI's xml but I'm unable to get it...
Can anybody give me a hand? Thanks in advance!
Click to expand...
Click to collapse
Bump!
Enviado desde mi GT-I9100 usando Tapatalk 2

[TUT] Mode Your SystemUI & LockScreen | Noob Friendly |

How to Edit Lockscreen & Systemui
First of all i’m not expert developer i’m more like a themer i’m sharing my knowledge for xda community just for helping noobs to become expert
Click to expand...
Click to collapse
Do it at your own risk !
Click to expand...
Click to collapse
Mods for know :
-how to make center clock and no battery icon just %
-how to make center clock with battery icon and %
-how to edit notifications numbers
-how to edit lockscreen (blinds&hin text&...etc)
How to decompile & compile with apktool ​
First you must know how to decompile and compile
Requirements :
Latest java installed
PC
notepad++ to edit xml
Human
Install the following package download
unzip it and put it in new folder and name it android
open the folder ,,,,, press left shift and press right mouse click and open cmd
copy SystemUI you want to edit or Lockscreen (name of lockscreen in rom "UxpNxtLockScreen")
Type this in cmd
apktool d @@@.apk
Click to expand...
Click to collapse
replace @@@ with app name
After editing type this
apktool b @@@
Click to expand...
Click to collapse
replace @@@ with app name without apk !
now you will find compiled app in dist folder
open the original apk with winrar or any zip manger and drag
META-INF & AndroidMainFest.xml
Click to expand...
Click to collapse
to compiled apk and set zip options to "store" and make it replace the files
Finished !
If you have problems ,,, install framewrok-res.apk and SemcGenericUxpRes.apk with this one "apktool if ccc.apk change ccc with name of app
Click to expand...
Click to collapse
just install frame&Semc of wanted Rom
-------------------------------------------------------------------------
now its time to know how to edit
How to make center clock without battery icon just %​
decompile SystemUI.apk and go to res/layout/states bar.xml and replace inside with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="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:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<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.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" 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="@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: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="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
compile and done :good::good:
you have center clock and % battery
How to make just center clock
Go to res/layout/states bar.xml and replace it with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="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:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="2.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<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.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" 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="@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: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="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Compile and done :good:
How to edit notifications numbers​
Go to res/values/integers.xml and edit the number in
<integer name="config_maxNotificationIcons">5</integer>
Click to expand...
Click to collapse
Edit the number (but dont make it high number it will case problems in notifications size
How to edit Lockscreen​
decompile lockscreen and go to UxpNxtLockScreen\res\values
to change when hint go before unlocking(how many times to hint disappear)
open integers.xml
and change the number in
Code:
<integer name="unlocks_before_hint_removal">[COLOR="red"]9[/COLOR]</integer>
want to change the number of blinds ? in stock lockscreen its 4 and its small so you can make it as you like but as high you make it as ugly it will be
change the number here
<integer name="number_of_blinds">10</integer>
Click to expand...
Click to collapse
want to change the blinds that will affected ?? = how many blinds will show when you put your finger on lockscreen
change the number here
Code:
<integer name="blinds_affected_by_touch">[COLOR="red"]5[/COLOR]</integer>
How to change hint text
Go to UxpNxtLockScreen\res\layout and open unlock_hint.xml
and find this android:text= and change the text between
" "
Click to expand...
Click to collapse
and save it
How to change widgets place on lock screen​
Go to UxpNxtLockScreen\res\values and open dimens.xml and change the " dip " near text
Ex:
<dimen name="lockscreen_widget_slider_margin_top">93.0dip</dimen>
Click to expand...
Click to collapse
the place of the slider change 93.0 dip to the number you want (if the number was less it will be at top , more the number was more will be near the ground )
How to change blinds rotation degrees
Go to UxpNxtLockScreen\res\values and open fractions and change the number in this text
Code:
<fraction name="max_sideways_rotation_degrees">[COLOR="red"]100.0%[/COLOR]</fraction>
put the number with %
if 300% it will look like big blinds so make it 150% or 50% as you like
How to make the slider with transparent​
Go to UxpNxtLockScreen\res\drawable-xhdpi
and open arrows_swipe_camera_overlay with photoshop and make the opacity as you like and save as png (default)
Compile and done :good:
---------------------------------------
Don’t Forget to Press Thanks :good | Also if want to pay me a coffee or something else , feel free to give me a small donation by Pressing Here .​
Cool step-by-step tutorial for newbie like me. Finally I can edit the lockscreen!!!
By the way, if I want the lock screen hint to stay there permanently, what value should I give to it?
TitaniumZERO said:
Cool step-by-step tutorial for newbie like me. Finally I can edit the lockscreen!!!
By the way, if I want the lock screen hint to stay there permanently, what value should I give to it?
Click to expand...
Click to collapse
Remove the line
Code:
<integer name="unlocks_before_hint_removal">9</integer>
from the file.
I hope it'll work. :good:
Try and comment here.
About lockscreen howto edit etc is already posted by @black97one here:
http://forum.xda-developers.com/showthread.php?p=43582251
But nice share @abo hani
Pandemic said:
About lockscreen howto edit etc is already posted by @black97one here:
http://forum.xda-developers.com/showthread.php?p=43582251
But nice share @abo hani
Click to expand...
Click to collapse
I know that , but i want to collect all of them together
TitaniumZERO said:
Cool step-by-step tutorial for newbie like me. Finally I can edit the lockscreen!!!
By the way, if I want the lock screen hint to stay there permanently, what value should I give to it?
Click to expand...
Click to collapse
Ajith Roy said:
Remove the line
Code:
<integer name="unlocks_before_hint_removal">9</integer>
from the file.
I hope it'll work. :good:
Try and comment here.
Click to expand...
Click to collapse
Or just put the number 9999999 unlimited
abo hani said:
Or just put the number 9999999 unlimited
Click to expand...
Click to collapse
I've tried delete the line, it didn't work but putting an insanely big number there works.
By the way, I've tried the transparent slider mod but it's not working, I can't recompile the apk.
TitaniumZERO said:
I've tried delete the line, it didn't work but putting an insanely big number there works.
By the way, I've tried the transparent slider mod but it's not working, I can't recompile the apk.
Click to expand...
Click to collapse
Give me the log , press right click and select , select the log and press right click to copy it then paste it here
abo hani said:
Give me the log , press right click and select , select the log and press right click to copy it then paste it here
Click to expand...
Click to collapse
I'm in office now, I'll feedback when I go home.
Centered clock won't work with The AOSP one cuz differences like colors right?
EDIT: It worked :good:
nice post
TitaniumZERO said:
I'm in office now, I'll feedback when I go home.
Click to expand...
Click to collapse
It seems that I have to install framework-res.apk for it to work.
Anyway I've taken a few other tutorial available now I have a modded lock screen which takes 65536 scrolls to remove the hint, modified Walkman+camera widget icons, transparent widget backplate.
Thanks again.
TitaniumZERO said:
It seems that I have to install framework-res.apk for it to work.
Anyway I've taken a few other tutorial available now I have a modded lock screen which takes 65536 scrolls to remove the hint, modified Walkman+camera widget icons, transparent widget backplate.
Thanks again.
Click to expand...
Click to collapse
Thanks for feedback i hope you become expert themer
when i make a call, the 'connecting' text displayed on the screen is having a thinnest black border and inside white colored font for text Connecting. can u plz tell me what .apk file to decomplile? just dont tell me which text to change i want to find it by myself, i just need to know which .apk file and which layout i need to look for.. i need to make the entire connecting text Black colored font
how about to put am/pm at the clock in systemUI?
Thank You For This Great Tutorial .
Can You Make Incoming Call Screen Full. I Mean Full Screen Caller Pic And Making The Black Transparent Full Transparent
molzz said:
when i make a call, the 'connecting' text displayed on the screen is having a thinnest black border and inside white colored font for text Connecting. can u plz tell me what .apk file to decomplile? just dont tell me which text to change i want to find it by myself, i just need to know which .apk file and which layout i need to look for.. i need to make the entire connecting text Black colored font
Click to expand...
Click to collapse
SemcPhone.apk
aminfauzi said:
how about to put am/pm at the clock in systemUI?
Click to expand...
Click to collapse
will put the tut tomorrow or after tomorrow
M.WeWe said:
Thank You For This Great Tutorial .
Can You Make Incoming Call Screen Full. I Mean Full Screen Caller Pic And Making The Black Transparent Full Transparent
Click to expand...
Click to collapse
I will when i learn it but you can use full screen call app from google play
abo hani said:
will put the tut tomorrow or after tomorrow
Click to expand...
Click to collapse
ok that will be great
Nice job
good work abo hani
sent from thinkandroid
What should I do to change the Status Bar fully transparent?. Thank´s in advance

[guide][gb]how to add brightness slider with data trafik in any deodexed rom

HOW TO ADD BRIGHTNESS BAR WITH DATA TRAFIK IN STATUS BAR​Hello Guys!
Today i am going to tell you how to add Brightness Bar(with Data trafik) in Status Bar of Any Deodexed ROM
Screenshot -
{
"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"
}
So, Here we start :
Things Required : (you can get all of these things on google)
1. Apktool or apk multitool (for decompiling and recompiling)
2. Notepad++
Instructions: (Do make a nandroid backup before proceeding because you might do it wrong)
1. first of all decompile SystemUI.apk (Please don't ask me how to do that).
2. Now Extract the Brightness_slider_with_data_trafik.zip (See attatchments) in your decompiled SystemUI.apk
3. Now copy and paste this code in "decompiled_systemUI\res\values\ids.xml" at bottom.
Code:
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
<item type="id" name="quickpanel_brightness_icon">false</item>
<item type="id" name="title">false</item>
4. Now copy and paste this code in "Decompiled_systemUI\res\layout\status_bar_expanded.xml" (Pasteit where you want to place the brightness bar)
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/brightness_bar" />
</LinearLayout>
so it look like this now:
Code:
<?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">
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0dip" android:baselineAligned="false">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/blank" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:src="@drawable/blank" />
<ImageView android:layout_gravity="center_vertical" android:layout_width="30.0px" android:layout_height="30.0px" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
<Button 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" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0px">
<com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout android:gravity="center_horizontal" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim1ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim1ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim1_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout android:gravity="center_horizontal" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim2ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_2" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim2ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim2_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="0.0dip" android:baselineAligned="false">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/carrierLabel1Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_1" />
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<ImageView android:id="@id/carrierLabel2Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_2" />
<com.android.systemui.statusbar.CarrierLabel2 android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.darkjb.NotificationLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbnotifications" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbsliders" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/layout_button" android:background="#00000000" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="1.0">
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Notifications" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Sliders" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
</LinearLayout>
</com.darkjb.NotificationLayout>
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
5. Now open "decompiled_SystemUI.apk\res\values\strings.xml" an add this code at its end
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5. Now recompile your SystemUI. done!
if you encounter any issue, you can post it. will try my best to resolve
xc
The auto button is not working
Mrinal Roy said:
The auto button is not working
Click to expand...
Click to collapse
i am working on it. will update the post asap.
Hit Thanks if i helped you!
Can you tell me how to remove the data traffic, because I want only the brightness slider.
drakonizer said:
Can you tell me how to remove the data traffic, because I want only the brightness slider.
Click to expand...
Click to collapse
divyamg28 said:
thhnxx searching for this only!!!
Click to expand...
Click to collapse
#drakonizer : Decompile your SystemUI.apk again and open {decompiled_SystemUI/res/layout/brightness_bar.xml} and remove this line from it and recompile and push in /system/app/ and done! -->
<com.akumarraheja.DataTrafik android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
Click to expand...
Click to collapse
#divyamg28 : its much better to press thanks than just saying anyways, thanks for your positive response.
Regards,
Akshay Kumar Raheja
©Darkjbrom | GT-S5302
Sent from my GT-S5302 using DARK JB ROM
It has no effect in my status bar...
Himan Boro said:
It has no effect in my status bar...
Click to expand...
Click to collapse
which phone do you have?
y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C
Himan Boro said:
y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C
Click to expand...
Click to collapse
ok. i will do it for you.
Sent from my GT-S5302 using xda premium
Akshay Kumar Raheja said:
ok. i will do it for you.
Sent from my GT-S5302 using xda premium
Click to expand...
Click to collapse
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..
Himan Boro said:
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..
Click to expand...
Click to collapse
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.
Akshay Kumar Raheja said:
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.
Click to expand...
Click to collapse
Ok Bro..surely..n Thanx A Lot...
Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please
Himan Boro said:
Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please
Click to expand...
Click to collapse
ok. i'll do it in free time. btw the one i modded is working ? ryt?
nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?
Akshay Kumar Raheja said:
nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?
Click to expand...
Click to collapse
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it
Himan Boro said:
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it
Click to expand...
Click to collapse
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
Akshay Kumar Raheja said:
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
Click to expand...
Click to collapse
Thanks But Its Giving FC...Have You Signed The Apk??
Himan Boro said:
Thanks But Its Giving FC...Have You Signed The Apk??
Click to expand...
Click to collapse
no. i kept original signatures. can you send me logcat of your device?
here is the log cat of Aokp systemui

{Guide}Change USB storage with Touch The Droid to connect USB

​
Hello guys i am back with a new and easy guide for all newbies...!!
u guyz bored from old interface of your gb.??
than you are at right place...!!
this guide will help u to Change USB storage with Touch The Droid to connect USB
so every one get ready to theme/modify your device..
Click to expand...
Click to collapse
Requirements:-
1.Framework-res.apk
2. Apktool: http://d-h.st/jc3
3. Notepad++ : http://d-h.st/5KH
Click to expand...
Click to collapse
$teps:-
1. Decompile ur framework-res.apk
2. Open "usb_storage_activity.xml" present in "decopiledframework-res/res/layout.
3. Replace all the codes inside "usb_storage_activity.xml" to
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:gravity="center" android:id="@id/main" android:padding="18.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:layout_gravity="center_horizontal" android:id="@id/mount_button" android:background="@drawable/usb_android" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<Button android:layout_gravity="center_horizontal" android:id="@id/unmount_button" android:background="@drawable/usb_android_connected" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/icon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:src="@color/transparent" android:layout_centerHorizontal="true" />
</LinearLayout>
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">
<TextView android:textSize="24.0sp" android:gravity="center" android:id="@id/banner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_title" android:layout_below="@id/icon" android:layout_centerHorizontal="true" />
<TextView android:textSize="14.0sp" android:gravity="center" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:text="@string/usb_storage_message" android:layout_below="@id/banner" />
</LinearLayout>
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="100.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<ProgressBar android:id="@id/progress" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminate="true" style="?android:attr/progressBarStyle" />
</RelativeLayout>
</RelativeLayout>
4. save and compile
5. now push or flash it via CWM
Click to expand...
Click to collapse
Note:-
**Always backup any original file before modifying. If your phone doesn't boot push that backup to your phone. I will not be responsible for anything which happens to ur phone. So keep Backup ready.
Click to expand...
Click to collapse
Press thanks if 've helped you..!!!!​

Categories

Resources