Related
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
That's awesome
I think the images are part of the frameworks
Pvy
Sent from my Galaxy Nexus using xda premium
Are you using the stock ROM !?
No, its custom AWESOME-4000 ROM
I have got this ad well when I put the xperia t phonebook onto my arc so it could be that you have incompatible dialer with home launcher just try different launcher.
Sent from my X10i using xda premium
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
am2222 said:
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
Click to expand...
Click to collapse
I've tried to replace the dialer - no effect.
silkoo said:
I've tried to replace the dialer - no effect.
Click to expand...
Click to collapse
if you use phonebook from stock rom then it works, ie not transparent
a.
I've the same question: Where can I change the transparent dialer in phonebook.apk? I changed dial_background.png in some folders but it didn't help.
I changed a lot more pictures and .xml strings but still no luck. I didn't find any topic for the sony stock phonebook.apks, so I would be thankful if someone can help!
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
accts said:
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
Click to expand...
Click to collapse
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
accts said:
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
Click to expand...
Click to collapse
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Here is the zip decompiled phonebook.apk - View attachment LT28i_68_phonebook.zip
Finally got around to checking this for yo guys,
Now it is REALLY easy to figure this out so prepare for a spiel.
if there is an image that you need to figure out. somewhere in an app. this is my process of doing it.
first figure out what part of the app it is in (the Dialer in the main activity)
check for a layout that is named Dialer
Code:
/res/layout/dialpad
close enough for me.
look at the xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:background="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/one" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/oneNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_1_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/oneNum" android:layout_centerVertical="true">
<TextView android:id="@id/oneSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_1_txt" style="@style/Dialpad.Label" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/dialpad_voicemail_icn" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/two" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusDown="@id/five" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/twoNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_2_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/twoNum" android:layout_centerVertical="true">
<TextView android:id="@id/twoSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_2_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_2_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/three" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/threeNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_3_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/threeNum" android:layout_centerVertical="true">
<TextView android:id="@id/threeSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_3_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_3_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/four" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fourNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_4_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fourNum" android:layout_centerVertical="true">
<TextView android:id="@id/fourSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_4_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_4_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/five" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/two" android:nextFocusDown="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fiveNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_5_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fiveNum" android:layout_centerVertical="true">
<TextView android:id="@id/fiveSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_5_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_5_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/six" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sixNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_6_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sixNum" android:layout_centerVertical="true">
<TextView android:id="@id/sixSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_6_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_6_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/seven" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sevenNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_7_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sevenNum" android:layout_centerVertical="true">
<TextView android:id="@id/sevenSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_7_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_7_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/eight" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/five" android:nextFocusDown="@id/zero" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/eightNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_8_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/eightNum" android:layout_centerVertical="true">
<TextView android:id="@id/eightSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_8_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_8_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/nine" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/nineNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_9_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/nineNum" android:layout_centerVertical="true">
<TextView android:id="@id/nineSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_9_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_9_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/star" android:background="@drawable/dial_num_special_left" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/starNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dialpad_button_star_margin_top" android:text="@string/general_dialpad_star_txt" style="@style/Dialpad.Star" />
<TextView android:id="@id/starSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_star_txt" android:layout_toRightOf="@id/starNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
<RelativeLayout android:id="@id/zero" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/zeroNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_0_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/zeroNum" android:layout_centerVertical="true">
<TextView android:id="@id/zeroSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_0_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:layout_marginTop="@dimen/dialpad_lable_plus_margin_top" android:text="@string/dialpad_label_0_txt" android:includeFontPadding="false" style="@style/Dialpad.Plus" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/pound" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/poundNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/general_dialpad_hash_txt" style="@style/Dialpad.Pound" />
<TextView android:id="@id/poundSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_pound_txt" android:layout_toRightOf="@id/poundNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
ok thats long and confusing how the hell...
Click to expand...
Click to collapse
do a find fast for background
First hit is
Code:
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:[COLOR="Red"]background[/COLOR]="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
find the drawable
Code:
drawable-hdpi/dial_background
check if it is transparent (gimp / firworks / photoshop)
Hells Yeah! problem solvered.
Click to expand...
Click to collapse
in short your images are
Code:
drawable-hdpi/dial_background.png
drawable-mdpi/dial_background.png
drawable-xdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-xdpi/dial_background.png
those are the ones you need to change to get rid of the transparent dialer.
follow this process and you will be able to find anything. works the same for images text layouts what ever. if you are slack like me use a program like Astrogrep (windows) / Grep (linux) to search the entire folder for short keywords then narrow the search down from there (dial for example here)
this has been a public service announcement by pvyParts
Pvy.
REQUIREMENTS:
1. Rotted only
2. Deodex
INSTRUCTION:
1. DECOMPILE SystemUI.apk
2. Goto
SystemUI/res/layout
and open tw_status_bar.xml
3. find and delete this code
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="3.0dip" android:singleLine="true" android:gravity="left|center" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
Look this
Before
Code:
<LinearLayout android:id="@id/right_icons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingRight="4.0dip" android:layout_alignParentRight="true">
<LinearLayout android:id="@id/statusIcons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<LinearLayout android:id="@id/signal_battery_cluster" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="2.0dip" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12.0dip" android:layout_gravity="center" android:text="@string/status_bar_network_name_separator" android:textColor="#a6a6a6" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="3.0dip" android:singleLine="true" android:gravity="left|center" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
After
Code:
<LinearLayout android:id="@id/right_icons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingRight="4.0dip" android:layout_alignParentRight="true">
<LinearLayout android:id="@id/statusIcons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<LinearLayout android:id="@id/signal_battery_cluster" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="2.0dip" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12.0dip" android:layout_gravity="center" android:text="@string/status_bar_network_name_separator" android:textColor="#a6a6a6" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" />
</LinearLayout>
</LinearLayout>
4. Find
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
And add this code after it
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center">
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
Look this
Before
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
<LinearLayout android:id="@id/icons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="0.0dip" android:paddingRight="2.0dip">
<LinearLayout android:id="@id/left_icons" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:paddingLeft="4.0dip" android:layout_weight="1.0">
<TextView android:id="@id/carrierLabel" android:layout_width="wrap_content" android:layout_height="fill_parent" android:visibility="gone" android:singleLine="true" android:gravity="center_vertical" android:textSize="15.0dip" />
<ImageView android:id="@id/operatorLogoIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" android:visibility="gone" />
<ImageView android:id="@id/doNotDisturbIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:visibility="gone" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<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.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
After
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center">
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
<LinearLayout android:id="@id/icons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="0.0dip" android:paddingRight="2.0dip">
<LinearLayout android:id="@id/left_icons" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:paddingLeft="4.0dip" android:layout_weight="1.0">
<TextView android:id="@id/carrierLabel" android:layout_width="wrap_content" android:layout_height="fill_parent" android:visibility="gone" android:singleLine="true" android:gravity="center_vertical" android:textSize="15.0dip" />
<ImageView android:id="@id/operatorLogoIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" android:visibility="gone" />
<ImageView android:id="@id/doNotDisturbIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:visibility="gone" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<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.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
And if you want to change the color of clock, find for code android:textColor= in this line
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
and change to what you like.
example: blue = 28bae8
then change to: android:textColor="#28bae8"
Save tw_status_bar.xml
5. Recompile SystemUI.apk
6. Push new SystemUI.apk to system/app, set permision to rw-r-r
7. Reboot
And if you like my work,
Don't forget to click on "Thanks" button
Ok you are probably gona say if you dont know that then you beter dont try. But how do you decompile?
Sent from my GT-I8190 using xda premium
Sn0w0nS said:
Ok you are probably gona say if you dont know that then you beter dont try. But how do you decompile?
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
thanks,
I use apktool.
and to tutorial decompile, you can find at the other tread.
Sorry about this comment but isn't it simpler to make a moded app and attach, so everyone can use it? It's very complicated like this, I mean not everyone has knowledge to compile and decompile stuff.
Sent from my GT-I8190 using Tapatalk 2
vonuzu said:
Sorry about this comment but isn't it simpler to make a moded app and attach, so everyone can use it? It's very complicated like this, I mean not everyone has knowledge to compile and decompile stuff.
Sent from my GT-I8190 using Tapatalk 2
Click to expand...
Click to collapse
Thanks,
I will attach the file later
5 months ago I didn't even know how to decompile, and now I'm building ROMs, decompiling apks, rewriting xmls etc...
Learn people.
Benzonat0r said:
5 months ago I didn't even know how to decompile, and now I'm building ROMs, decompiling apks, rewriting xmls etc...
Learn people.
Click to expand...
Click to collapse
Newbie can not know everything from A to Z and in my case, I try myself in decompiling and so on. I know you have enough to do with your work emphasis agendas. eg framework-res.apk for decompiling because I got an Other Theme...so i have a 9.png the error message.
With stock farmework-res.apk run the decompiling without errors.Sorry for my many questions regarding decompiling, I thought in a forum to ask for help. I want to learn even without the help of not only simplified as described.
Sorry for my bad english
Benzonat0r said:
5 months ago I didn't even know how to decompile, and now I'm building ROMs, decompiling apks, rewriting xmls etc...
Learn people.
Click to expand...
Click to collapse
it really benz, actually on xda so many have made the tutorial we can learn. up to us, willing to learn or not.
Sent from my GT-I8190 using xda premium
CahBagoes354 said:
it really benz, actually on xda so many have made the tutorial we can learn. up to us, willing to learn or not.
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
A general tutorial does not help always, We can not ask you I understand !Its Ok.....
Benzonat0r said:
5 months ago I didn't even know how to decompile, and now I'm building ROMs, decompiling apks, rewriting xmls etc...
Learn people.
Click to expand...
Click to collapse
Well with that logic nobody should release roms, apks, themes etc. Everybody could do it themselves.
Sent from my GT-I8190 using Tapatalk 2
Sent from my GT-I8190 using xda premium
R: [MOD][GUIDE] Center clock in statusbar
Can you even say how to change the status bar colour?
Sent from my GT-I8190 using xda app-developers app
I tried this but after pushing the file and reboot, theres no status bar
Sent from my GT-I8190 using xda app-developers app
RayQ1223 said:
I tried this but after pushing the file and reboot, theres no status bar
Sent from my GT-I8190 using xda app-developers app
Click to expand...
Click to collapse
Push AndroidManifest.xml from your stock SystemUI.apk to your newly built one. That's it.
Didnt work
Sent from my GT-I8190 using xda app-developers app
dude it will be really awesome for me if u could share the systemUI.apk that u modded in the first post's pic..... im using dmodv5 btw.... please share if u could.... thanx...
Same
Sent from my GT-I8190 using xda app-developers app
CahBagoes354 said:
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
wah ada orang Indonesianya juga, akhirnya. repot banget kalo nanya2 pake bahasa inggris, belepotan hehe...
kira2 bisa gak bantu ane biar jamnya bisa ke tengah. nih systemUI.apk agak bandel pake segala tutorial gak ngefek. kalo bisa makasih banget nih gan, hehe...
salam oprek dah...
help
CahBagoes354 said:
REQUIREMENTS:
1. Rotted only
2. Deodex
INSTRUCTION:
1. DECOMPILE SystemUI.apk
2. Goto
SystemUI/res/layout
and open tw_status_bar.xml
3. find and delete this code
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="3.0dip" android:singleLine="true" android:gravity="left|center" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
Look this
Before
Code:
<LinearLayout android:id="@id/right_icons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingRight="4.0dip" android:layout_alignParentRight="true">
<LinearLayout android:id="@id/statusIcons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<LinearLayout android:id="@id/signal_battery_cluster" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="2.0dip" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12.0dip" android:layout_gravity="center" android:text="@string/status_bar_network_name_separator" android:textColor="#a6a6a6" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="3.0dip" android:singleLine="true" android:gravity="left|center" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
After
Code:
<LinearLayout android:id="@id/right_icons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingRight="4.0dip" android:layout_alignParentRight="true">
<LinearLayout android:id="@id/statusIcons" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" />
<LinearLayout android:id="@id/signal_battery_cluster" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingLeft="2.0dip" android:gravity="center">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/tw_signal_cluster_view" />
<TextView android:id="@id/battery_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12.0dip" android:layout_gravity="center" android:text="@string/status_bar_network_name_separator" android:textColor="#a6a6a6" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" />
</LinearLayout>
</LinearLayout>
4. Find
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
And add this code after it
Code:
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center">
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
Look this
Before
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
<LinearLayout android:id="@id/icons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="0.0dip" android:paddingRight="2.0dip">
<LinearLayout android:id="@id/left_icons" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:paddingLeft="4.0dip" android:layout_weight="1.0">
<TextView android:id="@id/carrierLabel" android:layout_width="wrap_content" android:layout_height="fill_parent" android:visibility="gone" android:singleLine="true" android:gravity="center_vertical" android:textSize="15.0dip" />
<ImageView android:id="@id/operatorLogoIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" android:visibility="gone" />
<ImageView android:id="@id/doNotDisturbIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:visibility="gone" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<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.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
After
Code:
<ImageView android:id="@id/notification_lights_out" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:visibility="gone" />
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center">
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
</LinearLayout>
<LinearLayout android:id="@id/icons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="0.0dip" android:paddingRight="2.0dip">
<LinearLayout android:id="@id/left_icons" android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:paddingLeft="4.0dip" android:layout_weight="1.0">
<TextView android:id="@id/carrierLabel" android:layout_width="wrap_content" android:layout_height="fill_parent" android:visibility="gone" android:singleLine="true" android:gravity="center_vertical" android:textSize="15.0dip" />
<ImageView android:id="@id/operatorLogoIcon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/tw_stat_notify_operator_logo" android:visibility="gone" />
<ImageView android:id="@id/doNotDisturbIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_dnd" android:visibility="gone" android:alpha="0.7" android:scaleX="0.85" android:scaleY="0.85" />
<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.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center_vertical" android:layout_alignParentLeft="true" />
</LinearLayout>
And if you want to change the color of clock, find for code android:textColor= in this line
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="center" android:singleLine="false" android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#959595" android:ellipsize="none" android:includeFontPadding="false" />
and change to what you like.
example: blue = 28bae8
then change to: android:textColor="#28bae8"
Save tw_status_bar.xml
5. Recompile SystemUI.apk
6. Push new SystemUI.apk to system/app, set permision to rw-r-r
7. Reboot
And if you like my work,
Don't forget to click on "Thanks" button
Click to expand...
Click to collapse
m getting error,,,,, if some1 can make this sysui center clock
http://db.tt/e4jVJHC9
mayankneil said:
m getting error,,,,, if some1 can make this sysui center clock
http://db.tt/e4jVJHC9
Click to expand...
Click to collapse
What is the error? Please don't quote the whole OP. It makes for a lot of extra scrolling on a phone.
I'm guessing your error had to do with the @Dimens portion of the text you posted into the status bar xml. The problem I had on my phone is that line wasn't defined anywhere. It turns out defining the text height wasn't required on my RAZR HD so I deleted it and the apk compiled successfully.
Sent from my DROID RAZR HD using Tapatalk 4
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:
OK so i need help to fix a bug(see Screenshot)
My bug is when i have too many notifacations the clock and date kinda go buggy, it seems to push the date or just make the clock say
00.000.... , the date just goes to next line
- take note i have been playing around with the status bar for about 7 hours at this point
RED = mod
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"] <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<DigitalClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date.ROM" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
</LinearLayout>[/COLOR]
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.statusbar.phone.IconPartitioner>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:layout_gravity="left|center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_settings_settings_button" android:singleLine="true" style="@style/StatusBarNotificationText" />
<ImageView android:id="@id/battery" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android: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>
Maybe change date font to small or change height of status bar..
Sent from my LT26i using xda premium
Mr. Khan said:
Maybe change date font to small or change height of status bar..
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
i just done that ,i couldnt figure it out hah , updating thread for next bug now
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">