Status Bar XML (need to align 2 texviews on 1 line) - Galaxy S I9000 Themes and Apps

Hi, I'm trying to add a custom label to the "Ongoing" line of the status bar, I have tried several things such as LinearLayout or aligning it, all things I tried failed... The "broodROM RC5" label is on the right place (in horizontal matters) but it should be at the same line as the "Ongoing" label, I didn't succeed in making this work unfortunately, however this is what I got:
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"
}
Code:
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="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" 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" />
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" android:layout_weight="1" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" android:layout_weight="1" />
[b]<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:background="@drawable/quickpanel_title_background" android:paddingLeft="205.0dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/broodrom" android:layout_weight="1"/>[/b]
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
Can anyone help me?
EDIT: NVM, ALREADY FIXED IT

Cool. Can you explain how I add this to icssgs 4.2 rom. I would be very grateful mate

broodplank1337 said:
EDIT: NVM, ALREADY FIXED IT
Click to expand...
Click to collapse
How?

Well I found a fix on the interwebs, you have to put the labels in another LinearLayout, like this:
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="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" 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" />
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
[b]<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">[/b]
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="wrap_content" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" android:layout_weight="1.0" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="wrap_content" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" android:layout_weight="1.0" />
[b]<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="right" android:background="@drawable/quickpanel_title_background" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/broodrom" android:layout_weight="2.0" />[/b]
[b]</LinearLayout>[/b]
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</LinearLayout>
</com.android.systemui.statusbar.ExpandedView>
It seems the xml is just playing hard to get, so you will need to force that layout
my final version:
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="@drawable/title_bar_portrait" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false">
<com.android.systemui.statusbar.CarrierLabel android:textSize="18.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" 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" />
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:layout_width="76.66998dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip" android:text="@string/status_bar_clear_all_button" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="wrap_content" android:layout_height="26.669983dip" android:text="@string/status_bar_no_notifications_title" android:layout_weight="1.0" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="wrap_content" android:layout_height="26.669983dip" android:text="@string/status_bar_ongoing_events_title" android:layout_weight="1.0" />
<TextView android:textSize="13.0dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:layout_gravity="right" android:background="@drawable/quickpanel_title_background" android:paddingRight="10.0dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/broodrom" android:layout_weight="2.0" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="14.669983dip" android:textColor="#ffffffff" android:gravity="center_vertical" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="13.329987dip" android:layout_width="fill_parent" android:layout_height="26.669983dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</LinearLayout>
</com.android.systemui.statusbar.ExpandedView>
Resulting in:
Oh and btw, this batch script will save you some time when you're testing
Code:
@echo off
adb wait-for-devices
adb root
echo.
echo Wait for usb sound and then press enter
pause
echo.
adb -d shell su -c "mount -o remount rw /system"
adb -d shell su -c stop
adb push SystemUI.apk /system/app/SystemUI.apk
adb -d shell chmod 644 /system/app/SystemUI.apk
echo.
echo rebooting...
adb reboot
taskkill /f /im adb.exe

There's no need to reboot device after replacing SystemUI, I think.
Just:
- adb shell
- su
- kill `ps | grep systemui | awk '{print $2}'`
then long press home button so that SystemUI reloads, if it doesn't reload automatically.

theos0o said:
There's no need to reboot device after replacing SystemUI, I think.
Just:
- adb shell
- su
- kill `ps | grep systemui | awk '{print $2}'`
then long press home button so that SystemUI reloads, if it doesn't reload automatically.
Click to expand...
Click to collapse
ah nice , didn't know that one, i knew the stop and start method but not this one, thnx

Related

[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:

[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

[Q] systemui mod

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.

[GUIDE][MOD][4.4-5.X]Dual-Lines Statusbar (plus Extra Mod's)

Hello XDA
================================================
Perhaps only a few people are interested about this, because the size of statusbar wider/higher and make your device screen "such as" narrowing. But it's okay. This is just for fun, as well as theming which became one of the fun things in the android world.
So, Heyho Let's Go
!!
================================================
Only a few are required:
All the things needed for de / recompiling apk
Please backup your previous ROM
Don't be too serious
## For kitkat look at #3 ​===============
STEP-BY-STEP
===============
V.1
{
"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"
}
​
1. Framework-res.apk
Open your dimens.xml
Find this :​
PHP:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height_landscape">48.0dip</dimen>
Change to :​
PHP:
<dimen name="status_bar_height">50.0dip</dimen>
<dimen name="navigation_bar_height">45.0dip</dimen>
<dimen name="navigation_bar_height_landscape">45.0dip</dimen>
Click to expand...
Click to collapse
Sometimes, if we make any changes in framework-res.apk, can make SystemUI be a mess. If you want to do this without touching framework-res.apk, add all the above lines into your framework-res overlay apk.
(Ex: android-res-305.apk in my ROM)
Click to expand...
Click to collapse
Done
2. SystemUI.apk
1. system_icons.xml OR msim_system_icons.xml
Compare my base layout with stock layout / yours
Stock layout :​
PHP:
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/msim_signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
New base layout structure :​
PHP:
<LinearLayout android:id="@id/system_icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|right" android:orientation="vertical" android:layout_toEndOf="@+id/fun_c"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:layout_gravity="right" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT TOP lines on your statusbar
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT BOTTOM lines on your statusbar
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
NOTES :
I changed @id/system_icons layout, to be like this
PHP:
android:id="@id/system_icons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center|right"
android:orientation="vertical"
android:layout_toEndOf="@+id/fun_c"
I made two new linear layout, id's, with a height of each 25.0dip
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id's into RIGHT TOP lines space (@+id/fun_rtop)
Code:
@id/statusIcons
@id/battery
@id/somc_battery
Put these id into RIGHT BOTTOM lines space (@+id/fun_rbottom)
Code:
@id/signal_cluster OR @id/msim_signal_cluster
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/system_icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|right" android:orientation="vertical" android:layout_toEndOf="@+id/fun_c"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:layout_gravity="right" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/msim_signal_cluster_view" />
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. status_bar.xml OR msim_status_bar.xml
From the screenshot in OP, we can see the clock, day and date in the middle of the status bar. And that means we need to HIDE it all while on the lock screen. Maybe it could be done by editing the smali codes (for experts), but unfortunately I am not an expert haha .
So I looked for another methods, it's impractical and an imperfect, but it works.
The key is : Do not kick them out from AlphaOptimized layouts
Click to expand...
Click to collapse
Now, we'll just change the layout @id/status_bar_content only.
Compare 2 layout below
Stock Layout :​
PHP:
<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="8.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" 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.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<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_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
<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="7.0dip" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
New base layout structure :​
PHP:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT TOP lines on your statusbar
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT BOTTOM lines on your statusbar
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="end" android:orientation="horizontal" android:paddingEnd="6.0dip">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" >
## Everything that is in here, will be in the CENTER on your statusbar
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT TOP lines space (@+id/fun_ltop)
Code:
@id/notificationIcons
Put these id's into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/carrier_text
@id/moreIcon
Put these id into CENTER lines space (@+id/fun_c)
Code:
@id/clock
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:id="@id/carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:visibility="gone" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="end" android:orientation="horizontal" android:paddingEnd="6.0dip">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
3. keyguard_status_bar.xml OR msim_keyguard_status_bar.xml
All that is in the middle of the statusbar, have been hidden. Now it's time to set the lockscreen statusbar
Click to expand...
Click to collapse
Compare 2 layout below
Stock layout​
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" 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.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/status_bar_header_height_keyguard" android:layout_marginEnd="@dimen/multi_user_switch_keyguard_margin" android:layout_alignParentEnd="true">
<ImageView android:layout_gravity="center" android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:id="@id/system_icons_super_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_header_height" android:layout_alignWithParentIfMissing="true" android:paddingEnd="@dimen/system_icons_keyguard_padding_end" android:layout_marginStart="16.0dip" android:layout_toStartOf="@id/multi_user_switch">
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
</LinearLayout>
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/keyguard_carrier_text" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" android:layout_toStartOf="@id/system_icons_super_container" />
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Modded layout​
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:baselineAligned="false" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.keyguard.CarrierText android:id="@id/keyguard_carrier_text" android:layout_width="fill_parent" android:layout_height="25.0dip" android:layout_alignParentBottom="true" android:layout_alignParentStart="true" android:layout_gravity="center_vertical" android:layout_toStartOf="@id/multi_user_switch" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" />
<com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/status_bar_header_height_keyguard" android:layout_centerHorizontal="true" android:background="@drawable/ripple_drawable">
<ImageView android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:layout_gravity="center" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:id="@id/system_icons_super_container" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height" android:layout_alignParentEnd="true" android:layout_alignWithParentIfMissing="true" android:layout_toEndOf="@id/multi_user_switch" android:gravity="end">
<FrameLayout android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="center_vertical">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:id="@id/battery_level" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_gravity="center_vertical" android:importantForAccessibility="noHideDescendants" android:textColor="#ffffffff" android:textSize="@dimen/battery_level_text_size" android:visibility="gone" />
</LinearLayout>
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Click to expand...
Click to collapse
NOTES :
I hide the battery percentage = @id/battery_level
PHP:
<TextView android:id="@id/battery_level"
android:layout_width="0.0dip"
android:layout_height="0.0dip"
android:layout_gravity="center_vertical"
android:importantForAccessibility="noHideDescendants"
android:textColor="#ffffffff"
android:textSize="@dimen/battery_level_text_size"
android:visibility="gone" />
Moving @id/multi_user_switch to the center. And @id/system_icons_super_container to the right.
Click to expand...
Click to collapse
4. dimens.xml
Find this :​
PHP:
<dimen name="status_bar_header_height_keyguard">40.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">34.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">22.0dip</dimen>
Change the values to be like this :​
PHP:
<dimen name="status_bar_header_height_keyguard">50.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">46.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">40.0dip</dimen>
Click to expand...
Click to collapse
5. Done & Enjoy !!​
This method doesn't touch any smali's., so I think it could work in ODEX or DEODEX ROM
If there was a mistake of the above methods, or doesn't works, please let me know.​
V.2
​1. Framework-res.apk === Look at V.1
2. SystemUI.apk
1. status_bar.xml OR msim_status_bar.xml
Now, we'll just change the layout @id/status_bar_content only.
Look at my new base layout
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:orientation="horizontal" >
## Everything that is in here, will be in the LEFT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_ctop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
## Everything that is in here, will be in the CENTER on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentEnd="true" android:gravity="end" android:orientation="horizontal" >
## Everything that is in here, will be in the RIGHT on your TOP line
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_gravity="bottom" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your BOTTOM line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="end" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your BOTTOM line
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/moreIcon
@id/carrier_text
@id/notificationIcons
Put these lines into RIGHT BOTTOM lines space (@+id/fun_rbottom)
PHP:
<include layout="@layout/msim_system_icons" />
I made the the top line to adjust clock position (and other mods if you have). So put @id/clock in the position you want, but remain in the the top line. Just for example , this is for center clock
PHP:
<LinearLayout android:id="@+id/fun_c_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.ClockCenter android:id="@id/center_clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
</LinearLayout>
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_l_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:orientation="horizontal" />
<LinearLayout android:id="@+id/fun_c_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_r_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentEnd="true" android:gravity="end" android:orientation="horizontal" />
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_gravity="bottom" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_l_bottom" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
<com.android.keyguard.CarrierText android:id="@id/carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:visibility="gone" />
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_r_bottom" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="end" android:orientation="horizontal">
<include layout="@layout/msim_system_icons" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. keyguard_status_bar.xml OR msim_keyguard_status_bar.xml
Look at my modded layout
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:baselineAligned="false" android:paddingStart="6.0dip" android:paddingEnd="6.0dip"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/keyguard_carrier_text" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="25.0dip" android:singleLine="true" android:layout_toStartOf="@id/multi_user_switch" android:layout_alignParentStart="true" />
<TextView android:id="@+id/profile_runtext" android:gravity="center" android:background="#00000000" android:layout_width="200.0dp" android:layout_height="20.0dip" android:singleLine="true" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
<com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/multi_user_switch_width_keyguard" android:layout_centerHorizontal="true">
<ImageView android:layout_gravity="center" android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:gravity="end" android:id="@id/system_icons_super_container" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_alignWithParentIfMissing="true" android:layout_toEndOf="@id/multi_user_switch" android:layout_alignParentEnd="true">
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" />
</LinearLayout>
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Click to expand...
Click to collapse
Look at @+id/profile_runtext from above codes. You can change that lines with yours. But my suggestion, please to use the same attributes.
PHP:
android:gravity="center"
android:layout_height="20.0dip" ##Maximal of height is 20.0dp
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
Click to expand...
Click to collapse
3. dimens.xml
Find this :​
PHP:
<dimen name="status_bar_header_height_keyguard">40.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">34.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">22.0dip</dimen>
Change the values to be like this :​
PHP:
<dimen name="status_bar_header_height_keyguard">50.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">30.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">26.0dip</dimen>
Click to expand...
Click to collapse
4. Done & Enjoy !!​================================================​
3. Extra Mod's (Optional)
V.1
1. Day, date, and seconds in clock
Open status_bar.xml OR msim_status_bar.xml
Hide your stock @id/clock (DON'T DELETE)
Add this :​
PHP:
android:visibility="gone"
If doesn't work, change to be like this :​
PHP:
android:layout_height="0.0dip"
android:layout_width="0.0dip"
Click to expand...
Click to collapse
Add this lines below your stock @id/clock :
PHP:
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Click to expand...
Click to collapse
Add this lines above your stock @id/clock :
PHP:
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Click to expand...
Click to collapse
So the layout should be like this :
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingEnd="4.0dip" android:paddingStart="4.0dip" >
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
Click to expand...
Click to collapse
Open your strings.xml, and add this :
PHP:
<string name="status_bar_clock_12hr_format">h:mm:ss</string>
<string name="status_bar_clock_24hr_format">HH:mm:ss</string>
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">dMMMyyyy</string>
Click to expand...
Click to collapse
Done
Some additional info
These few formats that you can use for your pattern in strings.xml​
Code:
Days / Dates
d : 1
dd : 01
EEE : Tue
EEEE : Tuesday
Months
M : 9
MM : 09
MMM : SEP
MMMM : SEPTEMBER
Years
yy : 14
yyyy : 2014
Hours (12 hours)
h : 5
hh : 08
Hours (24 hours)
H : 4/17 (4am)
HH : 4am = 04
Minutes
m : 5
mm : 05
Seconds
s : 7
ss : 07
a : AM/PM
Click to expand...
Click to collapse
2. Statusbar background
Open your status_bar.xml OR msim_status_bar.xml
Add this lines above @id/notification_icon_area_inner
PHP:
<LinearLayout android:id="@+id/fun_statbar_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:background="@drawable/YOUR_PNG_FILE_NAME" android:orientation="vertical" />
to be like this :​
PHP:
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_statbar_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:background="@drawable/YOUR_PNG_FILE_NAME" android:orientation="vertical" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
Click to expand...
Click to collapse
Put yours PNG / Vector files to the right folder
Done & enjoy !!
3. Date & time background
Open your status_bar.xml OR msim_status_bar.xml
Add this line inside @id/fun_c
PHP:
android:background="@drawable/YOUR_PNG_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:gravity="center" android:id="@+id/fun_c" android:layout_centerInParent="true" android:layout_gravity="center" android:layout_height="fill_parent" android:layout_width="wrap_content" android:orientation="vertical" android:background="@drawable/YOUR_PNG_FILE_NAME" >
Click to expand...
Click to collapse
Put yours PNG / Vector files to the right folder
Done & enjoy !!
V.2
1. Divider
Put divider files from attachment into properly folder
Add this codes :
PHP:
android:background="@drawable/divider"
For full divider, add above codes into <RelativeLayout tag :
PHP:
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:background="@drawable/divider" android:layout_width="fill_parent" android:layout_height="fill_parent">
Or if you want have divider like on screenshots (only in the visible layout), add above codes into your active id's. Example from the screenshot :
PHP:
<LinearLayout android:id="@+id/fun_c_top" android:background="@drawable/divider" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout>
Done
KITKAT
​1. Framework-res.apk === Look at Lollipop section (#1)
2. SystemUI.apk
1. status_bar.xml OR msim_status_bar.xml
Now, we'll just change the @id/status_bar_content contents only.
Look at my new base layout
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statbar_bg" android:orientation="horizontal" >
<LinearLayout android:id="@+id/fun_l" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical" android:paddingStart="6.0dip" >
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your BOTTOM line
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
## Everything that is in here, will be in the CENTER on your status bar
</LinearLayout>
<LinearLayout android:id="@id/signal_battery_cluster" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1.0" android:gravity="end" android:orientation="vertical" android:paddingEnd="6.0dip" >
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your BOTTOM line
</LinearLayout>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT TOP lines space (@+id/fun_ltop)
Code:
@id/moreIcon
Put these id's into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/notification_icon_area
@id/notificationIcons
Put these id's into CENTER lines space (@+id/fun_c)
Code:
@id/clock
Put these id's into RIGHT TOP lines space (@+id/fun_rtop)
Code:
@id/battery
Put these id's into RIGHT BOTTOM lines space (@+id/fun_rbottom)
Code:
@id/msim_signal_cluster
NOTE !!! Now, find @id/statusIcons in the @id/system_icon_area, and then move to RIGHT TOP lines space (@id/fun_rtop). JUST @id/statusIcons , WITHOUT @id/system_icon_area !!!
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statbar_bg" android:orientation="horizontal" >
<LinearLayout android:id="@+id/fun_l" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical" android:paddingStart="6.0dip" >
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:orientation="horizontal" />
<LinearLayout android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" />
</com.android.systemui.statusbar.phone.IconPartitioner>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textStyle="bold" />
</LinearLayout>
<LinearLayout android:id="@id/signal_battery_cluster" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1.0" android:gravity="end" android:orientation="vertical" android:paddingEnd="6.0dip" >
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<LinearLayout android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:orientation="horizontal" />
<LinearLayout android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" />
<ImageView android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:src="@drawable/somc_sys_powersaver" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start|center" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<include android:id="@id/msim_signal_cluster" layout="@layout/msim_signal_cluster_view" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. signal_cluster_view.xml OR msim_signal_cluster_view.xml
Look at first tag, add/change this attribute :
PHP:
android:gravity="end|center_vertical"
Result :
PHP:
<com.android.systemui.statusbar.MSimSignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="end|center_vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
3. dimens.xml
Add this :
PHP:
<dimen name="status_bar_split_height">25.0dip</dimen>
4. Done & Enjoy !!​================================================​
3. Extra Mod's (Optional)
1. Adding day & date
Open status_bar.xml OR msim_status_bar.xml
Find @id/clock
Add this above :
PHP:
<TextClock android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_day_format" android:format24Hour="@string/status_bar_day_format" android:paddingBottom="1.0dip" android:singleLine="true" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Add this below :
PHP:
<TextClock android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_date_format" android:format24Hour="@string/status_bar_date_format" android:paddingTop="1.0dip" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
I cant used the same methods from Lollipop, because have a different DateView codes i think. So I tricked it using TextClock. Im sorry
Click to expand...
Click to collapse
So the layout should be like this :
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
<TextClock android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_day_format" android:format24Hour="@string/status_bar_day_format" android:paddingBottom="1.0dip" android:singleLine="true" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textStyle="bold" />
<TextClock android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_date_format" android:format24Hour="@string/status_bar_date_format" android:paddingTop="1.0dip" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
Click to expand...
Click to collapse
Open your strings.xml, and add this :
PHP:
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">d MMM yyyy</string>
Click to expand...
Click to collapse
Done
2. Statusbar background
Open your status_bar.xml OR msim_status_bar.xml
Find @id/status_bar_contents and add this :
PHP:
android:background="@drawable/YOUR_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/YOUR_FILE_NAME" android:orientation="horizontal" >
Click to expand...
Click to collapse
Put your files to the right folder
Done & enjoy !!
3. Date & time background
Open your status_bar.xml OR msim_status_bar.xml
Find @id/fun_c and add this :
PHP:
android:background="@drawable/YOUR_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/YOUR_FILE_NAME" android:gravity="center" android:orientation="vertical" >
Click to expand...
Click to collapse
Put your files to the right folder
Done & enjoy !!
4. Running Text
Find @id/fun_ltop and add this :
PHP:
<TextView android:id="@+id/profile_runtext" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:text="@string/profile_text" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
to be like this :​
PHP:
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
<TextView android:id="@+id/profile_runtext" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:text="@string/profile_text" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout
Click to expand...
Click to collapse
Open strings.xml and add this :
PHP:
<string name="profile_text">Watch out!! I can running and scrolling on your status bar</string>
NOTE !!! Your string value must be longer than the layout_width !!!
Done
A very impressive mod and a good tutorial. Good work my friend! :highfive:
And that central clock-day-date is very nicely done - I love the background!
Seems i gat to try dis... Dis looks ****ing awesome!!!
Thanks for dis.. Dis tut makes me remember @Ticklefish
im using 32.0dip for my navigation_bar_height but in yur tut, it was 45.0dip.... is it possible for me to maintain 32.0dip for navigation_bar_height?
Pls mm
D6503 cihazımdan Tapatalk kullanılarak gönderildi
@FunSucker when i used dis codes, i got dis error while compiling....
Code:
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
[color=red]Line 24[/color]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
Code:
C:\Users\LaLa-PC\Desktop\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:24: error: Error parsing XML: unbound prefix
loving dis tut but tha dock icons shifted down much.... any fix for dat?
i reduced my nav bar size to 32 & it works.:highfive::good:
thanks
I want to 6.0 mm pls??
D6503 cihazımdan Tapatalk kullanılarak gönderildi
yakupTR said:
I want to 6.0 mm pls??
D6503 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
Unfortunately, my phone didn't get an official update to Android 6.0 You can try to compare the layout structure.. If you get stuck, I'll try my best to help.
whalesplaho said:
loving dis tut but tha dock icons shifted down much.... any fix for dat?
i reduced my nav bar size to 32 & it works.:highfive::good:
thanks
Click to expand...
Click to collapse
whalesplaho said:
@FunSucker when i used dis codes, i got dis error while compiling....
Code:
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
[color=red]Line 24[/color]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
Code:
C:\Users\LaLa-PC\Desktop\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:24: error: Error parsing XML: unbound prefix
Click to expand...
Click to collapse
whalesplaho said:
Seems i gat to try dis... Dis looks ****ing awesome!!!
Thanks for dis.. Dis tut makes me remember @Ticklefish
Click to expand...
Click to collapse
Thanks a lot , sir. and yes! Because I learned from him as well, and I used TMA by @Ticklefish too for decompiling my APKs/JARs haha
About your issue, has it been successfully fixed now? or still error? Did you check all over again?
if still error, can you share your xml ?
Ticklefish said:
A very impressive mod and a good tutorial. Good work my friend! :highfive:
And that central clock-day-date is very nicely done - I love the background!
Click to expand...
Click to collapse
Thanks a lot, sir. Finally, I can make "a something" :laugh: lol
Unfortunately, gradient colors not supported in vector drawables
@FunSucker thanks for yur response.... appreciate!
dis is my status_bar.xml code.. i havent been able to solve tha Clock issue and adjusting tha dock icons too.... please would appreciate yur help!
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/system_bar_background" android:focusable="false" 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:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
---------- Post added at 09:04 PM ---------- Previous post was at 08:10 PM ----------
[/COLOR @FunSucker, i replaced tha clock code with tha default one den i tried compiling but got dis error,
No resource identifier found for attribute 'datePattern' in package 'android'....
im so in love with dis code.... thanks so much @FunSucker!!
just trying codes around.... but still stuck with tha dock icons alignment & date!
after searching tiredless..... i get dis code from my status_bar_expanded_header.xml; since android:datepattern aint recognised
"systemui:datePattern".... so my code was like dis below but tha date format aint good. please sorry for bugging yhu and please help with a vector png for status_bar & data/time background!
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/system_bar_background" android:focusable="false" 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:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<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" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
whalesplaho said:
@FunSucker thanks for yur response.... appreciate!
dis is my status_bar.xml code.. i havent been able to solve tha Clock issue and adjusting tha dock icons too.... please would appreciate yur help!
---------- Post added at 09:04 PM ---------- Previous post was at 08:10 PM ----------
[/COLOR @FunSucker, i replaced tha clock code with tha default one den i tried compiling but got dis error,
No resource identifier found for attribute 'datePattern' in package 'android'....
Click to expand...
Click to collapse
whalesplaho said:
im so in love with dis code.... thanks so much @FunSucker!!
just trying codes around.... but still stuck with tha dock icons alignment & date!
Click to expand...
Click to collapse
For "datePattern", you can re-check from EXTRA MODS section, look at point 1. Have you added new "datePattern" in strings.xml? Like my examples.
For the dock & navbar, where do you changing the size of navbar? framework-res.apk or overlay framework apk, sir?
FunSucker said:
For "datePattern", you can re-check from EXTRA MODS section, look at point 1. Have you added new "datePattern" in strings.xml? Like my examples.
For the dock & navbar, where do you changing the size of navbar? framework-res.apk or overlay framework apk, sir?
Click to expand...
Click to collapse
1. I did exactly just dat buh didnt work outta, i declared in strings.xml buh yhu know we didnt declared any variables for androidatePattern and tha error was no resource attributes found. So i used systematePattern and it works but tha date shown aint okay... Check tha screenshot and tha code i used in dis post; https://forum.xda-developers.com/showpost.php?p=70428869&postcount=14
2. I used an overlay... Been using dat before dis mod and it was okay!
---------- Post added at 08:41 AM ---------- Previous post was at 08:34 AM ----------
3. I still need a vector/png for status_bar and date/clock please...
4. Tha notification icons is showing under tha clock....
whalesplaho said:
1. I did exactly just dat buh didnt work outta, i declared in strings.xml buh yhu know we didnt declared any variables for androidatePattern and tha error was no resource attributes found. So i used systematePattern and it works but tha date shown aint okay... Check tha screenshot and tha code i used in dis post; https://forum.xda-developers.com/showpost.php?p=70428869&postcount=14
2. I used an overlay... Been using dat before dis mod and it was okay!
---------- Post added at 08:41 AM ---------- Previous post was at 08:34 AM ----------
3. I still need a vector/png for status_bar and date/clock please...
4. Tha notification icons is showing under tha clock....
Click to expand...
Click to collapse
hmm there are some differences. .
1. @id/network_label, don't put it there. Move it into @+id/fun_ltop OR @+id/fun_lbottom OR @+id/fun_rtop OR @+id/fun_rbottom.
Code:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
2. Lines 24 error, miss spelling. Look at red text. You typed "andoid:...", not "android:...". And miss space, give a space between "gone" and "android:layout_width"
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" [COLOR="red"]andoid:visibility="gone"[/COLOR]android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Try this code & let me know :
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/system_bar_background" android:focusable="false" 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:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip" >
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
for background PNG, i will upload it now to the OP (EXTRA MODS section attachments)
@FunSucker thanks for tha reply..... tha code yhu used was a bit old! dis was tha last code i used & tha screenshot.
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/system_bar_background" android:focusable="false" 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:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<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" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="EEEE" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="eeeeMMMMd" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
whalesplaho said:
@FunSucker thanks for tha reply..... tha code yhu used was a bit old! dis was tha last code i used & tha screenshot.
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/system_bar_background" android:focusable="false" 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:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<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" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="EEEE" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="eeeeMMMMd" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Click to expand...
Click to collapse
can you shared your strings.xml, sir ?
FunSucker said:
can you shared your strings.xml, sir ?
Click to expand...
Click to collapse
Sure brov.... couldnt share all, too much!
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="kg_somc_verizon_puk_enter_pin_hint">Please enter a new 4-8 digit SIM PIN.</string>
<string name="kg_somc_verizon_puk_enter_puk_hint">Please enter your 8-digit SIM PUK code</string>
<string name="kg_somc_verizon_sim_pin_instructions">Please enter your 4-8 digit SIM PIN</string>
<string name="lockscreen_microphone_image_hint">Microphone Image</string>
<string name="lockscreen_voice_unlock_error_hint">Did not recognize passphrase</string>
<string name="lockscreen_voice_unlock_or_short_unlock_hint">Say your passphrase or swipe to unlock</string>
<string name="lockscreen_accessibility_unlock_hint">Swipe up or down to unlock</string>
<string name="lockscreen_app_name">Lock screen</string>
<string name="lockscreen_short_unlock_hint">Swipe to unlock</string>
<string name="lockscreen_unlock_hint">Swipe up or down to unlock</string>
<string name="xperia_lockscreen_name">Xperia™</string>
<string name="widget_default_package_name">com.sonyericsson.advancedwidget.clock</string>
<string name="widget_default_class_name">com.sonymobile.lockscreenclock.ClockWidget</string>
<string name="status_bar_clock_12hr_format">h:mm:ss</string>
<string name="status_bar_clock_24hr_format">HH:mm:ss</string>
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">dMMMyyyy</string>
</resources>
i have anoda issue brov.... i tried adding date/clock background but shows no resource found error again. i moved tha png to drawable-xxhdpi folder den used dis code;
really sorry for troubling yhu buddy.....:crying::crying:
Code:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:background="@drawable/statbar_cbg.9" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">

Categories

Resources