[Q] systemui mod - Sony Xperia M

i decompiled systemui.apk
next which png/xml has to be mod to remove the line in statusbar
{
"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"
}
systemui file

Search for something similar to this in \res\layout\status_bar.xml file.
Code:
<View android:gravity="right" android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="0.5dip" android:maxWidth="200.0dip" />
Remove this line or try to change android:layout_height to "0.0dip".

kosmita1993 said:
Search for something similar to this in \res\layout\status_bar.xml file.
Code:
<View android:gravity="right" android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="0.5dip" android:maxWidth="200.0dip" />
Remove this line or try to change android:layout_height to "0.0dip".
Click to expand...
Click to collapse
can't find similar to this in status_bar.xml
can you help which line to be modified
<View android:gravity="right" android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="0.5dip" android:maxWidth="200.0dip" />
Click to expand...
Click to collapse
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" 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">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/opaque_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/status_bar_opaque_background" android:scaleType="fitXY" />
<ImageView android:id="@id/transparent_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/status_bar_transparent_background" android:scaleType="fitXY" />
<ImageView android:id="@id/light_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/status_bar_light_background" android:scaleType="fitXY" />
<ImageView android:id="@id/lights_out_bg" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/status_bar_lights_out_background" android:scaleType="fitXY" />
</FrameLayout>
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<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" android:layout_alignParentStart="true" />
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" 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" />
</LinearLayout>
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip">
<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:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/SystemBarNotificationText" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="6.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:textAlignment="viewStart" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
<ImageView android:layout_gravity="top|left|center" android:id="@id/rounded_corner_ul" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/rounded_corner_ul" />
<ImageView android:layout_gravity="top|right|center" android:id="@id/rounded_corner_ur" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/rounded_corner_ur" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>

Wow bro, that systemui is beast, can you post it here please?

paper13579 said:
Wow bro, that systemui is beast, can you post it here please?
Click to expand...
Click to collapse
I already shared systemui.apk in 1 post
Sent from my C2004 using XDA Premium 4 mobile app

Oh sorry, i didn't see that, thank you so much. Just one last thing, i want to change the height of the statusbar to make it bigger. I already decompiledbthe systemui.apk, now what? Please tell me if you know. Thanks

For change height, you must recompile your framework.apk also.

Related

[MOD] Remove clock from the status bar for ICS

Quick MOD to remove the clock for most ICS ROMS
{
"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"
}
Must be able to decompile and recompile to do this MOD!
ICS is different then GB when it comes to decompiling some apks mainly the SystemUI.apk because of the classes dex! So do some research first!
Decompile the SystemUI.apk
Then go to res\layout find the tw_status_bar.xml
This MOD was done on using the DARKSIDE.EVOLUTION.3 [6.12.2012] [v1]ROM should be the same with most Samsung ICS ROMS! or damn close!​
Here is the tw_status_bar.xml from the Darkside Rom
The line in red is the clock code
delete that entire line (line 17 in my case, may be different depending on your rom)
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<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">
<ImageView android:id="@id/ims_icon" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:textSize="12.0dip" android:textStyle="bold" android:textColor="#ffa6a6a6" android:layout_gravity="bottom|left|center" android:id="@id/battery_text" android:paddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
[COLOR="Red"]<com.android.systemui.statusbar.policy.Clock android:textSize="19.0dip" android:textColor="#ffa6a6a6" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />[/COLOR]
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</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:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" 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.CarrierLabel android:gravity="center_vertical" android:id="@id/carrierLabel" android:background="#ff000000" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Once deleted it should now look like this!
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<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">
<ImageView android:id="@id/ims_icon" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:textSize="12.0dip" android:textStyle="bold" android:textColor="#ffa6a6a6" android:layout_gravity="bottom|left|center" android:id="@id/battery_text" android:paddingBottom="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_network_name_separator" />
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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="centerInside" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="centerInside" />
</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:id="@id/ticker_text_view_old" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:id="@id/ticker_text_view_new" 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.CarrierLabel android:gravity="center_vertical" android:id="@id/carrierLabel" android:background="#ff000000" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Recompile your work and enjoy!
But remember decompiling ICS is different mainly the SystemUI.apk so do your research first!!!!!!!
I attached my apk from the DARKSIDE.EVOLUTION.3 [6.12.2012] [v1] Rom that you can ADB push it to your phone
And I will take this one too
Stupid easy. Thank you!
From my T-Mobile Galaxy S II
Is there anyway to get this flashable?
told you lol
Sent from my SGH-T989 using XDA
troyism said:
Is there anyway to get this flashable?
Click to expand...
Click to collapse
yea but it will still have the stck theme just the clocked removed
Sent from my SGH-T989 using XDA
Hi evilart, thanks for the mod. Btw, do you know if i wanted to add % to the battery indicator on darkside evo3, which xml should i modify thanks in advance
Sent from my SGH-T989 using xda premium
dukeoflove said:
Hi evilart, thanks for the mod. Btw, do you know if i wanted to add % to the battery indicator on darkside evo3, which xml should i modify thanks in advance
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
It's in the SystemUI.apk
res/drawable
stat_sys_battery.xml
stat_sys_battery_charge.xml
Mod those then add you battery images
Sent from my SGH-T989 using XDA
Or if you want take those files and all 204 battery images from my toxic theme and try it out then replace the instead with the ones you want
Sent from my SGH-T989 using XDA
evil1art said:
It's in the SystemUI.apk
res/drawable
stat_sys_battery.xml
stat_sys_battery_charge.xml
Mod those then add you battery images
Sent from my SGH-T989 using XDA
Click to expand...
Click to collapse
Thank you so much.
Sent from my SGH-T989 using xda premium
One more question. I want to make a white background for the mms apk like the one in darkside ucle2 rom. Can you point me to the right direction. I've been trying to make a rom to my liking. And your help is much appreciated. Thank you
Sent from my SGH-T989 using xda premium
dukeoflove said:
One more question. I want to make a white background for the mms apk like the one in darkside ucle2 rom. Can you point me to the right direction. I've been trying to make a rom to my liking. And your help is much appreciated. Thank you
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
i never messed with it but i can look into it just use the mms.apk from ucle2 it should work
Sent from my SGH-T989 using XDA
hey evil, would you happen to know how to remove the battery icon from the status bar? TIA!
RogueCoyote said:
hey evil, would you happen to know how to remove the battery icon from the status bar? TIA!
Click to expand...
Click to collapse
Yea but why would you do that?
I have a miui style battery bar at the top of my screen so the battery icon in the status bar is a bit redundant. Looks like the battery icon is also set in the tw_status_bar.xml?
RogueCoyote said:
I have a miui style battery bar at the top of my screen so the battery icon in the status bar is a bit redundant. Looks like the battery icon is also set in the tw_status_bar.xml?
Click to expand...
Click to collapse
Just delete line for battery in the tw status bar xml
evil1art said:
Just delete line for battery in the tw status bar xml
Click to expand...
Click to collapse
Do you mean this line:
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Deleting this line results in systemui FC after reboot.
RogueCoyote said:
Do you mean this line:
Code:
<ImageView android:gravity="center" android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Deleting this line results in systemui FC after reboot.
Click to expand...
Click to collapse
Hmmm I would have to try it myself and see when Im not so busy
That would be great. Thanks!

[HELP] Theme my mms.apk issue

I am adding custom bubbles to my convo thread and cannot get the sent to do what i want.
The received do not extend the length as that is waht i want
But the sent do. I tried changing the android:layout_alignParentLeft="true"> to false but then my sent messages disappear.
Here is a screen of how it currently looks
{
"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"
}
any help is much appreciated.
Here is the xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.mms.ui.MessageListItem android:orientation="horizontal" android:id="@id/msg_list_item_send" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/mms_layout_view_parent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<view android:id="@id/avatar" android:layout_width="@dimen/avatar_width_height" android:layout_height="@dimen/avatar_width_height" android:layout_alignParentRight="true" class="com.android.mms.ui.QuickContactDivot" position="left_upper"
xmlns:android="http://schemas.android.com/apk/res/android" />
<LinearLayout android:orientation="vertical" android:id="@id/message_block" android:background="@drawable/wp2" android:layout_width="0.0dip" android:layout_height="wrap_content" android:minHeight="@dimen/avatar_width_height" android:layout_toLeftOf="@id/avatar" android:layout_alignParentLeft="true">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="#ffb0c4de" android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip">
<ImageView android:id="@id/locked_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_lock_message_sms" />
<ImageView android:id="@id/delivered_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_delivered" />
<ImageView android:id="@id/details_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_details" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffb0c4de" android:id="@id/date_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ViewStub android:id="@id/mms_layout_view_stub" android:layout="@layout/mms_layout_view" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<ViewStub android:layout_gravity="center_vertical" android:id="@id/mms_downloading_view_stub" android:layout="@layout/mms_downloading_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.mms.ui.MessageListItem>
Somewhere, you have a layout set to "wrap content" instead of "fill parent". This causes it to only stretch to fit the contents of the message instad of all the way across like you want it.
It won't be in the XML you uploaded. It will be in the "message_list_item_recv.xml"
Try changing that XML at line 9- I'll bet android:layout_width is set to wrap_content instead of fill_parent. Change it.
artvandelay440 said:
Somewhere, you have a layout set to "wrap content" instead of "fill parent". This causes it to only stretch to fit the contents of the message instad of all the way across like you want it.
It won't be in the XML you uploaded. It will be in the "message_list_item_recv.xml"
Try changing that XML at line 9- I'll bet android:layout_width is set to wrap_content instead of fill_parent. Change it.
Click to expand...
Click to collapse
That was the send.xml that I posted.
i tired your changes and it did not work
artvandelay440 said:
Somewhere, you have a layout set to "wrap content" instead of "fill parent". This causes it to only stretch to fit the contents of the message instad of all the way across like you want it.
It won't be in the XML you uploaded. It will be in the "message_list_item_recv.xml"
Try changing that XML at line 9- I'll bet android:layout_width is set to wrap_content instead of fill_parent. Change it.
Click to expand...
Click to collapse
In the image the one that says "test" is not correct The one that says "working" is correct
Oh, in that case, take the xml you posted and make this change. Scroll to the end and you'll see where "fill_parent" needs to be replaced with "wrap_content".
Change
Code:
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="#ffb0c4de" android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="fill_parent" android:layout_height="wrap_content" />
to
Code:
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="#ffb0c4de" android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" />
artvandelay440 said:
Oh, in that case, take the xml you posted and make this change. Scroll to the end and you'll see where "fill_parent" needs to be replaced with "wrap_content".
Change
Code:
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="#ffb0c4de" android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="fill_parent" android:layout_height="wrap_content" />
to
Code:
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="#ffb0c4de" android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top" android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" />
Click to expand...
Click to collapse
All that did was make my text alignment off. Still not working.
Here is my apk
Maybe need to set text right to left?
Sent from my Galaxy Nexus using Tapatalk 2
So this is the message_list_item_send.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.mms.ui.MessageListItem android:orientation="horizontal" android:id="@id/msg_list_item_send" android:layout_width="fill_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/mms_layout_view_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_weight="1.0">
<RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<view android:id="@id/avatar" android:layout_width="@dimen/avatar_width_height" android:layout_height="@dimen/avatar_width_height"
android:layout_alignParentRight="true" class="com.android.mms.ui.QuickContactDivot" position="left_upper"
xmlns:android="http://schemas.android.com/apk/res/android" />
<LinearLayout android:orientation="vertical" android:id="@id/message_block" android:background="@drawable/wp2" android:layout_width="0.0dip"
android:layout_height="wrap_content" android:minHeight="@dimen/avatar_width_height" android:layout_toLeftOf="@id/avatar"
android:layout_alignParentLeft="true">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="@color/light_text"
android:gravity="right" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view"
android:paddingLeft="@dimen/message_item_text_padding_left_right" android:paddingTop="@dimen/message_item_text_padding_top"
android:paddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:paddingRight="@dimen/message_item_text_padding_left_right"
android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="8.0dip">
<ImageView android:id="@id/locked_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_lock_message_sms" />
<ImageView android:id="@id/delivered_indicator" android:paddingRight="3.0dip" android:visibility="gone"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_delivered" />
<ImageView android:id="@id/details_indicator" android:paddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_details" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/text_hairline" android:id="@id/date_view"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ViewStub android:id="@id/mms_layout_view_stub" android:layout="@layout/mms_layout_view" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<ViewStub android:layout_gravity="center_vertical" android:id="@id/mms_downloading_view_stub" android:layout="@layout/mms_downloading_view"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.mms.ui.MessageListItem>
What do i need to edit so the image does not stretch across the screen?
Lol
i have the same issue.
Mine is that the bubbles are across the screen and dont fit to the text, i want the opposite
i want the bubbles to fit to the text, go Dl my xml files and give me yours
they are in the "How to theme sms" topic, lasts posts.
:cyclops:
made it
i have finally made it.
Make sure that your "align parent left" is on "false" in the 6 & 8 line
6 makes the body/layout align to the left if ON
8 makes the text align to the left if ON.

[GUIDE] How to add Service Provider ( Carrier Label ) to Status Bar CM9/CM10/CM10.1

GUIDE HOW TO ADD SERVICE PROVIDER ( Carrier Label ) to STATUS BAR
for CM9/CM10/CM10.1
and, Optional GUIDE HOW TO REMOVE/HIDE SERVICE PROVIDER ( Carrier Label ) from Notification Panel in POST #2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello guys, I want to share to you guide how to add service provider name ( Carrier label ) to status bar,
I know this mod is not usefull, but I think it's just for fun ,
especially for you who like theming, I hope you like & enjoy it :good::laugh:
ok lets go to Guide:
first of all need some requirement for this MOD-GUIDE
REQUIREMENT: !!!
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools/ or else
​
for CyanogenMod 9
Decompile systemUI.apk
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<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" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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>
Done, save and compile.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10
Decompile systemUI.apk
STEP -1
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android: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">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<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" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:gravity="bottom" android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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>
STEP -2
SystemUI.apk\res\layout\status_bar_expanded_header.xml
find this line :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="@drawable/notification_header_bg"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
and change to :
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
STEP -3
Download this : CM10_and_CM10.1_Source_Carrier_Label
Exstract it, and merge to your decompiled sytemUI.apk
Done and recompile
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10.1
Decompile systemUI.apk
STEP -1
go to SystemUI.apk\res\layout\status_bar.xml
and add the red code :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android: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/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"]<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
<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.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" 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" />
<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" />
<include android:id="@id/signal_cluster_text" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_text_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/dock_battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleDockBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_dock_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_battery_cluster_text_margin" android:singleLine="true" />
<ImageView android:id="@id/battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="@dimen/status_bar_battery_cluster_padding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@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>
STEP -2
Download this : CM10_and_CM10.1_Source_Carrier_Label
Exstract it, and merge to your decompiled sytemUI.apk
Done and recompile
CREDIT & THANKS
ARCO
CYANOGENMOD
XDA
[Unofficial Community] Galaxy Wonder CyanogenMod Indonesia
and All of you, sorry if I've missed
GUIDE HOW TO REMOVE/HIDE SERVICE PROVIDER ( Carrier Label ) from Notification Panel
for CyanogenMod 9
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_tracking.xml
add the red code :
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_gravity="bottom" android:paddingBottom="20.0dip" [COLOR="Red"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" />
Done and recompile
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
for CyanogenMod 10.1
Decompile systemUI.apk
go to \SystemUI.apk\res\layout\status_bar_expanded.xml
edit the blue code :
Code:
<include android:layout_gravity="bottom" android:layout_width="fill_parent" [COLOR="Blue"]android:layout_height="0.0dip"[/COLOR] android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
Done and recompile
Errr,what's the red code?
Sent from my GT-I8150 using xda premium
Adi why you so awesome ? Lol Thanks :good:
dollyaja said:
Errr,what's the red code?
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
It's there
Sent from my GT-I8150 using xda app-developers app
Adi Aisiteru Reborn said:
It's there
Sent from my GT-I8150 using xda app-developers app
Click to expand...
Click to collapse
Ah,ok..I don't think I brave enough to do compile things , not my things,just use your modding enough for me hahaha *lazy
Sent from my GT-I8150 using xda premium
FC on my phone dunno what's wrong
MR.Volkf said:
FC on my phone dunno what's wrong
Click to expand...
Click to collapse
have you install the correct framework, and for what CM you apply this guide ?
Adi Aisiteru Reborn said:
have you install the correct framework, and for what CM you apply this guide ?
Click to expand...
Click to collapse
yes i was install the framework correctly, CM10 rom dunno when i play with smali always gave me FC decompile and recompile via ticklemyandroid
MR.Volkf said:
yes i was install the framework correctly, CM10 rom dunno when i play with smali always gave me FC decompile and recompile via ticklemyandroid
Click to expand...
Click to collapse
sorry for the FC
oke, I 'll make one for you,.
is it CM10 RC 1 by arco,?
or using from different device ?, which mean you must upload the systemUI.apk
Edit :
Here you go, "Mod CM10 RC-1 Carrier Label to statusbar" : http://db.tt/eQNmwZF1
Flash from CWM
Sorry for late reply,i came from another device ok i will upload soon
Sent from my GT-I9003 using xda premium
Hello. I want to ask you for one thing. My phone provider is O2 Slovakia (O2 SK). So in my phone there will by show this: O2 SK. But here in Slovakia O2 has small network, so they use network from T-Mobile Slovakia as "national roaming". So this mode can change Carrier label automaticly from O2 SK to T-mobile SK? Thanks
maros6666 said:
Hello. I want to ask you for one thing. My phone provider is O2 Slovakia (O2 SK). So in my phone there will by show this: O2 SK. But here in Slovakia O2 has small network, so they use network from T-Mobile Slovakia as "national roaming". So this mode can change Carrier label automaticly from O2 SK to T-mobile SK? Thanks
Click to expand...
Click to collapse
No,
if it is show on your notification drawer is "O2-SK"
so is on status bar,
this mod will show the same as whatever carrier label/ provider shown on the notification drawer.
Sent from my GT-I8150 using xda app-developers app
Is there a way to use this CM10 method on CM11? Tried it but I had no idea why this always ended up brut. I'm using TickleMyAndroid 8.1, if you can please help
Always gave me Fc.
i tried for so many times but dont know why it always gave me Fc. m using cm 9 eol by sir Arco
will this work on cm11 by any chance?
[Ask] Carrier label on expanded status bar
Hello ter..
help me please..
How to add carrier label to expanded status bar on JB 4.3?
thanks before...
Work on kk:good:

[MOD] Switched SystemUI Status Bar! (4.3 JWR DEODEX) [Useful for left handed :)]

Hello, this is what I did :
{
"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"
}
For this I modified signal_cluster_view.xml and status_bar.xml files from res/layout folder in SystemUI.apk
signal_cluster_view.xml:
HTML:
<?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:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="2.0dip">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<FrameLayout 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="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="1.5dip" android:layout_marginRight="2.0dip">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_centerVertical="true" android:layout_alignParentEnd="true" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
status_bar.xml:
HTML:
<?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">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0dip" android:layout_weight="1" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center_vertical" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingStart="2.0dip" android:layout_marginLeft="2.0dip" >
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="left|center" android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="2.0dip" />
<ImageView android:id="@id/battery" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="0.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" android:layout_marginLeft="1.5dip"/>
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="right" >
<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" android:gravity="right" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentEnd="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="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:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<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>
I attach SystemUI.apk. Remember that I have tested this with Android 4.3 JWR rom (deodex)
Thanks!! Fantastic! What did u exactly change on those files?
luiseteyo said:
Thanks!! Fantastic! What did u exactly change on those files?
Click to expand...
Click to collapse
well, as first step I changed the order of status_bar layouts....
Then, in order to rearrange system_icon_area (wifi, data...) I modified signal_cluster view...
And as last step changed the gravity of notification_icon_area and system_icon_area layouts and added some margins to these icons in order to have a better look
iOS Style Status Bar?
Do you know how to make iOS style stat. bar?
For Example:
Signal---WiFi---BT---Clock---Notification---Battery
I want to use it in MIUI v5 but I can't find the guide for this.
I think it can be made by modding your code.
Thanks.(Sorry for my bad English
hw0603 said:
Do you know how to make iOS style stat. bar?
For Example:
Signal---WiFi---BT---Clock---Notification---Battery
I want to use it in MIUI v5 but I can't find the guide for this.
I think it can be made by modding your code.
Thanks.(Sorry for my bad English
Click to expand...
Click to collapse
Well, i think so... However you would do a great favor if upload some screenshot, so I can use it as an example
Like This!
Thank you for reply^^
hw0603 said:
Like This!
Thank you for reply^^
Click to expand...
Click to collapse
Well, I could try ut... But i need some time until the weekend, i have to study
bamsbamx said:
Well, I could try ut... But i need some time until the weekend, i have to study
Click to expand...
Click to collapse
Thanks, can you please tell me a guide for that when you have time?
Today is our contry's holiday lol
Sent from my Nexus 4 using Tapatalk 4
hw0603 said:
Thanks, can you please tell me a guide for that when you have time?
Today is our contry's holiday lol
Sent from my Nexus 4 using Tapatalk 4
Click to expand...
Click to collapse
Wow that envy hahahah!!!
Well, there are a lot of SystemUI modding guides out there... I recommend you using APKTool for that. Also you need some android development knowledges
You can use this tutorial as base, this is compatible with latest JB versions... http://forum.xda-developers.com/showthread.php?t=1814441
Good luck
bamsbamx said:
Wow that envy hahahah!!!
Well, there are a lot of SystemUI modding guides out there... I recommend you using APKTool for that. Also you need some android development knowledges
You can use this tutorial as base, this is compatible with latest JB versions... http://forum.xda-developers.com/showthread.php?t=1814441
Good luck
Click to expand...
Click to collapse
Thanks!
Sent from my Nexus 4 using Tapatalk 4
Please do ios status bar
Sent from my Nexus 4 using xda app-developers app
Is everything the opposite? I.e swiping off notifications and stuff? Or just the icons?
leiros said:
Is everything the opposite? I.e swiping off notifications and stuff? Or just the icons?
Click to expand...
Click to collapse
Just the icons

[GUIDE] AOKP like toggles [UPDATE]

Hey Guys, In this guide I am going to show you how to make the stock statusbar toggles look like AOKP toggles.
Preview:
{
"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"
}
Requirements:
SystemUI.apk from your ROM
Know how to decompile/recompile
If you want your toggles to be like how they are in the 1st preview then follow the 1st method
or
If you want your toggles to be like how they are in the 2nd preview then follow the 2nd method
Let's start
1. Decompile your SystemUI.apk
2. Go to res/layout/
Open quickpanel_quick_settings.xml
1st Method
3. Replace the whole code with this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip">
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_wifi_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_wifi_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_data_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_data_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_dc_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_bt_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_bluetooth_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_bluetooth_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_gps_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_gps_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_gps_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_rotation_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_rotation_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_sound_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_sound_on_on" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="13.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_silent_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
</LinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
4. Go to res/drawable-ldpi and delete these files
Code:
quickpanel_icon_bluetooth_off
quickpanel_icon_bluetooth_on
quickpanel_icon_data_off
quickpanel_icon_data_on
quickpanel_icon_gps_off
quickpanel_icon_gps_on
quickpanel_icon_rotation_off
quickpanel_icon_rotation_on
quickpanel_icon_silent_off
quickpanel_icon_sound_on_on
quickpanel_icon_sound_vibration_on
quickpanel_icon_vibration_off
quickpanel_icon_wifi_off
quickpanel_icon_wifi_on
5. Download Sys_Resources.zip
Extarct it and copy all the files to res/drawable-ldpi
2nd method
3. Replace the whole code with this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_wifi_off" />
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_wifi_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_data_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_data_off" />
<com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_dc_text" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_bt_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_bluetooth_off" />
<com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_bluetooth_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_gps_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_gps_off" />
<com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_gps_text" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_rotation_off" />
<com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_rotation_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_sound_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_sound_on_on" />
<com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_silent_text" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
4. Go to res/drawable-ldpi and delete these files
Code:
quickpanel_icon_bluetooth_off
quickpanel_icon_bluetooth_on
quickpanel_icon_data_off
quickpanel_icon_data_on
quickpanel_icon_gps_off
quickpanel_icon_gps_on
quickpanel_icon_rotation_off
quickpanel_icon_rotation_on
quickpanel_icon_silent_off
quickpanel_icon_sound_on_on
quickpanel_icon_sound_vibration_on
quickpanel_icon_vibration_off
quickpanel_icon_wifi_off
quickpanel_icon_wifi_on
5. Download Sys_Resources1.zip
Extarct it and copy all the files to res/drawable-ldpi
6. Recompile your SystemUI.apk
Push it into system/app
Set proper permissions(rw-r--r--)
If you want to move the toggles then follow this guide by @mariozawa
Credits:
b16h22
Reseved 01
Reserved
Nice,i think its cooler when you make a all in one thread for all your guides so its easy to find one,thanx anyway.:thumbup:
MANY GREEEETZ!!!
-CALIBAN666- said:
Nice,i think its cooler when you make a all in one thread for all your guides so its easy to find one,thanx anyway.:thumbup:
MANY GREEEETZ!!!
Click to expand...
Click to collapse
Thanks for your suggestion but i have already done that, When you click 'MY WORKS' in my signature you will be redirected to a post where you can find all my apps, guides, icons, etc. with their links.
Looks like OP is on Fire ..Great work buddy ..
Good to see you on our team(GFX bandits)
Mr.Gentleman said:
Looks like OP is on Fire ..Great work buddy ..
Good to see you on our team(GFX bandits)
Click to expand...
Click to collapse
+1
Nice work M.S
This is what im looking for :victory:
Great Job Bro Please Can You B Able To Provide me Moded with Aokp status bar...i dnt knw recompiling-Decompiling
Himan Boro said:
Great Job Bro Please Can You B Able To Provide me Moded with Aokp status bar...i dnt knw recompiling-Decompiling
Click to expand...
Click to collapse
Sorry, I don't have the modded statusbar. Actually, I mod the statusbar only for the preview, after that I delete it.
Nice mod sir!!!!!!!!!!
Ok...Anybuddy Provide me that Please
Cool guide bro
Sent from my GT-S5360 using Tapatalk 2
OP Updated with 2 methods.. Check it out!
C00L :victory:
Thanks for the Guide !!
hi sir good day @MuSaddiq
i want to ask to you 2 question hope you didnt bored answerin it
first
i have two layout of statusbar (aosp statusbar by marcus) and i want to apply your aokp toogles to the first layout which includes notification (lets say first layout). how did i put it there and how did i know it is first layout or second layout
second
does this applicable to aosp too ?
TIA sir any help is appreciated :fingers-crossed::highfive:
Mranggapo said:
hi sir good day @MuSaddiq
i want to ask to you 2 question hope you didnt bored answerin it
first
i have two layout of statusbar (aosp statusbar by marcus) and i want to apply your aokp toogles to the first layout which includes notification (lets say first layout). how did i put it there and how did i know it is first layout or second layout
second
does this applicable to aosp too ?
TIA sir any help is appreciated :fingers-crossed::highfive:
Click to expand...
Click to collapse
Yes, it will work on AOSP too but its little complicated. Can u give me your SystemUI ?
MuSaddiq said:
Yes, it will work on AOSP too but its little complicated. Can u give me your SystemUI ?
Click to expand...
Click to collapse
Im sorry sir, but can you check marcussmith thread in themes section, im attaching my modded apk in there
Its already modded by me, i hope you can correct it . Sorry because im on tablet and my data is in computer
Mranggapo said:
Im sorry sir, but can you check marcussmith thread in themes section, im attaching my modded apk in there
Its already modded by me, i hope you can correct it . Sorry because im on tablet and my data is in computer
Click to expand...
Click to collapse
It's ok, I will use the SystemUI from marcus's thread
MuSaddiq said:
It's ok, I will use the SystemUI from marcus's thread
Click to expand...
Click to collapse
Sorry to disturb you, but if you dont mid. I have modded sir marcus systemui, you can check it rather than creating ones. Ive spent two hours -_-
Appreciate
sent from terminal emulator

Categories

Resources