Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[GUIDE][TW][4.1] Floating SystemUI

$
0
0
Hi guys,
today with the permission of sir @PineappleOwl I'm going to show you how to float the SystemUI on JB 4.1 TW ROMs by he's floating SystemUI guide.... this is a very easy process but I'll be here if you get problems







Requirements:
1. Brain
2. Patience
3. Experience (little bit)
4. apktool or anything like it











This guide is divided into 2 parts

1. How to float the whole expanded panel
2. How to set different floatings for main expanded panel and the close-drag-handle




How to float the whole expanded panel:

1. Decompile your SystemUI.apk

2. Go to res/layout/tw_status_bar_expanded.xml(if you're device is single sim)/tw_status_bar_expanded_dual.xml(if you're device is dual sim)

3. Go to line no. 2 which is:

Code:

<FrameLayout android:id="@id/notification_panel" android:background="@drawable/notification_panel_bg" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
4. Now delete this from it:

Code:

android:paddingTop="@dimen/notification_panel_padding_top"
5. Now add these at the end of the line:

Code:

android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:paddingRight="0.0dip"
now you have to set the paddings here according to your needs...... I assume you know what android:padding do



How to set different floating for main expanded panel and close-drag-handle:

1. Decompile your SystemUI

2. Go to res/layout/tw_status_bar_expanded.xml(if you're device is single sim)/tw_status_bar_expanded_dual.xml(if you're device is dual sim)

3. Now for main expanded panel go to line no. 5 which is:

Code:

<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/tw_close_handle_underlap">
now add these to it:

Code:

android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:paddingRight="0.0dip"
now for close-drag-handle find this:

Code:

<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="@dimen/tw_close_handle_height">
again add these before:

Code:

android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingBottom="0.0dip" android:paddingRight="0.0dip"
4. Now set the paddings like you want them to be

5. Recompile, sign, push, reboot and enjoy !










Credits:
@PineappleOwl

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>