{Guide}Change USB storage with Touch The Droid to connect USB - Galaxy Y GT-S5360 General

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

Related

[Q] How to remove a transparent dialer

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.

[MOD][GUIDE] Center clock in statusbar

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

[TUT] Merged WiFi & Signal Icons (For LP & MM) - Updated!

{
"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"
}
I'm not a big fan of cluttered status bars. I like a very minimalist look. So, with that in mind, I present a short guide to show you how to change your signal and WiFi icons so they look like they're merged together. Hope you like it!
This will work on any rom using "vector drawables" for signal and WiFi icons. That's any stock LP or MM rom, although it may work in 3rd party rom as well.
First, you'll need to decompile your "SystemUI.apk". I'm not going to explain how to do that here, there are plenty of in-depth guides to decompiling on xda. Personally I always use "Tickle My Android", which you can find here: http://forum.xda-developers.com/showthread.php?t=1633333, but you can use any method you want to.
In your decompiled "SystemUI.apk\res\drawable" folder, you should find a collection of XML files with names like "stat_sys_wifi_signal_1.xml" and "stat_sys_signal_4_fully.xml". If you've got those, you can do this mod. If you can't, you might want to take a look at a much older version of this mod here: http://forum.xda-developers.com/xperia-z/themes-apps/mod-merge-wifi-signal-icons-updated-t2276066[/url]
BEFORE TRYING THIS MOD, ALWAYS MAKE SURE YOU MAKE A BACKUP FIRST!​
Download the ZIP file from the attachments, extract it and overwrite the XML files in your drawable folder with the ones in the ZIP. This will change the appearance of the icons.
Next, you'll need to edit "SystemUI.apk\res\layout\signal_cluster_view.xml". This will normally look something like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="@dimen/signal_cluster_battery_padding"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]" xmlns:systemui="[URL]http://schemas.android.com/apk/res-auto[/URL]">
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<FrameLayout android:id="@id/ethernet_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/ethernet_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.0" systemui:hasOverlappingRendering="false" />
</FrameLayout>
[COLOR=blue]<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/wifi_signal_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.0" systemui:hasOverlappingRendering="false" />[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
[/COLOR][COLOR=blue][/COLOR][COLOR=blue] </FrameLayout>[/COLOR]
<View android:id="@id/wifi_signal_spacer" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" />
[COLOR=red]<LinearLayout android:id="@id/mobile_signal_group" android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
<FrameLayout android:id="@id/no_sims_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/accessibility_no_sims">
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/no_sims" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_no_sims" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/no_sims_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_no_sims" android:alpha="0.0" systemui:hasOverlappingRendering="false" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Your exact code may differ but you'll normally have some lines representing the WiFi icon and some lines representing the signal icon. All you need to do next is move the WiFi lines to under the signal lines. Like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="@dimen/signal_cluster_battery_padding"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]" xmlns:systemui="[URL]http://schemas.android.com/apk/res-auto[/URL]">
<com.android.systemui.statusbar.policy.NetworkTraffic android:id="@id/networkTraffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<FrameLayout android:id="@id/ethernet_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/ethernet_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.0" systemui:hasOverlappingRendering="false" />
</FrameLayout>
<View android:id="@id/wifi_signal_spacer" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" />
[COLOR=red] <LinearLayout android:id="@id/mobile_signal_group" android:layout_width="wrap_content" android:layout_height="wrap_content" />[/COLOR]
[COLOR=blue] <FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/wifi_signal_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:alpha="0.0" systemui:hasOverlappingRendering="false" />[/COLOR]
[COLOR=blue] <com.android.systemui.statusbar.AlphaOptimizedImageView android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:hasOverlappingRendering="false" />
[/COLOR][COLOR=blue][/COLOR][COLOR=blue] </FrameLayout>[/COLOR]
<FrameLayout android:id="@id/no_sims_combo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:contentDescription="@string/accessibility_no_sims">
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneLightTheme" android:id="@id/no_sims" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_no_sims" systemui:hasOverlappingRendering="false" />
<com.android.systemui.statusbar.AlphaOptimizedImageView android:theme="@style/DualToneDarkTheme" android:id="@id/no_sims_dark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_no_sims" android:alpha="0.0" systemui:hasOverlappingRendering="false" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Save, recompile and push back to your phone and you should now have rather lovely new, merged icons! Enjoy!
thank you my friend!
woah!
my theming master is back with a bang..... im still using tha old ways!
guess i gat to migrate to tha new way!
thanks
hi @Ticklefish
long time ago...
saw this wonderful mod for a clear and pure statusbar.
Tried it, but miy signa_cluster_view.xml looks horrible different to your tutorial.
I´m on stock LP 5.1.1 with no special mods.
If you have time you can have a look at the xml
Thx
m.
moonryder said:
hi @Ticklefish
long time ago...
saw this wonderful mod for a clear and pure statusbar.
Tried it, but miy signa_cluster_view.xml looks horrible different to your tutorial.
I´m on stock LP 5.1.1 with no special mods.
If you have time you can have a look at the xml
Thx
m.
Click to expand...
Click to collapse
try dis buddy & see....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<ImageView android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/data_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/volte" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_volte" android:layout_marginEnd="@dimen/status_bar_volte_margin_end" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/mobile_separate" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
<FrameLayout android:id="@id/mobile_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/mobile_signal_cdma" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_3g" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_1x" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal_1x_only" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/mobile_data_voice" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_data" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_voice" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="left" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Hey @Ticklefish, any way you could modify this so I could create a toggle in my settings menu so select the use of it?
whalesplaho said:
try dis buddy & see....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<ImageView android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/data_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/volte" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_volte" android:layout_marginEnd="@dimen/status_bar_volte_margin_end" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/mobile_separate" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
<FrameLayout android:id="@id/mobile_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/mobile_signal_cdma" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_3g" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_1x" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal_1x_only" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/mobile_data_voice" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_data" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_voice" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="left" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Click to expand...
Click to collapse
You beat me to it, my friend!
Bloodlvst said:
Hey @Ticklefish, any way you could modify this so I could create a toggle in my settings menu so select the use of it?
Click to expand...
Click to collapse
Now there's an interesting idea.. Unfortunately that's a bit beyond my current skills though..:crying:
Ticklefish said:
You beat me to it, my friend!
Now there's an interesting idea.. Unfortunately that's a bit beyond my current skills though..:crying:
Click to expand...
Click to collapse
Yippppppaaaaa..... Yhu taught me well brov!!!
How yhu been?
whalesplaho said:
try dis buddy & see....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<ImageView android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/data_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/volte" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_volte" android:layout_marginEnd="@dimen/status_bar_volte_margin_end" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/mobile_separate" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
<FrameLayout android:id="@id/mobile_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/mobile_signal_cdma" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_3g" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_1x" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal_1x_only" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/mobile_data_voice" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_data" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_voice" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="left" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Click to expand...
Click to collapse
hi,
tried it but i got recompiling errors
log is attached.
i think there are some values missed, but i don´t know where to add them (´fillColor´ with value '?backgroundColor').
whalesplaho said:
Yippppppaaaaa..... Yhu taught me well brov!!!
How yhu been?
Click to expand...
Click to collapse
I'm good, I'm good. Just keeping busy, you know?
moonryder said:
hi,
tried it but i got recompiling errors
log is attached.
i think there are some values missed, but i don´t know where to add them (´fillColor´ with value '?backgroundColor').
Click to expand...
Click to collapse
Damn. I'd assumed that the fillColor and backgroundColor would be universal. Looks like I was wrong.
Bugger.
Sorry about that, I'll change the code as soon as I get a chance. But, for now, try replacing "?fillColor" with "#ffffffff". And replacing "?backgroundColor" with "#66ffffff".
You'll have to do that in every file, I'm afraid. Again, sorry about that.
Ticklefish said:
I'm good, I'm good. Just keeping busy, you know?
Damn. I'd assumed that the fillColor and backgroundColor would be universal. Looks like I was wrong.
Bugger.
Sorry about that, I'll change the code as soon as I get a chance. But, for now, try replacing "?fillColor" with "#ffffffff". And replacing "?backgroundColor" with "#66ffffff".
You'll have to do that in every file, I'm afraid. Again, sorry about that.
Click to expand...
Click to collapse
i do brov.......
but i dnt have compiling..... fiilcolor or backgroundcolor error!
Ticklefish said:
I'm good, I'm good. Just keeping busy, you know?
Damn. I'd assumed that the fillColor and backgroundColor would be universal. Looks like I was wrong.
Bugger.
Sorry about that, I'll change the code as soon as I get a chance. But, for now, try replacing "?fillColor" with "#ffffffff". And replacing "?backgroundColor" with "#66ffffff".
You'll have to do that in every file, I'm afraid. Again, sorry about that.
Click to expand...
Click to collapse
@Ticklefish
Big thx for the tipp, works like a charm
(changing was no problem with notepad++ using search and replace function )
For all interested users: i attached the "new" merged WiFi and Signal Icons
@whalesplaho
big thx for the modded signal_cluster_view.xml file
works great.
Have fun
moonryder said:
@Ticklefish
Big thx for the tipp, works like a charm
(changing was no problem with notepad++ using search and replace function )
For all interested users: i attached the "new" merged WiFi and Signal Icons
@whalesplaho
big thx for the modded signal_cluster_view.xml file
works great.
Have fun
Click to expand...
Click to collapse
happy to help buddy.... enjoy yur mod!:victory:
moonryder said:
@Ticklefish
Big thx for the tipp, works like a charm
(changing was no problem with notepad++ using search and replace function )
For all interested users: i attached the "new" merged WiFi and Signal Icons
@whalesplaho
big thx for the modded signal_cluster_view.xml file
works great.
Have fun
Click to expand...
Click to collapse
It's good to know it works!
I've replaced the files in the ZIP in the OP now, so it should work for everybody. Thanks for letting me know there was an issue! :highfive:
whalesplaho said:
try dis buddy & see....
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent" android:paddingEnd="0.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
<ImageView android:id="@id/vpn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_vpn_ic" android:paddingEnd="6.0dip" />
<ImageView android:id="@id/ethernet" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<FrameLayout android:id="@id/data_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<View android:visibility="invisible" android:layout_width="6.0dip" android:layout_height="6.0dip" />
<ImageView android:id="@id/data_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<ImageView android:id="@id/volte" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_volte" android:layout_marginEnd="@dimen/status_bar_volte_margin_end" />
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/mobile_separate" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_separate_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_separate_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
<FrameLayout android:id="@id/mobile_combo" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/mobile_signal_cdma" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_3g" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_1x" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal_1x_only" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="vertical" android:id="@id/mobile_data_voice" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/mobile_signal_data" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_signal_voice" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="left" android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="end|bottom|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</FrameLayout>
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<View android:id="@id/wifi_airplane_spacer" android:visibility="gone" android:layout_width="4.0dip" android:layout_height="4.0dip" />
<ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
Click to expand...
Click to collapse
Hi dear friend.
I 've tested the systemui sony port for cm12.1 replied. Thank you so much
Ramizcyanogen said:
Hi dear friend.
I 've tested the systemui sony port for cm12.1 replied. Thank you so much
Click to expand...
Click to collapse
Yhu mean it works for ported sony systemuinfor cm12.1?
whalesplaho said:
Yhu mean it works for ported sony systemuinfor cm12.1?
Click to expand...
Click to collapse
yes dear
Ramizcyanogen said:
yes dear
Click to expand...
Click to collapse
Dahs great... All thanks to @Ticklefish
Thanks so much for this! Just did it to my own phone, first time editing system.apk
StruttinSoul said:
Thanks so much for this! Just did it to my own phone, first time editing system.apk
Click to expand...
Click to collapse
Excellent! :good:
Welcome to the world of APK modding..

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

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

[Q] [Help Needed] Battery Icon from xposed

I want to know how can i track battery using an xposed module, remove the existing battery meter, and add my own battery meter dynamically. I have no idea how to begin with this. I saw some source codes, but couldn't understand how they work. Please provide with some examples or basic ideas to get started with (links also would be very helpful)
The following is the layout file in my ROM (CoolUI8):
Code:
<?xml version="1.0" encoding="utf-8"?>
<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_hd_voice_on" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.0dip" layout="@layout/hd_voice_on" />
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.0dip" layout="@layout/signal_cluster_view_yulong" />
<com.android.systemui.BatteryViewGroup android:id="@id/battery_field" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="4.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Text.Style" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/battery_level_padding_end" />
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/battery_group" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/battery_frame" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/stat_sys_battery_frame" android:scaleType="center" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="25.0dip" android:layout_height="12.0dip" />
<ImageView android:id="@id/battery_charge" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25.0dip" android:src="@drawable/stat_sys_battery_charge_flag" android:scaleType="center" />
</FrameLayout>
</com.android.systemui.BatteryViewGroup>
</LinearLayout>
I have been successful in hiding the existing battery meter (hid the whole FrameLayout with the id: battery_group), but i want to add custom battery meter there... Please reply if you have any information related to this topic

Categories

Resources