[MOD][HOW-TO] AOSP Style Notification Drawer "Clear Notifications" Button - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

This guide will allow you to move the clear notifications button in a TW ROM to the position common in AOSP ROMS.
This mod also removes the notification text, allowing a little more room for notifications.
Decompile SystemUI.apk and navigate to res/layout/tw_status_bar_expanded.xml then delete the line in red.
Code:
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/onGoingCart" android:background="#ff293945" android:focusable="true" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/onGoingNotificationText" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/status_bar_ongoing_events_title" />
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff293945" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />
[COLOR="Red"]<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" />[/COLOR]
</RelativeLayout>
</LinearLayout>
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/notificationItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />
Navigate to res/layout/tw_status_bar_expanded_header.xml and add the lines in blue.
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.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff808080" android:id="@id/clock" [COLOR="Blue"]android:visibility="gone"[/COLOR] android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ff808080" 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" />
[COLOR="Blue"]<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="72.0dip" android:layout_height="39.0dip">
<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="#ff808080" 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="96.0dip" 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" />
</RelativeLayout>
</LinearLayout>[/COLOR]
<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="72.0dip" 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>
Options:
Change the button text color (android:textColor="#ff808080") to whatever you want.
Add the line "android:visibility="gone"" to the clock line to remove the clock.
Recompile and push to your device.

First
and woohoo...going to try this out tomorrow !
That clear button from TW is my most hated feature.
Thanks again for this
Sent from my SAMSUNG-SGH-I747 using xda premium

Things are only getting better for TW ROM's. Thanks dev for this shre

Awesome work! Can't wait for this mod to eventually make its way to your S3R ROM.
Now if we could only get the smooth scrolling in notification window like in AOSP ROMs.
Sent from my SAMSUNG-SGH-I747

The LPT said:
Awesome work! Can't wait for this mod to eventually make its way to your S3R ROM.
Now if we could only get the smooth scrolling in notification window like in AOSP ROMs.
Sent from my SAMSUNG-SGH-I747
Click to expand...
Click to collapse
I'm not loserskater.

upndwn4par said:
I'm not loserskater.
Click to expand...
Click to collapse
Wow I feel like a tool
Assumption, small fonts, and hidden avatars in the XDA app are a bad mix when you're half asleep.
My apologies. Looks like I'll be trying out CSROM again very soon. Im assuming(there's that word again!) it will make its way there. Or has it already?
Sent from my SAMSUNG-SGH-I747

Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium

hednik said:
Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.

hednik said:
Success. You made my day !
Now how would I go about changing the button icon ? When looking at the code see its listed at tw_button_small or something like that yet I don't see that PNG. With the CM status bar you change the PNG but TW clear button seems different
When I tried to change the color I kept getting compiling errors so maybe in wasn't doing it correctly but I'll keep at troubleshooting that one.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
enewman17 said:
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.
Click to expand...
Click to collapse
Correct. And if you want to use an AOSP style clear button (offset horizontal slashes), be sure to set your clear button text to 0dp.

enewman17 said:
The drawable/tw_btn_default_small" is actually an xml file in the res/drawable then it points to these.
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:[email protected]/tw_quick_panel_clearbtn_press" />
<item android:state_focused="true" android:[email protected]/tw_quick_panel_clearbtn_focus" />
<item android:state_selected="true" android:[email protected]/tw_quick_panel_clearbtn_select" />
<item android:state_enabled="true" android:[email protected]/tw_quick_panel_clearbtn_normal" />
<item android:[email protected]/tw_quick_panel_clearbtn_normal" />
</selector>
And there in the res/drawable-xhdpi forlder. Those are the images that would need edited.
Click to expand...
Click to collapse
You are the man Enewman17. Thanks !
Sent from my SAMSUNG-SGH-I747 using xda premium

hednik said:
You are the man Enewman17. Thanks !
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
See the post just above your last one (we posted at the same time).

upndwn4par said:
See the post just above your last one (we posted at the same time).
Click to expand...
Click to collapse
Thanks Up. Going to play with this a see if I can make something "semi-unique"
Sent from my SAMSUNG-SGH-I747 using xda premium

use existing stock AOSP icons
If you want to use the existing stock AOSP icons this is how. Follow upndwn4par's op on removing the line in the tw_status_bar_expanded then...
res/layout/tw_status_bar_expanded_header.xml
Add / change whats in blue so it looks similar to 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.ClockStock 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: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" />
[COLOR="Blue"] <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" />
<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" />
<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" />[/COLOR]
</LinearLayout>

Related

[Q] How to remove a transparent dialer

I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
That's awesome
I think the images are part of the frameworks
Pvy
Sent from my Galaxy Nexus using xda premium
Are you using the stock ROM !?
No, its custom AWESOME-4000 ROM
I have got this ad well when I put the xperia t phonebook onto my arc so it could be that you have incompatible dialer with home launcher just try different launcher.
Sent from my X10i using xda premium
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
am2222 said:
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
Click to expand...
Click to collapse
I've tried to replace the dialer - no effect.
silkoo said:
I've tried to replace the dialer - no effect.
Click to expand...
Click to collapse
if you use phonebook from stock rom then it works, ie not transparent
a.
I've the same question: Where can I change the transparent dialer in phonebook.apk? I changed dial_background.png in some folders but it didn't help.
I changed a lot more pictures and .xml strings but still no luck. I didn't find any topic for the sony stock phonebook.apks, so I would be thankful if someone can help!
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
accts said:
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
Click to expand...
Click to collapse
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
accts said:
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
Click to expand...
Click to collapse
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Here is the zip decompiled phonebook.apk - View attachment LT28i_68_phonebook.zip
Finally got around to checking this for yo guys,
Now it is REALLY easy to figure this out so prepare for a spiel.
if there is an image that you need to figure out. somewhere in an app. this is my process of doing it.
first figure out what part of the app it is in (the Dialer in the main activity)
check for a layout that is named Dialer
Code:
/res/layout/dialpad
close enough for me.
look at the xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:background="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/one" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/oneNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_1_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/oneNum" android:layout_centerVertical="true">
<TextView android:id="@id/oneSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_1_txt" style="@style/Dialpad.Label" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/dialpad_voicemail_icn" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/two" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusDown="@id/five" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/twoNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_2_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/twoNum" android:layout_centerVertical="true">
<TextView android:id="@id/twoSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_2_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_2_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/three" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/threeNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_3_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/threeNum" android:layout_centerVertical="true">
<TextView android:id="@id/threeSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_3_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_3_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/four" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fourNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_4_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fourNum" android:layout_centerVertical="true">
<TextView android:id="@id/fourSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_4_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_4_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/five" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/two" android:nextFocusDown="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fiveNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_5_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fiveNum" android:layout_centerVertical="true">
<TextView android:id="@id/fiveSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_5_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_5_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/six" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sixNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_6_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sixNum" android:layout_centerVertical="true">
<TextView android:id="@id/sixSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_6_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_6_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/seven" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sevenNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_7_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sevenNum" android:layout_centerVertical="true">
<TextView android:id="@id/sevenSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_7_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_7_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/eight" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/five" android:nextFocusDown="@id/zero" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/eightNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_8_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/eightNum" android:layout_centerVertical="true">
<TextView android:id="@id/eightSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_8_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_8_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/nine" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/nineNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_9_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/nineNum" android:layout_centerVertical="true">
<TextView android:id="@id/nineSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_9_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_9_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/star" android:background="@drawable/dial_num_special_left" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/starNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dialpad_button_star_margin_top" android:text="@string/general_dialpad_star_txt" style="@style/Dialpad.Star" />
<TextView android:id="@id/starSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_star_txt" android:layout_toRightOf="@id/starNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
<RelativeLayout android:id="@id/zero" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/zeroNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_0_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/zeroNum" android:layout_centerVertical="true">
<TextView android:id="@id/zeroSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_0_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:layout_marginTop="@dimen/dialpad_lable_plus_margin_top" android:text="@string/dialpad_label_0_txt" android:includeFontPadding="false" style="@style/Dialpad.Plus" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/pound" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/poundNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/general_dialpad_hash_txt" style="@style/Dialpad.Pound" />
<TextView android:id="@id/poundSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_pound_txt" android:layout_toRightOf="@id/poundNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
ok thats long and confusing how the hell...
Click to expand...
Click to collapse
do a find fast for background
First hit is
Code:
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:[COLOR="Red"]background[/COLOR]="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
find the drawable
Code:
drawable-hdpi/dial_background
check if it is transparent (gimp / firworks / photoshop)
Hells Yeah! problem solvered.
Click to expand...
Click to collapse
in short your images are
Code:
drawable-hdpi/dial_background.png
drawable-mdpi/dial_background.png
drawable-xdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-xdpi/dial_background.png
those are the ones you need to change to get rid of the transparent dialer.
follow this process and you will be able to find anything. works the same for images text layouts what ever. if you are slack like me use a program like Astrogrep (windows) / Grep (linux) to search the entire folder for short keywords then narrow the search down from there (dial for example here)
this has been a public service announcement by pvyParts
Pvy.

[MOD][GUIDE][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

(SOLVED) Single line notification date.

I would like to ask if any body knows how to change the date on the notification screen to a single line, rather than 2 lines.
I have a SGS2 with Neat Rom Lite v4.8 XWLSW
What i have done so far
1. Removed clock
2. Moved the settings button to the left of the screen
3. Tried changing <com.android.systemui.statusbar.policy.DateView........ to android:maxLines="1"
Which changes the date to a single line, but only 1 word of the date is shown (see screenshot)
4. Tried changing <com.android.systemui.statusbar.policy.DateView.......android:layout_width="wrap_content" to "150.0dip" to try and make the date container large, (no change)
5. Changed <com.android.systemui.statusbar.policy.DateView.......android:layout_height="wrap_content" to the "39.0dip" the same height as the notification header (no change)
I am thinking that i need to change something in DateView smali, but unfortunatly i do not know smali, and would not know which line to edit.
If anybody could offer any assistance, it would be greatly appreciated.
This is my tw_status_bar_expanded_header.xml
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">
<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>
<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" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textSize="18.0dip" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="150.0dip" android:layout_height="39.0dip" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="1" />
<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" />
</LinearLayout>
Mods, if i have posted this in the wrong section, please move accordingly.
Edit:- I finally worked it out
Checkout my tutorial Single Line Notification Date

[guide]how to add fivefallingtabs in systemui

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.

G Flex 2 - Glance Feature

So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?
Sounds great! I'd love such a feature, it could be like an alternative to the quickcircle !
+1
Yes, I wanted to post this when I saw the glance feature and hoped somebody ported it.
+1 awesome feature ,would love to have this in my g3
Yeah, this would be one more of those little things that makes the G3 the best phone I've owned!
+1 from me
We have some pretty clever people here. Maybe someone can get into it and port it over
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file
Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
Click to expand...
Click to collapse
Hey @Kickoff great to see you here. Thanks for digging in and taking a look. Interesting that its visible on the G3 but just not populated the same. You think anyone currently theming on the G3 like yourself would be able to master the port?
Judging by the reaction a few people are keen.
Did you watch the video on youtube? I like the feature a lot.
Anybody knows if G3's hardware can actually report any events other than taps when screen is off?..
Maybe bring this thread over to the developers only section and lets work on it jointly.
Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
I put in the request to move.
Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
No real need yet. We need to find out what touchscreen controller Flex 2 is using. If it's the same as in G3 (Synaptics 93528A), then the feature is most likely portable. If not, chances are slim.
Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file
Click to expand...
Click to collapse
LGSystemUI_GFlex2
LGSystemUI\res\drawable\glance_wall_animation.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:id="@id/glance_wall_animation" android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/sunshine_01" />
<item android:duration="200" android:drawable="@drawable/sunshine_02" />
<item android:duration="200" android:drawable="@drawable/sunshine_03" />
<item android:duration="200" android:drawable="@drawable/sunshine_04" />
<item android:duration="200" android:drawable="@drawable/sunshine_05" />
<item android:duration="200" android:drawable="@drawable/sunshine_06" />
</animation-list>
LGSystemUI\res\drawable-xxhdpi
Code:
1- lg_glance_background.png
2- lg_glance_glow.png
3- sunshine_01.png
4- sunshine_02.png
5- sunshine_03.png
6- sunshine_04.png
7- sunshine_05.png
8- sunshine_06.png
LGSystemUI\res\layout\keyguard_simple_host_view.xml
Code:
Line 7: <View android:id="@id/keyguard_glance_background" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
LGSystemUI\res\layout\lg_glance_view_layout.xml
Code:
Line 2: <FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
Line 5: <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
Line 6: <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 11: <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 14: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 15: <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 16: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
Line 17: <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
Line 18: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
Line 21: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
Line 24: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
Line 30: <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 44: <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 58: <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
C:\apktool44\LGSystemUI\res\layout\msim_super_status_bar.xml (1 hit)
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\layout\super_status_bar.xml
Code:
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\values\dimens.xml
Code:
Line 188: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 189: <dimen name="glanceview_clock_height">130.0dip</dimen>
Line 190: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
Line 191: <dimen name="glance_digital_clock_font_size">46.669983dip</dimen>
Line 192: <dimen name="glance_digital_ampm_font_size">13.329987dip</dimen>
LGSystemUI\res\values\ids.xml
Code:
Line 254: <item type="id" name="keyguard_glance_background">false</item>
Line 287: <item type="id" name="glance_view_wall_container">false</item>
Line 288: <item type="id" name="glance_view_glow">false</item>
Line 289: <item type="id" name="glance_view_touch">false</item>
Line 290: <item type="id" name="glance_view_default_clock">false</item>
Line 291: <item type="id" name="glance_view_clock">false</item>
Line 292: <item type="id" name="glance_view_dual_clock">false</item>
Line 293: <item type="id" name="glance_view_dual_local_clock">false</item>
Line 294: <item type="id" name="glance_view_city_clock_view">false</item>
Line 295: <item type="id" name="glance_view_wall">false</item>
Line 296: <item type="id" name="glance_view_wall_animation">false</item>
Line 297: <item type="id" name="glance_view_wall_shade">false</item>
Line 875: <item type="id" name="glance_wall_animation">false</item>
LGSystemUI\res\values\public.xml
Code:
Line 211: <public type="drawable" name="glance_wall_animation" id="0x7f020076" />
Line 2023: <public type="drawable" name="lg_glance_background" id="0x7f0204a5" />
Line 2024: <public type="drawable" name="lg_glance_glow" id="0x7f0204a6" />
Line 2658: <public type="layout" name="lg_glance_view_layout" id="0x7f040043" />
Line 5104: <public type="dimen" name="glanceview_clock_bg_height" id="0x7f0e00b9" />
Line 5105: <public type="dimen" name="glanceview_clock_height" id="0x7f0e00ba" />
Line 5106: <public type="dimen" name="glanceview_effect_wall_height" id="0x7f0e00bb" />
Line 5107: <public type="dimen" name="glance_digital_clock_font_size" id="0x7f0e00bc" />
Line 5108: <public type="dimen" name="glance_digital_ampm_font_size" id="0x7f0e00bd" />
Line 5819: <public type="id" name="keyguard_glance_background" id="0x7f100117" />
Line 5852: <public type="id" name="glance_view_wall_container" id="0x7f100138" />
Line 5853: <public type="id" name="glance_view_glow" id="0x7f100139" />
Line 5854: <public type="id" name="glance_view_touch" id="0x7f10013a" />
Line 5855: <public type="id" name="glance_view_default_clock" id="0x7f10013b" />
Line 5856: <public type="id" name="glance_view_clock" id="0x7f10013c" />
Line 5857: <public type="id" name="glance_view_dual_clock" id="0x7f10013d" />
Line 5858: <public type="id" name="glance_view_dual_local_clock" id="0x7f10013e" />
Line 5859: <public type="id" name="glance_view_city_clock_view" id="0x7f10013f" />
Line 5860: <public type="id" name="glance_view_wall" id="0x7f100140" />
Line 5861: <public type="id" name="glance_view_wall_animation" id="0x7f100141" />
Line 5862: <public type="id" name="glance_view_wall_shade" id="0x7f100142" />
Line 6440: <public type="id" name="glance_wall_animation" id="0x7f100384" />
LGSystemUI\res\values-xhdpi\dimens.xml
Code:
Line 4: <dimen name="glanceview_clock_bg_height">130.0dip</dimen>
Line 5: <dimen name="glanceview_clock_height">110.0dip</dimen>
Line 6: <dimen name="glanceview_effect_wall_height">191.0dip</dimen>
LGSystemUI\res\values-xxhdpi\dimens.xml
Code:
Line 3: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 4: <dimen name="glanceview_clock_height">115.0dip</dimen>
Line 5: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
LGSystemUI\smali\com\android\keyguard\KeyguardSimpleHostView.smali
Code:
Line 635: sget v0, Lcom/android/keyguard/R$id;->keyguard_glance_background:I
LGSystemUI\smali\com\android\keyguard\R$id.smali
Code:
Line 142: .field public static final keyguard_glance_background:I = 0x7f100117
LGSystemUI\smali\com\android\systemui\statusbar\phone\StatusBarWindowView$LGGlanceView$1.smali
Code:
Line 127: .local v2, glanceTime:J
Line 319: .end local v2 #glanceTime:J
LGSystemUI\smali\com\lge\lockscreen\feature\LGFeatureConfig.smali
Code:
Line 1159: const-string v0, "config_feature_glance_view"
LGSystemUI\smali\com\lge\lockscreen\model\KeyguardModel$5.smali
Code:
Line 1902: const-string v9, "[Glance] keyguard get the glance intent first at "
LGLockScreenSettings_GFlex2
LGLockScreenSettings\res\values\bools.xml
Code:
Line 64: <bool name="config_feature_glance_view">true</bool>
LGLockScreenSettings\res\values\public.xml
Code:
Line 295: <public type="bool" name="config_feature_glance_view" id="0x7f09003d" />
This is what I found and tried to adjust .xml and codes smali and always FC.
I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.
Kickoff said:
I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.
Click to expand...
Click to collapse
Now the real question is how long will it take for AT&T to actually give us that update...
I'm still waiting on AT&T to approve the Atrix HD 4.4.2 update Motorola sent them at the end of 2013...
I'd offer to join in and help, but I'm busy with my own project at the moment. When I'm done with that, hopefully in 3 to 5 days, this will be the first thing I do after a reboot menu mod....makes me wish I knew of a way to decompile an app, patch it, and recompile it in an updater script....
bryjenko said:
So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?
Click to expand...
Click to collapse
easy? yo know that you need to mess with the kernel too to get this to work?
suljo94 said:
easy? yo know that you need to mess with the kernel too to get this to work?
Click to expand...
Click to collapse
Fairly easy were my words... I didntsay ot was going to be a walk in the park but compared to climbing everest... ?
Less talk more work guys
Anyway, Glance view is for OLED screens. You can turn on or off each pixel of OLED displays, thats why glance view is productive on G Flex 2. While on LCD screens, if you turn on one pixel, you have to turn on all screen.
That is to say glace view is possible to port, but it might not be as productive as on the lg g flex 2
it will be like the quickcover option... you see only the circle but the screen is all on...
g4 has it
Lg g4 doesnt have amolef but still has it....

Categories

Resources