[guide][gb]how to add brightness slider with data trafik in any deodexed rom - Upgrading, Modifying and Unlocking

HOW TO ADD BRIGHTNESS BAR WITH DATA TRAFIK IN STATUS BAR​Hello Guys!
Today i am going to tell you how to add Brightness Bar(with Data trafik) in Status Bar of Any Deodexed ROM
Screenshot -
{
"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"
}
So, Here we start :
Things Required : (you can get all of these things on google)
1. Apktool or apk multitool (for decompiling and recompiling)
2. Notepad++
Instructions: (Do make a nandroid backup before proceeding because you might do it wrong)
1. first of all decompile SystemUI.apk (Please don't ask me how to do that).
2. Now Extract the Brightness_slider_with_data_trafik.zip (See attatchments) in your decompiled SystemUI.apk
3. Now copy and paste this code in "decompiled_systemUI\res\values\ids.xml" at bottom.
Code:
<item type="id" name="brightness">false</item>
<item type="id" name="automatic">false</item>
<item type="id" name="quickpanel_brightness_icon">false</item>
<item type="id" name="title">false</item>
4. Now copy and paste this code in "Decompiled_systemUI\res\layout\status_bar_expanded.xml" (Pasteit where you want to place the brightness bar)
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/brightness_bar" />
</LinearLayout>
so it look like this now:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0dip" android:baselineAligned="false">
<com.android.systemui.statusbar.StatusBarJellyHeaderView android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/blank" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip" android:src="@drawable/blank" />
<ImageView android:layout_gravity="center_vertical" android:layout_width="30.0px" android:layout_height="30.0px" android:src="@drawable/ic_notify_quicksettings" android:onClick="settingsButton" />
<Button android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="@style/Awesome.Button" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="3.0dip" android:baselineAligned="false">
<include layout="@layout/qp_brightness" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/quickpanel_dualsim_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="35.0px">
<com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout android:gravity="center_horizontal" 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="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim1ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_1" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim1ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim1_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim1ButtonLayout>
<com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout android:gravity="center_horizontal" 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="84.0px" android:layout_height="35.0px" android:layout_marginLeft="0.0px" android:layout_marginRight="0.0px" android:layout_weight="1.0">
<ImageView android:id="@id/QuickSim2ButtonImage" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/quick_btn_g_2" />
<TextView android:textSize="0.0px" android:textColor="@android:color/primary_text_light_dark" android:gravity="center" android:id="@id/QuickSim2ButtonText" android:paddingBottom="2.0px" android:layout_width="0.0px" android:layout_height="0.0px" android:text="@string/quickpanel_sim2_text" />
</com.android.systemui.statusbar.quickpanel.QuickSim2ButtonLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="0.0dip" android:baselineAligned="false">
<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0">
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@id/carrierLabel1Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_1" />
<com.android.systemui.statusbar.CarrierLabel android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/carrierLabel2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="1.0dip">
<ImageView android:id="@id/carrierLabel2Image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:src="@drawable/stat_sim_gsm_2" />
<com.android.systemui.statusbar.CarrierLabel2 android:textSize="17.659973dip" android:textColor="#ffffffff" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<FrameLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.darkjb.NotificationLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbnotifications" />
</LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/layout_button">
<include layout="@layout/darkjbsliders" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/layout_button" android:background="#00000000" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="1.0">
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Notifications" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
<Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Sliders" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
</LinearLayout>
</com.darkjb.NotificationLayout>
</FrameLayout>
</com.android.systemui.statusbar.ExpandedView>
5. Now open "decompiled_SystemUI.apk\res\values\strings.xml" an add this code at its end
Code:
<string name="brightness_settings_title" />
<string name="brightness_settings_automatic" />
5. Now recompile your SystemUI. done!
if you encounter any issue, you can post it. will try my best to resolve

xc
The auto button is not working

Mrinal Roy said:
The auto button is not working
Click to expand...
Click to collapse
i am working on it. will update the post asap.
Hit Thanks if i helped you!

Can you tell me how to remove the data traffic, because I want only the brightness slider.

drakonizer said:
Can you tell me how to remove the data traffic, because I want only the brightness slider.
Click to expand...
Click to collapse
divyamg28 said:
thhnxx searching for this only!!!
Click to expand...
Click to collapse
#drakonizer : Decompile your SystemUI.apk again and open {decompiled_SystemUI/res/layout/brightness_bar.xml} and remove this line from it and recompile and push in /system/app/ and done! -->
<com.akumarraheja.DataTrafik android:textSize="14.0sp" android:textStyle="bold" android:textColor="#ffffffff" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="1.0" />
Click to expand...
Click to collapse
#divyamg28 : its much better to press thanks than just saying anyways, thanks for your positive response.
Regards,
Akshay Kumar Raheja
©Darkjbrom | GT-S5302
Sent from my GT-S5302 using DARK JB ROM

It has no effect in my status bar...

Himan Boro said:
It has no effect in my status bar...
Click to expand...
Click to collapse
which phone do you have?

y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C

Himan Boro said:
y duos bro..i m jst getting confusd wer to put
Code:
<LinearLayout android:orientation="horizontal" android:background="#ff000000" android:l
<include layout="@layout/brightness_bar" />
</LinearLayout>
can u please mod this status bar..please... :-C
Click to expand...
Click to collapse
ok. i will do it for you.
Sent from my GT-S5302 using xda premium

Akshay Kumar Raheja said:
ok. i will do it for you.
Sent from my GT-S5302 using xda premium
Click to expand...
Click to collapse
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..

Himan Boro said:
Ok...Thanks A Lot »>_<« >_< Thanks Pressed...eagerly waiting for it..
Click to expand...
Click to collapse
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.

Akshay Kumar Raheja said:
here it is bro --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
btw if you find any problem, kindly send me the logcat.
Click to expand...
Click to collapse
Ok Bro..surely..n Thanx A Lot...

Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please

Himan Boro said:
Dont Know Why This Mod is not showing in my Moded Status bar.. m following it vry carefully n also recompiling succesfully without any error.. bt then also..its not working..
bro if u dnt mind mod my this status bar too please
Click to expand...
Click to collapse
ok. i'll do it in free time. btw the one i modded is working ? ryt?

nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?

Akshay Kumar Raheja said:
nd one more thing, that to which phone does these systemui.apks belongs(which u uploaded)?
Click to expand...
Click to collapse
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it

Himan Boro said:
Yap the one wich u provided works with charm n i was able to remove data traffic also
this two systemui belongs to y duos same phone .... first one is Stock n and second one is stock modded with AoKP icons..
i will b waiting for it
Click to expand...
Click to collapse
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk

Akshay Kumar Raheja said:
AOKP_SystemUI.apk --> https://www.dropbox.com/s/vioux9sayuuef1l/AOKP_SystemUI.apk
Stock SystemUI.apk --> https://www.dropbox.com/s/nuav4p836x71r7i/SystemUI.apk
Click to expand...
Click to collapse
Thanks But Its Giving FC...Have You Signed The Apk??

Himan Boro said:
Thanks But Its Giving FC...Have You Signed The Apk??
Click to expand...
Click to collapse
no. i kept original signatures. can you send me logcat of your device?

here is the log cat of Aokp systemui

Related

<REQ>[HOWTO] Change ICS App Switcher to Windows Phone 7 Style

http://forum.xda-developers.com/showthread.php?p=23744821
evilisto said:
WP7(Mango?) app switcher is like this :
{
"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"
}
and i made similar thing by modifying ics app switcher layout.
preview :
flashable mod is originally posted in nexus s theme forum.
[MOD] Change ICS App Switcher to Windows Phone 7 Style
this mod is related to framework-res.apk and SystemUI.apk so making universal version for any devices is difficult. so i write this simple guide for other rom / device users.
-----------------------------------------------------------------------------
* framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
Code:
<dimen name="thumbnail_height">305.0dip</dimen>
<dimen name="thumbnail_width">192.0dip</dimen>
these values are wvga devices only. if you have mdpi or xhdpi device, you have to adjust these values suitable to your screen size.
* SystemUI.apk
- /res/values/bools.xml
Code:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- /res/values/drawables.xml
Code:
<item type="drawable" name="status_bar_recents_background_solid">#ff33b1e1</item>
- /res/values/dimens.xml
Code:
<dimen name="status_bar_recents_thumbnail_width">192.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height">305.0dip</dimen>
- /res/layout-port/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" />
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
</FrameLayout>
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="100.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
- /res/layout-port/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background_solid" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
and you'd better to edit landscape layout too..
- /res/layout-land/status_bar_recent_item.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<ImageView android:id="@id/app_thumbnail_image" android:layout_width="115.0dip" android:layout_height="183.0dip" />
</FrameLayout>
<ImageView android:id="@id/app_icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
</RelativeLayout>
</FrameLayout>
- /res/layout-land/status_bar_recent_panel.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
</FrameLayout>
<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>
-----------------------------------------------------------------------------
Thanks to brucekey in rootzwiki
(this mod is based on his WEBAOKP mod.)
-----------------------------------------------------------------------------
Click to expand...
Click to collapse
Can someone port this to our device and CM9? a flashable zip would be nice if possible.
thanks
+1
10 chars
plus 99 , up and up. i love big thumbnail
+1
swipe to remove recent used programs is working?
Soon ics will be wp7
Sent from my GT-I9100 using xda premium
I made a thread for this a few weeks ago.. didn't have much interest
Sent from my GT-I9100 using xda premium
joshnichols189 said:
I made a thread for this a few weeks ago.. didn't have much interest
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Same here dint see much interest in this one either until now.. also if you look in the nexus forums they have chrome preview like app switcher too fully working, ill post links in a bit.
Will be great if someone can take a look and make a flashable zip.
please someone to help us/??
Hello guys..
I'm from the Note forums and I made these mods for our device..
The problem with it on the I9100 is that it depends on framework-res.apk and SystemUI.apk which vary greatly between different ROMs and the I9100 have way too many ROMs to make these mods for each one of them!!
I want to help you, but you understand that it will be hard to make it for so many ROMs let alone the frequent updates those ROMs get..
So may I ask what is the most popular ROM here? would it be CM9? I will try to port it for one ROM first and see how it goes..
Note: I do NOT have I9100 so you will be testing it if I made it..
Please post here framework-res.apk and SystemUI.apk for the wanted ROM (AOSP ICS only, no TouchWiz)
Hydrogenics (a CM9 derivative i think) is quite a popular ROM (pretty f*cking awesome if you ask me! haha) so you might want to try with the latest release 02.04 attached are the files you asked for. Good luck and thanks for doing this!
Ok here is a quick zip and I want someone who is running Hydrogen ICS to test it..
Note:
- I do NOT have I9100 so you're flashing this at your own risk (Backup First!)
- If you installed any mod after flashing hydrogen ROM you'll likely lose them (as most mods are in framework-res.apk and SystemUI.apk just like this one)
Mods:
- Windows Phone 7 switcher: Download Link
- Chrome Browser switcher: Download Link
- Restore zip: Download Link
Let mo know how it goes
EDIT: sorry forgot to credit el_liberator for the zip strucrure..
i will try to make a zip for cm9 as soon as i get my adb working on windows 8
I have tried that mod in CM9 and it doesn't work.I think most of the people using CM9,so I attached the CM9 framework and systemUI to u.Thank you bro.
bluefa1con said:
i will try to make a zip for cm9 as soon as i get my adb working on windows 8
Click to expand...
Click to collapse
If you're planing on using the framework-res.apk and SystemUI.apk I posted for hydrogen ROM I don't think they'll play nicely cause I bet there are framework and settings differences between the 2 ROMs..
What baffles is there is not a single feedback if it's working or not even though many downloaded it :/
EDIT: Just like expected, it won't work on CM9..I've been waiting for someone to confirm it works on hydrogen before I try other ROMs..
matius44 said:
If you're planing on using the framework-res.apk and SystemUI.apk I posted for hydrogen ROM I don't think they'll play nicely cause I bet there are framework and settings differences between the 2 ROMs..
What baffles is there is not a single feedback if it's working or not even though many downloaded it :/
EDIT: Just like expected, it won't work on CM9..I've been waiting for someone to confirm it works on hydrogen before I try other ROMs..
Click to expand...
Click to collapse
Wouldn't surprise me, if most of the downloaders are in fact CM9 users and are ashamed cause they didn't read the instructions well before finding out it doesn't work.
Sent from my GT-I9100 using xda premium
Draak22 said:
Wouldn't surprise me, if most of the downloaders are in fact CM9 users and are ashamed cause they didn't read the instructions well before finding out it doesn't work.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
Lol then CM9 users will wait till I get back home and mod for them
Sorry guys but can anyone upload me the framework-res.apk and SystemUI.apk from CM9 ROM?
For some I reason I don't know I can not download the ones kityan147 provided..
Thanks..
Here you. Let me know if you need anything else. I do have some mods installed though (Reloaded ICS & Blue Infinitum Theme). Don't know If that's a problem.
Edit: flashed back to stock CM9 and pulled the files so these should work.
Draak22 said:
Here you. Let me know if you need anything else. I do have some mods installed though (Reloaded ICS & Blue Infinitum Theme). Don't know If that's a problem.
Click to expand...
Click to collapse
Unfortunately that will cause some problems..They both have mods on framework and SystemUI so they will yield issues to those not using them, but thanks for the response
If it's not much to ask, please upload the stock ones, don't have very fast internet at the moment
Check post again. Flashed stock CM9 and reuploaded files.
Sent from my GT-I9100 using xda premium

[GUIDE] Customize Lockscreen

Applicable for all different mobiles almost all 2.3 and lower versions not tested with other have a try
Hi friends this is the tut to add your name within the lockscreen.... name just like its there on picture below
{
"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"
}
Many asked me how to do this or to change this... a very simple one every one can do it
Requirements
Click to expand...
Click to collapse
1. To run this environment u need to have java jdk installed here u can get them click here
2. Apktools ( click here for the apktools (works only for upgraded versions of cm7 and low graded phones only ) )
3. framework-res.apk ( at which you are going to mod ) u can find it on system/frameworks ( for noobs )
4. notepad++
5. Follow it strictly
So let us make our hands dirt with moding
Collect the apktools i given above extract them to any folder you needed
Place the framework-res.apk on the location where the tools are located
Now open cmd i given on tools
The first thing is to do is to decompile the framework-res.apk
Here is the code to extract
Code:
apktool d framework-res.apk
Now you will get a new folder named framework-res now move on to the folder res/layout
There on folder location u will get a files named keyguard_screen_tab_unlock open it using notepad++
There u will find some thing like this
Code:
<?xml version="1.0" encoding="utf-8"?>
<android.gesture.GestureOverlayView android:orientation="none" android:id="@id/gestures" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gestureStrokeType="multiple" android:eventsInterceptionEnabled="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:textColor="@color/white" android:id="@id/emergencyCallText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginTop="0.0dip" android:layout_marginRight="8.0dip" android:text="@string/emergency_calls_only" android:layout_below="@id/carrier" android:layout_alignParentRight="true" />
<com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="10.0dip" android:layout_marginRight="20.0dip" android:layout_below="@id/carrier">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
</com.android.internal.widget.DigitalClock>
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/time" />
<LinearLayout android:orientation="vertical" android:id="@id/status_box" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/date">
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="end" android:id="@id/status_charging" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:maxLines="2" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="end" android:id="@id/status_alarm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:maxLines="2" android:drawableLeft="@drawable/ic_lock_idle_alarm" android:drawablePadding="4.0dip" />
<TextView android:textAppearance="?textAppearanceMedium" android:ellipsize="end" android:id="@id/status_calendar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:maxLines="3" android:drawableLeft="@drawable/ic_lock_idle_calendar" android:drawablePadding="4.0dip" />
</LinearLayout>
<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status_box" />
<TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/customMsg" />
<ImageButton android:id="@id/albumArt" android:background="@color/transparent" android:padding="3.0px" android:visibility="gone" android:layout_width="125.0dip" android:layout_height="125.0dip" android:layout_marginTop="5.0dip" android:scaleType="fitCenter" android:adjustViewBounds="true" android:layout_above="@id/musicNowPlaying" android:layout_centerInParent="true" />
<com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="150.0dip" android:layout_alignParentBottom="true" />
<com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="60.0dip" android:layout_alignParentBottom="true" />
<com.android.internal.widget.RotarySelector android:orientation="horizontal" android:id="@id/rotary_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" />
<com.android.internal.widget.RingSelector android:orientation="horizontal" android:id="@id/ring_selector" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" />
<Button android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_alignParentBottom="true" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" />
<ImageButton android:id="@id/musicControlPlay" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:src="@drawable/ic_media_play" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPause" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:src="@drawable/ic_media_pause" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPrevious" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="20.0dip" android:layout_marginBottom="10.0dip" android:src="@drawable/ic_media_previous" android:layout_toLeftOf="@id/musicControlPause" android:layout_alignParentBottom="true" />
<ImageButton android:id="@id/musicControlNext" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginBottom="10.0dip" android:src="@drawable/ic_media_next" android:layout_toRightOf="@id/musicControlPause" android:layout_alignParentBottom="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:ellipsize="marquee" android:gravity="center" android:id="@id/musicNowPlaying" android:paddingTop="10.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:scrollHorizontally="true" android:singleLine="true" android:layout_above="@id/musicControlPause" android:layout_centerInParent="true" android:layout_alignWithParentIfMissing="true" android:marqueeRepeatLimit="marquee_forever" />
</RelativeLayout>
</android.gesture.GestureOverlayView>
so there you need to add this line at the bottom of the line and above </RelativeLayout>
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:text="ADD YOUR NAME" android:singleLine="true" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
Remove ADD YOUR NAME from above code line and add as your wish ( with in double colleen )
After applying the line, it looks some thing like this ( bottom line)
Code:
<Button android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="62.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_alignParentBottom="true" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" />
<ImageButton android:id="@id/musicControlPlay" android:background="@color/transparent" android:padding="5.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_media_play" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPause" android:background="@color/transparent" android:padding="5.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_media_pause" android:layout_alignParentBottom="true" android:layout_centerInParent="true" />
<ImageButton android:id="@id/musicControlPrevious" android:background="@color/transparent" android:padding="5.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="20.0dip" android:src="@drawable/ic_media_previous" android:layout_toLeftOf="@id/musicControlPause" android:layout_alignParentBottom="true" />
<ImageButton android:id="@id/musicControlNext" android:background="@color/transparent" android:padding="5.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:src="@drawable/ic_media_next" android:layout_toRightOf="@id/musicControlPause" android:layout_alignParentBottom="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:ellipsize="marquee" android:gravity="center" android:id="@id/musicNowPlaying" android:paddingTop="10.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lines="1" android:scrollHorizontally="true" android:singleLine="true" android:layout_above="@id/musicControlPause" android:layout_centerInParent="true" android:layout_alignWithParentIfMissing="true" android:marqueeRepeatLimit="marquee_forever" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:text="ADD YOUR NAME" android:singleLine="true" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
</android.gesture.GestureOverlayView>
Well your almost done the final thing u need compile the work u did so follow this command to recompile
Code:
apktool b framework-res
It should be compiled without errors ( if you got errors then you may done any mistake and you can report me i will try to solve )
So finally after completion you will get a new file named build ( on location of decoded folder ) there copy the file named resources.arsc (build/res) and the file edited (build/res/layout---- keyguard_screen_tab_unlock ) should be replaced to framework-res.apk like this
Now open the framework-res.apk using winzip or winrar and replace the keyguard_screen_tab_unlock and resources.arsc
So now you are finally done with build
The question is how to apply i can give a very small tut which is not long like this and it is very short
create a folder named system and with in system folder create new folder named framework and place your moded app there and download this click here
extract it and place near by system folder... now select the two folder ( meta-inf and system ) and make a zip file... now finished yahoo
copy to sd
get into recovery mod
select flash file ( before turn off toggle verification ) and reboot
NOTE: besure that the framework which you are going to apply should be same with the roms if not the fc will be with status bar
Enjoy and don't forget to say thanks
click here to mod xloud and bravia engine http://forum.xda-developers.com/showthread.php?p=31507289#post31507289
place holder 1
thanks for tutorial buddy
I like this tutorial
good tutorial buddy, thanks
ahirwar said:
thanks for tutorial buddy
I like this tutorial
Click to expand...
Click to collapse
reizeii27 said:
good tutorial buddy, thanks
Click to expand...
Click to collapse
with my pleasure and more tuts are going to be posted
have a play with your design
Great tutorial u made this task dam mm easy !!!!
Will surely try if I'll make any modded rom ! But plz capitalize title of thread
Sent from my LG-P500 using xda premium
rom2maru said:
Great tutorial u made this task dam mm easy !!!!
Will surely try if I'll make any modded rom ! But plz capitalize title of thread
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
done !
THNX bro.ur guide is very easy......i will surely tri this in my new MODED rom
yogesh1349 said:
THNX bro.ur guide is very easy......i will surely tri this in my new MODED rom
Click to expand...
Click to collapse
have a great fun buddy
venkat kamesh said:
done !
Click to expand...
Click to collapse
Capitalize C and L Too
rom2maru said:
Capitalize C and L Too
Click to expand...
Click to collapse
ok
Thanks for this guide, but what if I want to modify the time position? Make it a bit higher... Which file should I edit?
dbarrera said:
Thanks for this guide, but what if I want to modify the time position? Make it a bit higher... Which file should I edit?
Click to expand...
Click to collapse
on complition of exams i had dam more tuts that i can provide
EDIT: on 24th of this month is my last exam
venkat kamesh said:
on complition of exams i had dam more tuts that i can provide
Click to expand...
Click to collapse
When??
Sent from my GT-S6102 using xda premium
disable lockescreen
venkat kamesh said:
have a great fun buddy
Click to expand...
Click to collapse
how to disable cyanogen lockscreen when i used pattern lock??
sorry 4 my bad english..
thx
:good: thanks for sharing, it works.
veey good
Thanks kamesh!

[MOD][GUIDE][JB 4.1.2] AOSP Style Status Bar on Samsung ROMs

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

[GUIDE] AOKP like toggles [UPDATE]

Hey Guys, In this guide I am going to show you how to make the stock statusbar toggles look like AOKP toggles.
Preview:
{
"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"
}
Requirements:
SystemUI.apk from your ROM
Know how to decompile/recompile
If you want your toggles to be like how they are in the 1st preview then follow the 1st method
or
If you want your toggles to be like how they are in the 2nd preview then follow the 2nd method
Let's start
1. Decompile your SystemUI.apk
2. Go to res/layout/
Open quickpanel_quick_settings.xml
1st Method
3. Replace the whole code with this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip">
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_wifi_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_wifi_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_data_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_data_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_dc_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_bt_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_bluetooth_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_bluetooth_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_gps_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_gps_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_gps_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_rotation_off" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_rotation_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
<ImageView android:id="@id/quickpanel_sound_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_sound_on_on" android:scaleType="fitXY" />
<com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="13.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_silent_text" />
</FrameLayout>
<ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
</LinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
4. Go to res/drawable-ldpi and delete these files
Code:
quickpanel_icon_bluetooth_off
quickpanel_icon_bluetooth_on
quickpanel_icon_data_off
quickpanel_icon_data_on
quickpanel_icon_gps_off
quickpanel_icon_gps_on
quickpanel_icon_rotation_off
quickpanel_icon_rotation_on
quickpanel_icon_silent_off
quickpanel_icon_sound_on_on
quickpanel_icon_sound_vibration_on
quickpanel_icon_vibration_off
quickpanel_icon_wifi_off
quickpanel_icon_wifi_on
5. Download Sys_Resources.zip
Extarct it and copy all the files to res/drawable-ldpi
2nd method
3. Replace the whole code with this code
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_wifi_off" />
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_wifi_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_data_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_data_off" />
<com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_dc_text" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_bt_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_bluetooth_off" />
<com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_bluetooth_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_gps_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_gps_off" />
<com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_gps_text" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_rotation_off" />
<com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_rotation_text" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_sound_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_sound_on_on" />
<com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_silent_text" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
4. Go to res/drawable-ldpi and delete these files
Code:
quickpanel_icon_bluetooth_off
quickpanel_icon_bluetooth_on
quickpanel_icon_data_off
quickpanel_icon_data_on
quickpanel_icon_gps_off
quickpanel_icon_gps_on
quickpanel_icon_rotation_off
quickpanel_icon_rotation_on
quickpanel_icon_silent_off
quickpanel_icon_sound_on_on
quickpanel_icon_sound_vibration_on
quickpanel_icon_vibration_off
quickpanel_icon_wifi_off
quickpanel_icon_wifi_on
5. Download Sys_Resources1.zip
Extarct it and copy all the files to res/drawable-ldpi
6. Recompile your SystemUI.apk
Push it into system/app
Set proper permissions(rw-r--r--)
If you want to move the toggles then follow this guide by @mariozawa
Credits:
b16h22
Reseved 01
Reserved
Nice,i think its cooler when you make a all in one thread for all your guides so its easy to find one,thanx anyway.:thumbup:
MANY GREEEETZ!!!
-CALIBAN666- said:
Nice,i think its cooler when you make a all in one thread for all your guides so its easy to find one,thanx anyway.:thumbup:
MANY GREEEETZ!!!
Click to expand...
Click to collapse
Thanks for your suggestion but i have already done that, When you click 'MY WORKS' in my signature you will be redirected to a post where you can find all my apps, guides, icons, etc. with their links.
Looks like OP is on Fire ..Great work buddy ..
Good to see you on our team(GFX bandits)
Mr.Gentleman said:
Looks like OP is on Fire ..Great work buddy ..
Good to see you on our team(GFX bandits)
Click to expand...
Click to collapse
+1
Nice work M.S
This is what im looking for :victory:
Great Job Bro Please Can You B Able To Provide me Moded with Aokp status bar...i dnt knw recompiling-Decompiling
Himan Boro said:
Great Job Bro Please Can You B Able To Provide me Moded with Aokp status bar...i dnt knw recompiling-Decompiling
Click to expand...
Click to collapse
Sorry, I don't have the modded statusbar. Actually, I mod the statusbar only for the preview, after that I delete it.
Nice mod sir!!!!!!!!!!
Ok...Anybuddy Provide me that Please
Cool guide bro
Sent from my GT-S5360 using Tapatalk 2
OP Updated with 2 methods.. Check it out!
C00L :victory:
Thanks for the Guide !!
hi sir good day @MuSaddiq
i want to ask to you 2 question hope you didnt bored answerin it
first
i have two layout of statusbar (aosp statusbar by marcus) and i want to apply your aokp toogles to the first layout which includes notification (lets say first layout). how did i put it there and how did i know it is first layout or second layout
second
does this applicable to aosp too ?
TIA sir any help is appreciated :fingers-crossed::highfive:
Mranggapo said:
hi sir good day @MuSaddiq
i want to ask to you 2 question hope you didnt bored answerin it
first
i have two layout of statusbar (aosp statusbar by marcus) and i want to apply your aokp toogles to the first layout which includes notification (lets say first layout). how did i put it there and how did i know it is first layout or second layout
second
does this applicable to aosp too ?
TIA sir any help is appreciated :fingers-crossed::highfive:
Click to expand...
Click to collapse
Yes, it will work on AOSP too but its little complicated. Can u give me your SystemUI ?
MuSaddiq said:
Yes, it will work on AOSP too but its little complicated. Can u give me your SystemUI ?
Click to expand...
Click to collapse
Im sorry sir, but can you check marcussmith thread in themes section, im attaching my modded apk in there
Its already modded by me, i hope you can correct it . Sorry because im on tablet and my data is in computer
Mranggapo said:
Im sorry sir, but can you check marcussmith thread in themes section, im attaching my modded apk in there
Its already modded by me, i hope you can correct it . Sorry because im on tablet and my data is in computer
Click to expand...
Click to collapse
It's ok, I will use the SystemUI from marcus's thread
MuSaddiq said:
It's ok, I will use the SystemUI from marcus's thread
Click to expand...
Click to collapse
Sorry to disturb you, but if you dont mid. I have modded sir marcus systemui, you can check it rather than creating ones. Ive spent two hours -_-
Appreciate
sent from terminal emulator

[GUIDE]Floating SystemUI

Good day XDA and who are here in this thread. I brought to you a guide. As the thread title says, it is floating systemui. Yes you read it right its a floating systemui but its kinda different from the guide made by our recognized themer petruk.grinder. Since his floating systemui uses a drawable as the floating mine was uses the layout itself, we will play with it
Since I had experience in sir petruk.grinder's guide, the lidroid and some other stuffs are not properly align and some are kinda cropped and sure I'll share it here what's in my treasure box.
Screenshot:
{
"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"
}
Disclaimer: Back up first You know what to do
What we will be needing in this modification
Notepad++
Apktool
SystemUI.apk (statusbar_expanded and statusbar_tracking)
Brain.apk
Determination
Steps:
1. Decompile the SystemUI.
2. Now go to res/layout/status_bar_expanded.xml
3. Add the coded line below after xmlns:android="http://schemas.android.com/apk/res/android">
Code:
<LinearLayout android:background="#00000000" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" [COLOR="Red"]android:paddingLeft="30dip" android:paddingTop="15dip" android:paddingBottom="20dip" android:paddingRight="15dip"[/COLOR]>
<LinearLayout android:background="#ff8e979f" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical">
4. And add the coded line below before </com.android.systemui.statusbar.ExpandedView>
Code:
</LinearLayout>
</LinearLayout>
It will be like this for example (BTW this is my SystemUI)
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"] <LinearLayout android:background="#00000000" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical" android:paddingLeft="30dip" android:paddingTop="15dip" android:paddingBottom="20dip" android:paddingRight="15dip">
<LinearLayout android:background="#ff8e979f" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical">[/COLOR]
<RelativeLayout android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="50.0dip">
<ppl.SystemUI.Header android:layout_width="wrap_content" android:layout_height="fill_parent" />
<ppl.SystemUI.SettingsButton android:paddingTop="6.0dip" android:paddingBottom="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_settings" android:layout_alignParentRight="true" />
</RelativeLayout>
<ppl.SystemUI.toggles.PowerWidget android:background="@drawable/quickpanel_plmn_background" android:layout_width="fill_parent" android:layout_height="75.0dip" />
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_no_notifications_title" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="@drawable/quickpanel_title_background" android:paddingLeft="5.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<Button android:textSize="13.0sp" android:gravity="center" android:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginBottom="3.0dip" android:text="@string/status_bar_clear_all_button" style="?android:attr/buttonStyleSmall" />
</LinearLayout>
</ScrollView>
</com.android.systemui.statusbar.NotificationLinearLayout>
</FrameLayout>
</LinearLayout>
[COLOR="Red"]</LinearLayout>
</LinearLayout>[/COLOR]
</com.android.systemui.statusbar.ExpandedView>
5. Lets move on to your status_bar_tracking.xml
Now make the View background into transparent, like this
Code:
<View android:background="#[COLOR="Red"]00000000[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
6. Then below
Code:
<com.android.systemui.statusbar.CloseDragHandle .....
You can see an imageview, delete the "android:src" and adjust the "android:layout_height" to digit.dip, mine was I used "15dip"
My status_bar_tracking.xml is something like this if you want to compare
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.TrackingView android:orientation="vertical" android:paddingLeft="0.0px" android:paddingRight="0.0px" android:paddingBottom="0.0px" android:focusable="true" android:visibility="gone" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"]<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />[/COLOR]
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="Red"]<ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="15dip" android:scaleType="fitXY" />[/COLOR]
</com.android.systemui.statusbar.CloseDragHandle>
</com.android.systemui.statusbar.TrackingView>
7. Save the status_bar_expanded.xml and status_bar_tracking.xml
8. Compile your SystemUI
9. Flash/Push
10. And never forget to smile, and make your day happy.
Some tips:
You can adjust the padding depend on your likings.
If you are having a problem expanding the notification/expanded, you can try to check my own status_bar_expanded, I have no problem there
Click to expand...
Click to collapse
Bugs:
404 Bug not found
Click to expand...
Click to collapse
Credits:
developers.android.com
Experience
Click to expand...
Click to collapse
Greets,
PineappleOwl​
Reserved for some cokefloats
nice idea by the way :good:
i think i'll make a new mod based on this
AuliaYF said:
nice idea by the way :good:
i think i'll make a new mod based on this
Click to expand...
Click to collapse
The changeable one. Looking forward for that Hehe
PineappleOwl said:
The changeable one. Looking forward for that Hehe
Click to expand...
Click to collapse
yeah, im working on it
Can I change the background of status bar expanded to transparent?
jasper~ said:
Can I change the background of status bar expanded to transparent?
Click to expand...
Click to collapse
Yea you can
PineappleOwl said:
Yea you can
Click to expand...
Click to collapse
By replacing the image to transparent? Or another way?
Great guide sir
Anyways congrats on getting that RT badge! :good:
jasper~ said:
By replacing the image to transparent? Or another way?
Click to expand...
Click to collapse
change background to this
Code:
android:background="#00000000"
AuliaYF said:
change background to this
Code:
android:background="#00000000"
Click to expand...
Click to collapse
Man, you should try to make a color changer too. Hahaha
PineappleOwl said:
Man, you should try to make a color changer too. Hahaha
Click to expand...
Click to collapse
should i? why not you man?
AuliaYF said:
should i? why not you man?
Click to expand...
Click to collapse
Kinda busy this time sir Hehehe
PineappleOwl said:
Kinda busy this time sir Hehehe
Click to expand...
Click to collapse
i think i'm gonna put this on my SystemUI and make a thread for it. :laugh:

Categories

Resources