Guide L Panel For Samsung (Touchwiz) - Android General

Items Required:-
Apktool 1.5.2 (MUST)
Notepad++
Attachment
Brain
Common sense
-Decompile SystemUI.apk
-Open systemui_src/res/layout
-Open gemini_status_bar_expanded.xml / tw_status_bar_expanded.xml {depends on your chipset}
Copy this and paste it in your expanded.
Code:
<include layout="@layout/eboybasit_ltoggles" />
Save it.
- Open res/values/colors.xml
● Copy the below given codes and paste it above </resources>
Code:
<color name="quickpanel_text_color_ing">#ff75899b</color>
<color name="quickpanel_text_color_off">#ff999fa4</color>
<color name="quickpanel_text_color_on">#ffffffff</color>
Save it.
After that Open string.xml
● Copy the below given codes and paste it above </resources>
Code:
<string name="quickpanel_data_text">Data</string>
<string name="quickpanel_sound_text">Sound</string>
<string name="quickpanel_vibrate_text">Vibration</string>
MERGE FILES OF ATTACHMENT IN YOUR SYSTEMUI
Recompile and decompile again...
Now its time for id replacement.Open public.xml and search the corresponding id and replace it in corresponding smali file as said below.
SystemUI\smali\com\mda\Ltoggle\GpsSettingButton.smali (6 hits)
Code:
Line 98: const v3, 0x7f090165<public type="id" name="quickpanel_gps_btn_icon"
Line 130: const v1, 0x7f020267<public type="drawable" name="quickpanel_icon_gps_on"
Line 133: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 139: const v1, 0x7f020266<public type="drawable" name="quickpanel_icon_gps_off"
Line 142: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 312: const v0, 0x7f0c011f<public type="string" name="quickpanel_gps_text"
SystemUI\smali\com\mda\Ltoggle\MobileDataSettingButton.smali (6 hits)
Code:
Line 142: const v3, 0x7f090166<public type="id" name="quickpanel_data_btn_icon"
Line 174: const v1, 0x7f020265<public type="drawable" name="quickpanel_icon_data_on"
Line 177: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 183: const v1, 0x7f020264<public type="drawable" name="quickpanel_icon_data_off"
Line 186: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 433: const v0, 0x7f0c01ba<public type="string" name="quickpanel_data_text"
SystemUI\smali\com\mda\Ltoggle\SoundSettingButton.smali (6 hits)
Code:
Line 127: const v3, 0x7f090169<public type="id" name="quickpanel_sound_btn_icon"
Line 159: const v1, 0x7f02026d<public type="drawable" name="quickpanel_icon_sound_on"
Line 162: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 168: const v1, 0x7f02026c<public type="drawable" name="quickpanel_icon_sound_off"
Line 171: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 478: const v0, 0x7f0c01bc<public type="string" name="quickpanel_sound_text"
SystemUI\smali\com\mda\Ltoggle\SyncSettingButton.smali (6 hits)
Code:
Line 103: const v3, 0x7f090167<public type="id" name="quickpanel_sync_btn_icon"
Line 135: const v1, 0x7f02026f<public type="drawable" name="quickpanel_icon_sync_on"
Line 138: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 144: const v1, 0x7f02026e<public type="drawable" name="quickpanel_icon_sync_off"
Line 147: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 315: const v0, 0x7f0c0129<public type="string" name="quickpanel_sync_text"
SystemUI\smali\com\mda\Ltoggle\VibrateSettingButton.smali (6 hits)
Code:
Line 157: const v3, 0x7f09016a<public type="id" name="quickpanel_vibrate_btn_icon"
Line 189: const v1, 0x7f020271<public type="drawable" name="quickpanel_icon_vibrate_on"
Line 192: const v4, 0x7f0a0010<public type="color" name="quickpanel_text_color_on"
Line 198: const v1, 0x7f020270<public type="drawable" name="quickpanel_icon_vibrate_off"
Line 201: const v4, 0x7f0a000f<public type="color" name="quickpanel_text_color_off"
Line 330: const v0, 0x7f0c01bd<public type="string" name="quickpanel_vibrate_text"
Save, recompile, sign it and push.
Credit And Thanks To:
- Allah Subhaana Wa Ta'alla
- Muhammad Sallal lahu alayhi wassallam
- MDA
- Om Rio Hutabarat (for vertical Toggles )
- Maaadr
- Hendry Zykes
- Eboy Basit
- You

Download Attachment From Here

Nice om :good:

Thanks om

Recompile error
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml

Something wrong
mjraogr said:
@eboybasit
How do you
I got this error when i try the first recompile.
Code:
C:\Users\power\APK-Multi-Tool\other\..\projects\SystemUInj1.apk\res\layout\eboybasit_ltoggles.xml:46: error: Error: No resource found that matches the given name (at 'id' with value '@id/quickpanel_vibrate_btn_icon').
So i include this on ids.xml
<item type="id" name="quickpanel_vibrate_btn_icon">false</item>
My device is GT-I8552 Dual SIM tw_stastusbar_expanded_dual.xml
Click to expand...
Click to collapse
Completing..
I follow exaclty this guide but the result was not good. Is there anything missing instruction to modify the panel how to remove and add button toggles of linear layout and set expanded notification
Can you see the pics
View attachment 3335560
This is my layout - tw_statusbar_expanded_dual
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="@drawable/tw_quick_panel_quick_setting_button_bg_normal" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="67.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="16.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />
[/COLOR] </LinearLayout>
<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="fill_parent" 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" />
<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" />
</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" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>

Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you

Nice work! :good:

eboybasit said:
Place it below the blue colored lines
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<include layout="@layout/eboybasit_ltoggles" />
press thanks if i helped you
Click to expand...
Click to collapse
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app

mjraogr said:
Tks @eboybasit
I will do this and after go to the next guide mod., to hide LPanel to divide in 4 parts.
I have two doubts, cause I saw that in the guide, is necessary to describe and add the creation of Lpanel button in statusbar and the smali file source to give action of this button
This button will be created with the second package in next item ? " 5 How To make show Hide l panel Before.Doing This Step make.sure u already Added L Panel"
The original toggles layout also need to be removed or change to 0.0 to let free space for the new toggle panel
http://forum.xda-developers.com/android/development/how-to-make-ur-device-looks-android-l-t3090248
MJ
Sent from my GT-I8552B using XDA Free mobile app
Click to expand...
Click to collapse
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?

Result L panel on 4.1.2
eboybasit said:
L button :what: i have never heard about L button what is it ? Is it the flip button like thing i guess a two tab layout ?
Click to expand...
Click to collapse
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237

mjraogr said:
ok
I thought I would need a new button... i got it
I finished the first step and tested. Now, I wil remove the toggle slider and move the sim card to the footer position to follow the 5- theard guide
The results
View attachment 3337237
Click to expand...
Click to collapse
Okay

L panel finish need remove spaces
eboybasit said:
Okay
Click to expand...
Click to collapse
@eboybasit
I couldnt use then layout and divide in 4 parts to complete modifications.. I get FC
So made little dif.
Now i need change on some statusbar.smali file to delete stock quick toggles. Right now i hidden in layout usind this code in line layout android;vibilitiy:"gone"
See the screenshot when i apply the hide visibility for toggles but keep the space on layout
{
"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"
}
THIS IS MY EXPANDED LAYOUT ( blue lines its the stock quick toggles and RED the L layout)
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="#ff243137" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
[COLOR="Blue"] <HorizontalScrollView android:id="@id/quicksetting_scroller" android:background="#ff243137" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:layout_marginTop="@dimen/tw_notification_panel_header_height">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="wrap_content" android:layout_height="1.0dip" android:visibility="gone" android:divider="#00000000" android:showDividers="middle" />
</HorizontalScrollView> [/COLOR]
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="@dimen/notification_panel_quicksettingbtn_height" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:id="@id/scrollCart" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:layout_width="fill_parent" android:layout_height="40.0dip">
<com.android.systemui.statusbar.policy.QuickSim1ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim1ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="15.0dip" android:layout_marginRight="7.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim1ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim1ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label1" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.policy.QuickSim2ButtonLayout android:gravity="center_vertical" android:layout_gravity="center_vertical" android:orientation="vertical" android:id="@id/QuickSim2ButtonLayout" android:background="@drawable/quickpanel_simbutton_selector_bg" android:focusable="true" android:clickable="true" android:layout_width="145.0dip" android:layout_height="49.0dip" android:layout_marginLeft="7.0dip" android:layout_marginRight="15.0dip" android:layout_weight="1.0">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip">
<ImageView android:id="@id/QuickSim2ButtonImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_w_2" />
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:gravity="left" android:id="@id/QuickSim2ButtonText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" />
</LinearLayout>
<TextView android:textSize="10.0dip" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/multisim_carrier_label2" android:paddingLeft="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.policy.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="56.0dip">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="55.0dip" />
<View android:background="#ff243137" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>
[COLOR="Red"]<include layout="@layout/eboybasit_ltoggles" />[/COLOR]
<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="#ff243137" 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="fill_parent" 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="#ff243137" 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" />
</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" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:src="@drawable/tw_status_bar_close" android:scaleType="fitXY" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height" android:layout_marginBottom="10.0dip" />
</RelativeLayout>
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Can u help me to fix ?
thaks a lot
Sent from my GT-I8552B using XDA Free mobile app

change height of <HorizontalScollView to 0.0dip

eboybasit said:
change height of <HorizontalScollView to 0.0dip
Click to expand...
Click to collapse
hello Bro,
I tried this but no effects, keep same space in layout and if i delete lines get a FC
Tried also used the tenten Layout (4 parts divided) and get FC
Thank u bro

Whats Next..
Finally i got sumething like this in my fone... nw only need to bring brightness bar down .... how do we bring the brightness bar down??

Data button long press crashing
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks

When I merge and compile I'm getting errors as shown below

I'm trying to apply this mod to a stock 4.1.2 TW ROM, but give me FC. The logcat says references about method android.app.StatusBarManager.collapsePanels.
I've searched in SystemUI but there isn't a method with this name. Could be a method in Kit Kat?

mjraogr said:
@EboyBasit Morning
When we click on long press the Data button the SystemUI is crashing. Are you have soluction for fix this issue?
Thanks
Click to expand...
Click to collapse
Open all the smali's of my guide by text editor and search keyword collapsepanels and then change it to collapse , save it and recompile n push

Related

[DISCONTINUED][GUIDE]Adding Brightness Slider to ROM[CM9][CM10]

Yo peeps, this is my second guide!! So if i am wrong anywhere please help me!!
Click to expand...
Click to collapse
Warning: This method is only working on CM9 and CM10 roms
Click to expand...
Click to collapse
Requirements:​
-Notepad++
-Apktool
-Deodexed SystemUI.apk
Credits:​
-Adi Aisiteru Reborn Original Link
-Xda
-Google
Instructions:​
Step 1:
Decompile SystemUI.apk and go to res/values/ids.xml and open it and add this at the end
Code:
<item type="id" name="automatic">false</item>
Step 2:
Go to res/values/strings.xml and add these two lines to the end
Code:
<string name="brightness_settings_automatic">AUTO</string>
<string name="brightness_settings_title" />
Step 3 for CM10:
Go to res/layout/status_bar_expanded.xml and add the RED line
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network" android:gravity="center" android:layout_gravity="bottom" android:id="@id/carrier_label" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
<include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_widget_height" />
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="always">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
</ScrollView>
</LinearLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height">
<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" android:src="@drawable/status_bar_close" android:scaleType="fitXY" />
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>
Step 3 for CM9:
Go to res/layout/status_bar_expanded.xml and add the RED line
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<RelativeLayout android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
[COLOR="Red"]<include layout="@layout/adi_brightness" />[/COLOR]
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>
Step 4: CM9 skip this step
Go to res/layout/status_bar_expanded_header and do the Red mod
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" [COLOR="Red"]android:background="#ff000000"[/COLOR] android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
Step 5:
Download this file and extract contents to respective folders
Step 6:
Recompile and add to ur rom!!
All the best guys!!
Appreciate the work but there's already the same guide here. Better give credits bro or else the thread might be closed.
swat4samp said:
Appreciate the work but there's already the same guide here. Better give credits bro or else the thread might be closed.
Click to expand...
Click to collapse
thanks bro i forgot to give the credits part

[Guide][FlymeUI][JB4.2.2][mtk]Add Flyme status bar in new and Easy way

<===Hi Sir's...
Its MD here and now going to share something's...
[Guide add flyme UI with analog clock and logo easy way and add analog clock in Notification panel]
[COLOR="#Green"]Preview[/COLOR]
[COLOR="#Blue"]
<===Flyme UI status bar===> [/COLOR]
{
"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"
}
[COLOR="#Blue"]
<===Analog clock in Notification Panel===> [/COLOR]
[COLOR="#Blue"] Warnings -
1.First take nanandroid backup..
2.any kind of damage i will not responsible... [/COLOR]
[COLOR="#Black"]
Necessary things-
1.knowledge in decompiling and recompiling...
2.Editing Xmls...
3.Some common sense...
[/COLOR]
First a huge credits goes to some Indonesian devs...I forgot there name.So i can't mention them...but what let's start...===>
<-N.B->
<===Don't forget to give me and them some credits if you did this...and don't steel my work and if this guide already shared in xda then comment here i will delete this thred...
well let's start... ===>
<===First decompile your framework and go to res/values and open dimens.xml and search these lines ===>
<dimen name="status_bar_height">**.0dip</dimen>
and
<dimen name="status_bar_icon_size">**.0dip</dimen>
<===Now edit them like mine ===>
<dimen name="status_bar_height">45.0dip</dimen>
and
<dimen name="status_bar_icon_size">20.0dip</dimen>
<===Done!Now save it and recompile framework and sign===>
<===Now decompile SystemUI and go to SystemUI and go to res/layout/Gemini_status_bar.xml.Open it and compare your XML with my one here===>
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/mdsflyme" android:layout_width="fill_parent" android:layout_height="50.0dip">
<AnalogClock android:gravity="left" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="24.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<ImageView android:gravity="left|center" android:id="@id/cayno_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/mds" android:scaleType="fitCenter" android:adjustViewBounds="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/gemini_signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ImageView android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@android:color/holo_blue_light" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/mdsfylmeo" android:paddingLeft="1.0dip" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="24.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/mdsfylmeos" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Cayno.Trafficmeter" android:gravity="left|center" android:id="@id/cayno_traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/cayno" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<TextView android:textSize="16.0sp" android:textColor="@android:color/holo_blue_light" android:id="@id/percentage" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
<=N.B=>
This xml can be found in mds_flyme_os.zip download it from the attachment and extract it then search this xml and open it and compare it with your xml...
<--------------------------------------------------->
<===Done!now save it and go to values and open ids.xml and style.xml and add these ids in your ids.xml before resource===>
Code:
<item type="id" name="mdsflyme">false</item>
<item type="id" name="mdsfylmeo">false</item>
<item type="id" name="mdsfylmeos">false</item>
<item type="id" name="cayno">false</item>
<item type="id" name="cayno_logo">false</item>
<item type="id" name="cayno_traffic">false</item>
<===now save ids.xml and go to style.xml and add this code...before resource===>
Code:
<style name="TextAppearance.StatusBar.Cayno.Trafficmeter" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<===Done!now save it...and make one logo in 118*21 size and rename it in mds.png...
Then copy it to drawable-hdpi and drawable-nodpi and drawable-sw600dp-hdpi...
Done!Now recompile you SystemUI and sign it and make flushable zip===>
<-N.B->
<===This guide for jb user but ics and kk users can try it...if its work then pm me... ===>
<===Now do you want to add analog clock in notification panel?!!
Then follow this step...but you need to give credits to RSS bro...Because he share it with me... ===>
<===well..now decompile you ui and go to layout/status_bar_exlanded_header.xml and add this line===>
Code:
<AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
<===before===>
Code:
<com.android.systemui.statusbar.policy.DateView
<===This code===>
<===Done!Now save it and make new clock photo (206*208), one minute icon (21*19) and one hour icon (21*19)...and renamed them like clock icons to ( a_circle.png ),minutes icon to ( a_minute.png ) and hour icon to ( a_hour.png ) and copy and paste them in drawable folder and recompile your UI and sign and flash it... ===>
<-N.B->
<===If you cant understand anything then download and extract the mds_flyme_os.zip and go to example folder and try to understand... and if facing recompiling problem then show me the logcat,i will try to give one solution... ===>
<===That's all... ===>
<<<===Happy modding
And never stop customization...===>>>
<===Post by:MD's===>
[COLOR="#Blue"]<===If you Like my guide then Click on Thanks button Sir... ===>[/COLOR]

[Guide][FlymeUI][JB4.2.2.2][MTK]Add flyme status bar new way

<===Hi Sir's...
Its MD here and now going to share something's...
[Guide add flyme UI with analog clock and logo easy way and add analog clock in Notification panel]
[COLOR="#Green"]Preview[/COLOR]
[COLOR="#Blue"]
<===Flyme UI status bar===> [/COLOR]
{
"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"
}
[COLOR="#Blue"]
<===Analog clock in Notification Panel===> [/COLOR]
[COLOR="#Blue"] Warnings -
1.First take nanandroid backup..
2.any kind of damage i will not responsible... [/COLOR]
[COLOR="#Black"]
Necessary things-
1.knowledge in decompiling and recompiling...
2.Editing Xmls...
3.Some common sense...
[/COLOR]
First a huge credits goes to some Indonesian devs...I forgot there name.So i can't mention them...but what let's start...===>
<-N.B->
<===Don't forget to give me and them some credits if you did this...and don't steel my work and if this guide already shared in xda then comment here i will delete this thred...
well let's start... ===>
<===First decompile your framework and go to res/values and open dimens.xml and search these lines ===>
<dimen name="status_bar_height">**.0dip</dimen>
and
<dimen name="status_bar_icon_size">**.0dip</dimen>
<===Now edit them like mine ===>
<dimen name="status_bar_height">45.0dip</dimen>
and
<dimen name="status_bar_icon_size">20.0dip</dimen>
<===Done!Now save it and recompile framework and sign===>
<===Now decompile SystemUI and go to SystemUI and go to res/layout/Gemini_status_bar.xml.Open it and compare your XML with my one here===>
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />
<LinearLayout android:orientation="horizontal" android:id="@id/mdsflyme" android:layout_width="fill_parent" android:layout_height="50.0dip">
<AnalogClock android:gravity="left" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="50.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="24.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<ImageView android:gravity="left|center" android:id="@id/cayno_logo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/mds" android:scaleType="fitCenter" android:adjustViewBounds="true" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/gemini_signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<ImageView android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@android:color/holo_blue_light" />
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/mdsfylmeo" android:paddingLeft="1.0dip" android:paddingRight="1.0dip" android:layout_width="fill_parent" android:layout_height="24.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/mdsfylmeos" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Cayno.Trafficmeter" android:gravity="left|center" android:id="@id/cayno_traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right" android:orientation="horizontal" android:id="@id/cayno" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
<TextView android:textSize="16.0sp" android:textColor="@android:color/holo_blue_light" android:id="@id/percentage" android:paddingLeft="4.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
<=N.B=>
This xml can be found in Mds_flyme_os.zip download it from the attachment and extract it then search this xml and open it and compare it with your xml...
<--------------------------------------------------->
<===Done!now save it and go to values and open ids.xml and style.xml and add these ids in your ids.xml before resource===>
Code:
<item type="id" name="mdsflyme">false</item>
<item type="id" name="mdsfylmeo">false</item>
<item type="id" name="mdsfylmeos">false</item>
<item type="id" name="cayno">false</item>
<item type="id" name="cayno_logo">false</item>
<item type="id" name="cayno_traffic">false</item>
<===now save ids.xml and go to style.xml and add this code...before resource===>
Code:
<style name="TextAppearance.StatusBar.Cayno.Trafficmeter" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<===Done!now save it...and make one logo in 118*21 size and rename it in mds.png...
Then copy it to drawable-hdpi and drawable-nodpi and drawable-sw600dp-hdpi...
Done!Now recompile you SystemUI and sign it and make flushable zip===>
<-N.B->
<===This guide for jb user but ics and kk users can try it...if its work then pm me... ===>
<===Now do you want to add analog clock in notification panel?!!
Then follow this step...but you need to give credits to RSS bro...Because he share it with me... ===>
<===well..now decompile you ui and go to layout/status_bar_exlanded_header.xml and add this line===>
Code:
<AnalogClock android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:dial="@drawable/a_circle" android:hand_hour="@drawable/a_hour" android:hand_minute="@drawable/a_minute" android:layout_centerVertical="true" />
<===before===>
Code:
<com.android.systemui.statusbar.policy.DateView
<===This code===>
<===Done!Now save it and make new clock photo (206*208), one minute icon (21*19) and one hour icon (21*19)...and renamed them like clock icons to ( a_circle.png ),minutes icon to ( a_minute.png ) and hour icon to ( a_hour.png ) and copy and paste them in drawable folder and recompile your UI and sign and flash it... ===>
<-N.B->
<===If you cant understand anything then download and extract the mds_flyme_os.zip and go to example folder and try to understand... and if facing recompiling problem then show me the logcat,i will try to give one solution... ===>
<===That's all... ===>
<<<===Happy modding
And never stop customization...===>>>
<===Post by:MD's===>
[COLOR="#Blue"]<===If you Like my guide then Click on Thanks button Sir... ===>[/COLOR]
Nice bro....
Hello brother
Can you edit my xml please
My framework has done.
I confuse how to edit systemui and get error...

[D.E.V] DROIDWIN UI

This is DEV project to mod UI to DroidWin V3
On development to me and @serajr
We request everyone to not post or ask quote here.
The results can be followed at DroidWin V2 thread
Thank U
:good:
SYSTEMUI
New Toggle Buttons L BALLS Blue
Erase lines dividers and stats
Erase Toggle text
Reorder toogle buttons
Transparent headers
Transparent notifications
Text colors HOLO
StatusBar On close remake light theme
Mod Quick Panel Settings with Blue Balls
The updates comes whit
AOSP Clear Button TOP
Created Quick Settings Toggles Panel access integration Kitkat
Add Custom Buttons
New Theme Blue Bubble Ball
XDA:DevDB Information
DROIDWIN UI, Device Specific App for all devices (see above for details)
Contributors
mjraogr, serajr
Version Information
Status: Nightly
Current Stable Version: DroidWin V2
Stable Release Date: 2015-01-13
Current Beta Version: DroidWin V2 Theme
Beta Release Date: 2014-11-28
Created 2015-01-06
Last Updated 2015-01-13
CODES ADD
my friend @serajr
Open this dev to us, its more easy to change
Im add newUI project decompiled folder .rar on dowloads window ; Im up to the droidwin framework-res and tw-framework-res cose its some mods
On attachments upload the two UI apks compileds the DroidwinV2 UI and new dev
After our previous talk today i'm decide replace somes codes and restore xmls the clear button stock way and settings button too . Im was erase the codes that have been wrote. Can you see on .rar , I just insert the xmls respectives to script positions like the same setting button on 39.0dip
So its working now and dont stop more on FC. working now but without show the newest toggle button created on pull down menu ok!
regard
MJ
quicksettings parameters to smali (toggle button)
Code:
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
IDS
Code:
<item type="id" name="togglepanel">false</item>
<item type="id" name="togglepanel_button">false</item>
<item type="id" name="togglepanel_icon">false</item>
Drawables ids new
Code:
<public type="drawable" name="keylockwhite" id="0x7f0202d0" />
<public type="drawable" name="recentwhite" id="0x7f0202d1" />
<public type="drawable" name="tw_toggle_panel" id="0x7f0202d2" />
layout\toggle Button
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_height">
<ImageView android:layout_gravity="center" android:id="@id/togglepanel" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_image_height" android:layout_marginTop="@dimen/toggle_panel_button_margin_top" />
<TextView android:textSize="@dimen/toggle_panel_button_text_size" android:textColor="#ff648cff" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="0.0dip" android:includeFontPadding="false" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
This is the FC code on TW
Code:
# codigo abaixo modificado move settings_button pra esq e clear_button to middle top e add o toggle_panel_button no lugar do settings resultado é force closed relatado no txt
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff001e27" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" 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" android:textAllCaps="true" />
<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: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" />
<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" />
<RelativeLayout android:id="@id/togglepanel_button" android:background="#ff001e27" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/togglepanel_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_toggle_panel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Bro, please attach unmodified SystemUI.apk!
Btw... you can't remove lines from xml if they have android:id flag set... compiler will fc for sure. If you don't want a specific layout line, put android:visibility="gone" instead!
Unmod upload
serajr said:
Bro, please attach unmodified SystemUI.apk!
Btw... you can't remove lines from xml if they have android:id flag set... compiler will fc for sure. If you don't want a specific layout line, put android:visibility="gone" instead!
Click to expand...
Click to collapse
Hi Bro
Ok understand, Im fixed excluding the clear buttons mods and after loading both UI and create Ids to toggle_panel. The doubt is how we i'll show this button, yet this setted with "@string/accessibility_settings_button" />
well, the second attach SystemUI[1].apk is the Droidwin v2 UI without the new button costumization but with this mod release bellow . Are you need the attach stock dedodex to compare right ? upload its now
New Toggle Buttons L BALLS Blue
Erase lines dividers and stats
Erase Toggle text
Reorder toogle buttons
Transparent headers
Transparent notifications
Text colors HOLO
StatusBar On close remake light theme
Mod Quick Panel Settings with Blue Balls
regards
MJ
Info Add
@serajr
This info is about dimens of button its dispensable
The code was i insert on 4 last lines on values\dimens.xml don't have relaction to toggle_panel button, its so clone the toggles of quick settings expanded so we must erase this lines
Reg.
MJ
mjraogr said:
@serajr
This info is about dimens of button its dispensable
The code was i insert on 4 last lines on values\dimens.xml don't have relaction to toggle_panel button, its so clone the toggles of quick settings expanded so we must erase this lines
Reg.
MJ
Click to expand...
Click to collapse
Thank you... by tomorrow morning I will take a look!!!
@mjraogr ... Let's start by putting new button image there at expanded panel header.
New button is the red line
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">
<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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ffffffff" 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" android:textAllCaps="true" />
<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" />
[COLOR="red"]<ImageView android:id="@id/[COLOR="Blue"]here_goes_the_new_id_name[/COLOR]" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/[COLOR="blue"]here_goes_the_new_xml_drawable_name[/COLOR]" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<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>
The main header layout is a LinearLayout with horizontal orientation, so, the views into it will be filled from left to right. The new buttom will be just before last one (reposition it if needed). Pay attention on blue names you need to replace!
For the drawable selector, do a clone from ic_notify_clear.xml to the name you want and change its contents to new drawables:
ic_notify_?????.xml
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/[COLOR="blue"]ic_notify_?????_pressed[/COLOR]" />
<item android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_normal[/COLOR]" />
</selector>
If you want to remove unwanted views, don't remove their lines, just "gone" them!!
Compile and replace apk! If we get success the new button will be there, but with no function yet!!
serajr said:
@mjraogr ... Let's start by putting new button image there at expanded panel header.
New button is the red line
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">
<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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ffffffff" 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" android:textAllCaps="true" />
<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" />
[COLOR="red"]<ImageView android:id="@id/[COLOR="Blue"]here_goes_the_new_id_name[/COLOR]" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/[COLOR="blue"]here_goes_the_new_xml_drawable_name[/COLOR]" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<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>
The main header layout is a LinearLayout with horizontal orientation, so, the views into it will be filled from left to right. The new buttom will be just before last one (reposition it if needed). Pay attention on blue names you need to replace!
For the drawable selector, do a clone from ic_notify_clear.xml to the name you want and change its contents to new drawables:
ic_notify_?????.xml
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/[COLOR="blue"]ic_notify_?????_pressed[/COLOR]" />
<item android:drawable="@drawable/[COLOR="blue"]ic_notify_?????_normal[/COLOR]" />
</selector>
If you want to remove unwanted views, don't remove their lines, just "gone" them!!
Compile and replace apk! If we get success the new button will be there, but with no function yet!!
Click to expand...
Click to collapse
Nice job bro
I' ll done this great to do list ! It very home work today. Im office now.
I was left project folder still open on my desktop and I'll go use the created id to button ok.
Are you vocations?
See u
MJ
Sent from my GT-I8552 using XDA Free mobile app
mjraogr said:
Nice job bro
I' ll done this great to do list ! It very home work today. Im office now.
I was left project folder still open on my desktop and I'll go use the created id to button ok.
Are you vocations?
See u
MJ
Sent from my GT-I8552 using XDA Free mobile app
Click to expand...
Click to collapse
No I'm not, I'm working like a beast!!
Good luck!
Compiled
Morning @serajr
Well, work strong and what i've done
Step One
Beyond the new btn, I inserted also completed with the recent button on left side positition. In case the previous error to don't show us recent btn occurred cause the " recentwhite " png was without xml sources on set, was floating...
Set the android:background to ff384248 just to see that return effect ( Do u believe that didn't find correct location on this device to change colors pull down header yet
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff384248" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" 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" android:textAllCaps="true" />
<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"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_recentwhite" android:layout_toLeftOf="@id/togglepanel_button" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/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" />
[COLOR="Red"]<ImageView android:id="@id/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" 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>
So i was replace blue line src to set the ic_recentwhite to use these icons. Create xml srcs and then states icons with IcoFx windows program
Step two
a) I used one of ids created before to new btn
b) Cloned the ic_notify_quicksetting.xml
c) Replaced the same way that u taught me to set src. So created theses pngs normal and press btn states
step 3
Then compiled but the first build returns apktool layout\tw_status_bar_expanded_header.xml:9: error: Error: String types not allowed (at 'layout_toLeftOf' with value 'id/@togglepanel_button'). couse i forget to write the @ in the correct position ... sleep ...:silly
and end ...... recompile it pass and installed but unrapply dont show button
Second test
Im decompiled last compilation and get the public codes the red line was used
<public type="id" name="togglepanel" id="0x7f0d0140" />
<public type="drawable" name="tw_toggle_panel" id="0x7f0202d2" />
<public type="id" name="togglepanel_button" id="0x7f0d0141" />
<public type="id" name="togglepanel_icon" id="0x7f0d0142" />
<public type="drawable" name="ic_notify_togglepanel" id="0x7f0202d4" />
<public type="drawable" name="ic_notify_togglepanel_normal" id="0x7f0202d5" />
<public type="drawable" name="ic_notify_togglepanel_pressed" id="0x7f0202d6" />
<public type="drawable" name="keylockwhite" id="0x7f0202d0" />
<public type="drawable" name="recentwhite" id="0x7f0202d1" />
<public type="drawable" name="ic_notify_clear_focus" id="0x7f0202d3" />
<public type="drawable" name="ic_recentwhite" id="0x7f0202d7" />
<public type="drawable" name="ic_recentwhite_normal" id="0x7f0202d8" />
<public type="drawable" name="ic_recentwhite_pressed" id="0x7f0202d9" />
1) Erased the recentwhite buttons line left just the new btn on tw_satus bar expanded header
2) Insert the parameter android:visibility="visible" for toggle_button
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff384248" 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="#ff648cff" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" 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" android:textAllCaps="true" />
<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" />
<ImageView android:id="@id/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="Blue"]android:visibility="visible" [/COLOR]android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" 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>
3) Keep on drawables xml folder the ic_recentwhite.xml and pngs btn also for don't FC, then recompile again
Results
Its installed and loading well but keep hidden toogle_button, dont have btn yet.
View attachment 3104095
Thinking...
1) Could be double position 39.dpi or something is missing in tw_status_bar_expanded_dual on simple reference?
2) We must be considering relative layout like settings_button or need modify framework and policy.jar?
3) Im wrote or done something wrong?
Regard
MJ
Src registers
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_togglepanel_pressed" />
<item android:drawable="@drawable/ic_notify_togglepanel_normal" />
</selector>
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_recentwhite_pressed" />
<item android:drawable="@drawable/ic_recentwhite_normal" />
</selector>
mjraogr said:
Morning @serajr
Click to expand...
Click to collapse
Morning...
First of all, don't use flag layout_toLeftOf (or any layout_to???) inside LinearLayout (our main layout), these flags are for RelativeLayout!!
- The new buttons you want to put into there don't need to be enclosed by a new layout, like the example I showed you, their lines can stay at root LinearLayout view
- Hex Ids aren't necessary right now, you can just create the ones you want inside ids.xml that on recompile process, apktool will give them their new hex number inside public.xml automatically
- Your newly created drawables selectors are both ok
- To remove header background I think we need to change things inside smali (later we do it)
- Try doing it simple this time, put just one new line inside tw_status_bar_expanded_header.xml like above example!
serajr said:
Morning...
First of all, don't use flag layout_toLeftOf (or any layout_to???) inside LinearLayout (our main layout), these flags are for RelativeLayout!!
- The new buttons you want to put into there don't need to be enclosed by a new layout, like the example I showed you, their lines can stay at root LinearLayout view
- Hex Ids aren't necessary right now, you can just create the ones you want inside ids.xml that on recompile process, apktool will give them their new hex number inside public.xml automatically
- Your newly created drawables selectors are both ok
- To remove header background I think we need to change things inside smali (later we do it)
- Try doing it simple this time, put just one new line inside tw_status_bar_expanded_header.xml like above example!
Click to expand...
Click to collapse
OK, Bro
I was start using the mod UI with the things that have been customized like colors, line dividers, brightness bar, bg and the toogle_button layout xml too . i must use only the unmod stock right?
Yes, the hex are automatic ids just did show to u see if the path names was set correctly
Doubt..
on the second compilation i left only you saying, the new btn line with diference in case put the android:visibilty . but didnt show btn
Code:
<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/togglepanel_button" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="Red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_togglepanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />
<RelativeLayout android:id="@id/settings_button" android:background="#ff384248" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
I remember right now.... if is trouble the dimens.xml lines set cause i forget erase it and the toggle_button layout xml properly created before is it conflits cause the described name set is the same of IDS used. " toggle_button "
tw_toggle_pannel_button.xml
Code:
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_height">
<ImageView android:layout_gravity="center" android:id="@id/togglepanel" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_image_height" android:layout_marginTop="@dimen/toggle_panel_button_margin_top" />
<TextView android:textSize="@dimen/toggle_panel_button_text_size" android:textColor="#ff648cff" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="0.0dip" android:includeFontPadding="false" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Dimens toggle Button (this is dispensible right now)
Code:
<dimen name="toggle_panel_button_height">80.0dip</dimen>
<dimen name="toggle_panel_button_image_height">40.0dip</dimen>
<dimen name="toggle_panel_button_text_height">30.0dip</dimen>
<dimen name="toggle_panel_button_text_size">12.0dip</dimen>
<dimen name="toggle_panel_button_status_height">8.0dip</dimen>
<dimen name="toggle_panel_button_status_padding">2.0dip</dimen>
<dimen name="toggle_panel_button_margin_top">2.0dip</dimen>
I'll get the stock unmod UI and compile again placing just drawables, one diferent id, add the line on tw.
MJ
Sent from my GT-I8552 using XDA Free mobile app
New test on weekend
Hi Bro
Yesterday didnt work on test cause was busy time at work office.
So i'll work on weekend and try compile btn n stuff again on unmod UI
After, if we obtain success, ill complete trying to move the clear button to top change postiion inside the RelativeLayout
Good Week...
See u
MJ
01-09-2015 test UI new btn
Hi Bro @serajr
how do !
well lets start again test compilation on Unmod UI I made 2 tests
First test i follow instructions to new btn
Layout\ tw_status_bar_expanded_header - changed insert blue line code new btn
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff648cff" android:id="@id/clock" android:visibility="gone" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" 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" android:textAllCaps="true" />
<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" />
[COLOR="Blue"]<ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<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>
drawable folder
drawable src created and rescpective pngs on drawable-hdpi resolution itt same folder settings_btn
Compiled ok
Pass true, install true and load true but the new Button don't appear yet....
Change settings png and change colors text clock #ff000000 to #ff648cff for see modifications and interesting that the text colors not changed
View attachment 3107250
Second Test
Changed position new btn line before line divider and recompile
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff648cff" android:id="@id/clock" android:visibility="gone" 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:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" 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" android:textAllCaps="true" />
<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"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
<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>
Compiled ok
Pass true, install true and load true but the new Button don't appear yet....
On Third test
I used the every lines of statusbar_expanded_header (they are diferents) including new btn on tw_statusbar_expanded_header and the results was the same header items load and working normal that means the xml codes to modify don't be there in tw_statusbar_expanded_header
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" 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:id="@id/clock" 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:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="8.0dip" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" 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" />
[COLOR="blue"]<ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</LinearLayout>
What we doing now, can we set line inside the RelativeLayout together quicksettings btn?
Or if must look for other XML , i'm thinking if try put the button on tw_status_bar_expanded_dual.xml close of the brigthness scroller
View attachment 3107312 View attachment 3107321 View attachment 3107322 View attachment 3107323
Step One Done - The new button is there!!!
My Bro @serajr We are done!!!
View attachment 3110607
After 4th test i think myself I had to get another xml and I found it .
The I8552 works sw320 - hdpi, i did new compilation change the color header pull down btw inside xml, and after textcolor. Whit this positive results put the new button and show now !!
The sw = 320- hdpi uses RelativeLayout and is a little different , I used the android : leftof and android : visible
Code:
<<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="39.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff263238" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
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="#ff79beb9" 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="#ff79beb9" 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" />
</LinearLayout>
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" android:layout_alignParentRight="true">
<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" android:layout_toLeftOf="@id/settings_button" />
[COLOR="Blue"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" [COLOR="Red"]android:layout_toLeftOf="@id/settings_button"[/COLOR] android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</RelativeLayout>
Were two victories cause I found where to change the pull down colors
I moved the clear button to top and change for icon on mod UI
{
"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"
}
Now Let's go to second part :laugh:
mjraogr said:
My Bro @serajr We are done!!!
View attachment 3110607
After 4th test i think myself I had to get another xml and I found it .
The I8552 works sw320 - hdpi, i did new compilation change the color header pull down btw inside xml, and after textcolor. Whit this positive results put the new button and show now !!
The sw = 320- hdpi uses RelativeLayout and is a little different , I used the android : leftof and android : visible
Code:
<<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:layout_width="fill_parent" android:layout_height="39.0dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff263238" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
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="#ff79beb9" 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="#ff79beb9" 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" />
</LinearLayout>
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" android:layout_alignParentRight="true">
<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" android:layout_toLeftOf="@id/settings_button" />
[COLOR="Blue"] <ImageView android:id="@id/droidwin_btn" android:background="@drawable/tw_quick_panel_setting_button_bg" [COLOR="red"]android:visibility="visible"[/COLOR] android:layout_width="wrap_content" android:layout_height="39.0dip" android:src="@drawable/ic_notify_droidpanel" [COLOR="Red"]android:layout_toLeftOf="@id/settings_button"[/COLOR] android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@null" />[/COLOR]
</RelativeLayout>
Were two victories cause I found where to change the pull down colors
I moved the clear button to top and change for icon on mod UI
View attachment 3110715
Now Let's go to second part :laugh:
Click to expand...
Click to collapse
Finally!! So, the density was the culprit!!!
You don't need to put android:visibility="visible", it's visible by default!
Ok... let's go ahead into smali!!
serajr said:
Finally!! So, the density was the culprit!!!
You don't need to put android:visibility="visible", it's visible by default!
Ok... let's go ahead into smali!!
Click to expand...
Click to collapse
Ok, !!
I1ll go modify and this.
Well meanwhile i'll work on issues themes of colors etc ... Something can i do to prepare smali?
rg
MJ
mjraogr said:
Ok, !!
I1ll go modify and this.
Well meanwhile i'll work on issues themes of colors etc ... Something can i do to prepare smali?
rg
MJ
Click to expand...
Click to collapse
I will come back here soon with smali code snippet!
serajr said:
I will come back here soon with smali code snippet!
Click to expand...
Click to collapse
Nice!
Just send u again bellow parameters script to facility
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
good work !
mjraogr said:
Nice!
Just send u again bellow parameters script to facility
Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings
good work !
Click to expand...
Click to collapse
Ok, let's go...
PhoneStatusBar.smali
Under # instance fields add red lines:
Code:
# instance fields
[COLOR="red"].field mDroidWinButton:Landroid/view/View;
.field private mDroidWinButtonListener:Landroid/view/View$OnClickListener;[/COLOR]
.field brightnessController:Landroid/view/View;
.field doNotDisturbIcon:Landroid/view/View;
Under method below put red lines (see spaces):
Code:
[B].method public constructor <init>()V[/B]
.locals 4
.prologue
const/4 v0, -0x1
const/4 v3, 0x2
const/4 v2, 0x0
const/4 v1, 0x0
.
.
.
.line 3885
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$30;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStopTracing:Ljava/lang/Runnable;
[COLOR="red"].line 7002
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$31;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/[COLOR="Blue"]PhoneStatusBar$31[/COLOR];-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButtonListener:Landroid/view/View$OnClickListener;[/COLOR]
.line 3990
new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;
invoke-direct {v0, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mBatteryTextObserver:Lcom/android/systemui/statusbar/phone/PhoneStatusBar$BatteryTextObserver;
.
.
.
PhoneStatusBar$31 is the new smali file you need to include at same place PhoneStatusBar.smali file is (attached)
Under method below put red lines (see spaces):
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
.locals 22
.prologue
.line 540
move-object/from16 v0, p0
.
.
.
.line 742
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButton:Landroid/view/View;
move-object/from16 v18, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSettingsButtonListener:Landroid/view/View$OnClickListener;
move-object/from16 v19, v0
invoke-virtual/range {v18 .. v19}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
[COLOR="Red"].line 7000
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
move-object/from16 v18, v0
const v19, [COLOR="blue"]0x7f0d????[/COLOR] [COLOR="Black"][B]# << droidwin_btn GENERATED HEX ID GOES HERE[/B][/COLOR]
invoke-virtual/range {v18 .. v19}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v18
move-object/from16 v0, v18
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButton:Landroid/view/View;
.line 7001
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButton:Landroid/view/View;
move-object/from16 v18, v0
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDroidWinButtonListener:Landroid/view/View$OnClickListener;
move-object/from16 v19, v0
invoke-virtual/range {v18 .. v19}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V[/COLOR]
.line 743
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
move-object/from16 v18, v0
const v19, 0x7f0d0052
invoke-virtual/range {v18 .. v19}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
move-result-object v18
check-cast v18, Lcom/android/systemui/statusbar/RotationToggle;
move-object/from16 v0, v18
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mRotationButton:Lcom/android/systemui/statusbar/RotationToggle;
.
.
.
Change blue hex value above ^^^^ !!!
Code inside PhoneStatusBar$31.smali (new file) will check if "com.studio.quicksettings" package exists (is installed) just before launch it, otherwise we will get a FC!
That´s it... compile it and replace apk! (Try at your own risk)...
Edit.: Fixed PhoneStatusBar$31.smali file attached!

[GUIDE] Lollipop Like Swipe to Expand Notification Panel

Hello Droiders!! The is a Tutorial About How To Make Lollipop like swipe to expand systemui.
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool/Any Other tool to deconlmpile apk.
4) Brain.jar and Patient.apk
Instructions:
• Decompile your Systemui.apk
• Download the L_Swipe_Expand.zip from the attachment,extract it and merge it into your decompiled systemui.
• Open statusbar_expand.xml/msim_statusbar_expand.xml (depends on your chipset) in /res/layout and make it look like this (add the red lines and edit blue lines according to your statusbar header color/drawable) :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:orientation="vertical" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExpand android:orientation="vertical" [COLOR="Blue"]android:background="@drawable/notification_header_bg" [/COLOR]android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp1 android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for containing main systemui header-->[/COLOR]
<include layout="@layout/status_bar_expanded_header" />
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp1>[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp2 android:id="@+id/LayoutExp2" android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for second Sub-Expand header.It will be shown above your Quick toggles. you can create it by copying your status_bar_expand_header.xml-->[/COLOR]
<include layout="@layout/status_bar_expand_header_layout1" />
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp2>[/COLOR]
[COLOR="RED"] <com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">[/COLOR]
[COLOR="Green"] <!--This is for third Sub-Expand header.if don't have any third expand headee then remove this layout
[COLOR="SeaGreen"] <com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">
<include layout="@layout/status_bar_expand_header_layout2" />
</com.bloody.badboy.swipeview.LayoutExp3>[/COLOR]-->[/COLOR]
<include layout="@layout/status_bar_expand_header_layout2/>
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutExp3>
</com.bloody.badboy.swipeview.LayoutExpand>
<com.bloody.badboy.swipeview.LayoutToggle [COLOR="Blue"]android:background="@drawable/notification_header_bg2"[/COLOR]android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
<!--This layout for Containing Toggles and brightness slider-->
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/brightness_slider" />
<include android:id="@id/status_bar_qucik_switch" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/status_bar_quick_switch_layout" />
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/my_logo" />
</LinearLayout>
[COLOR="Red"] </com.bloody.badboy.swipeview.LayoutToggle>
<com.bloody.badboy.swipeview.LayoutNotify android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">[/COLOR]
[COLOR="Green"] <!--This layout for containing your Notification row layout-->[/COLOR]
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="center" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="@drawable/notification_header" android:layout_width="fill_parent" android:layout_height="7.0dip" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/latestItems">
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/clear_lay" />
</LinearLayout>
[COLOR="RED"] </com.bloody.badboy.swipeview.LayoutNotify>[/COLOR]
</com.android.systemui.statusbar.phone.NotificationPanelView>
• Now recompile your systemui.apk sign and push it into system/app/ and reboot.
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good:
May I share it in my fb?
bro is this really the animation while pull down the notification drawer?
screenshots ?
Hi,In my systemui is no notification_header_bg2 only ......._header_bg - Do I need to change it?
I having difficulty on editing my xml, lots of smali Can you help me Sir?

Categories

Resources