[guide]how to add fivefallingtabs in systemui - Upgrading, Modifying and Unlocking

Hi Guys ! here is my 5 Falling tabs mod from the codes of famous PineappleOwl and b16h22 ,so big big credits to them
Hope you enjoy this
Req
-apktool
-texteditor
-root explorer
-your SystemUI.apk
-Zip file attached
Here are the steps
step 1
-decompile your SystemUi.apk
-extract the attached file and merge it to your decompiled systemui
step 2
-open status_bar_expanded.xml
-and add these codes to wherever you want
Code:
<denden.Penta.Buttons android:orientation="horizontal" android:background="#50000000" android:layout_width="fill_parent" android:layout_height="40.0dip" android:weightSum="5.0" />
<denden.Penta.FallingTabs android:id="@id/dendenxd" android:background="#50000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="never">
<include layout="@layout/layout_1" />
</ScrollView>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="never">
<include layout="@layout/layout_2" />
</ScrollView>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="never">
<include layout="@layout/layout_3" />
</ScrollView>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="never">
<include layout="@layout/layout_4" />
</ScrollView>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="never">
<include layout="@layout/layout_5" />
</ScrollView>
</LinearLayout>
</denden.Penta.FallingTabs>
-open values/ids.xml
-and add this code
Code:
<item type="id" name="dendenxd">false</item>
step 3
-recompile your work
-then decompile it again
step 4
-open values/public.xml
-then find the id of these items
"dendenxd"
"denden_button"
"home_button"
-now open smali/denden/Penta/FallingTabs.smali
find this id 0x7f090039
and replace it with the id of "dendenxd" you get from your public.xml
-same in smali/denden/Penta/Buttons.smali
find
0x7f020105 and replace it with the id of "denden_button" NOTE that there are 4 ids of denden_button here, so you have to also replace 4 ids
0x7f020100 and replace it with the id of "home_button"
step 5
-recompile your work
-push it to system/app
-reboot
-done
CREDITS
PineappleOwl
b16h22
Me and You :laugh:

:good:

help bro!
after doing this 5 falling tab it seems clear button is not working. is there any solution for this? I like this falling tab. thanks for sharing this bro. :good:
by the way, I've got this working on my Xperia C by putting code in gimini_status_bar_expanded not on status_bar_expanded.xml, whatever I tried putting codes in status_bar_expanded 5tabs not appearin, hope this may help other experiencing this problem.
pls help me with clear button. thanks in advance.

Related

[MOD][CM9] + [HOWTO] Centered StatusBar Clock

I was searching around the old threads learning how to modify the statusbar layout to enable the clock in the center.
Originally I decompiled SystemUI.apk from the latest CM9 build (Build 02012012), modified statusbar.xml found in SystemUI\res\layout however ICS seems to be a little sensitive when it comes to little statusbar mods. Instead I found a modified statusbar.xml here inside the apk and inserted it into the SystemUI.apk from the latest CM9 resulting in a centered clock.
{
"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"
}
Of course there are a few bugs however it's something to play around with. Attached is a zipped SystemUI.apk for Build 02012012
*Make a backup first*
Howto via adb:
1. Pull SystemUI.apk from your phone
Code:
adb pull /system/app/SystemUI.apk
Instructions:
1. Download the attached apk file
2. Push SystemUI.apk to your phone via adb:
Code:
adb push c:/users/xxx/desktop/SystemUI.apk /system/app
adb reboot
How to edit SystemUI.apk manually - for future cm9 builds:
Guide thanks to this thread
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
Recompile and if you used apktool sign your new SystemUI.apk
Here is an example of how your status_bar.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Don't flood the thread with "CM9 is not even finished, wait for beta to do mods". This is for people who like to try new things.
Thx for sharing!
Razer(x) said:
Thx for sharing!
Click to expand...
Click to collapse
No worries. For theming it's best to go to that thread which is linked and also try some of the other statusbar mods. This one has a few little bugs such as ghosting some of the icons.
Love the idea but...
I lost my statusbar with this. Second time statusbar works but it's still normal.
thanks for this..
blinde said:
Love the idea but...
I lost my statusbar with this. Second time statusbar works but it's still normal.
Click to expand...
Click to collapse
Are you on the latest cm9 build?
Added a HowTo to the main post
Mrchuang said:
Are you on the latest cm9 build?
Added a HowTo to the main post
Click to expand...
Click to collapse
I'm using. Build 02012012. I tried three times and two of those lost my whole statusbar. Tried also with root explorer and same result. Too bad because I really would want that clock to be in center. Right side looks silly.
Could someone help me with this? I've had a lot of trouble with xml's and I can't get this to work.
Here is my systemui.apk, so could someone help me?
blinde said:
I'm using. Build 02012012. I tried three times and two of those lost my whole statusbar. Tried also with root explorer and same result. Too bad because I really would want that clock to be in center. Right side looks silly.
Click to expand...
Click to collapse
same problem here, trying your version, then made by me, with your how to, and doesn't work at all,
Im using latest version of CM9 with LPB kernel..
Mrchuang said:
I was searching around the old threads learning how to modify the statusbar layout to enable the clock in the center.
Originally I decompiled SystemUI.apk from the latest CM9 build (Build 02012012), modified statusbar.xml found in SystemUI\res\layout however ICS seems to be a little sensitive when it comes to little statusbar mods. Instead I found a modified statusbar.xml here inside the apk and inserted it into the SystemUI.apk from the latest CM9 resulting in a centered clock.
Of course there are a few bugs however it's something to play around with. Attached is a zipped SystemUI.apk for Build 02012012
*Make a backup first*
Howto via adb:
1. Pull SystemUI.apk from your phone
Code:
adb pull /system/app/SystemUI.apk
Instructions:
1. Download the attached apk file
2. Push SystemUI.apk to your phone via adb:
Code:
adb push c:/users/xxx/desktop/SystemUI.apk /system/app
adb reboot
How to edit SystemUI.apk manually - for future cm9 builds:
Guide thanks to this thread
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
Recompile and if you used apktool sign your new SystemUI.apk
Here is an example of how your status_bar.xml should look like
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Don't flood the thread with "CM9 is not even finished, wait for beta to do mods". This is for people who like to try new things.
Click to expand...
Click to collapse
Can you please mod this one...
Thanks in advance..
arunmcops said:
Can you please mod this one...
Thanks in advance..
Click to expand...
Click to collapse
Will it be a problem if you get the patch tomorrow ?
Envoyé par mon LG-P500 chargée avec CM9
Here is your patch
Envoyé par mon LG-P500 chargée avec CM9
Thank You!
Does this work for Karbonn A9+?
ayaka_mitsurugi said:
Does this work for Karbonn A9+?
Click to expand...
Click to collapse
Its shall work on any device running ICS and up.
Sent from my Nexus S using Tapatalk 2
I did but SystemUI Fc's , Any help? :-/

[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][JB 4.1.2] AOSP Style Status Bar on Samsung ROMs

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

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

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

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

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

Categories

Resources