[Android Themes] xenreon:
Hi guys,

today with the permission of sir [MENTION=3862405]SpaceCaker[/MENTION] I'm presenting a modified guide of xperia z2 style Tabbed status bar for TW JB 4.1 devices........ so let's start and it's 100% sure that I'm only the sharer

Requirements :

1. Brain

2. Patience

3. Experience

4. Apktool or anything like it

How to add :

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. Now find this :

<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />

if you're device is dual sim

or :

<include android:layout_width="fill_parent" android:layout_height="@dimen/tw_notification_panel_header_height" layout="@layout/tw_status_bar_expanded_header" />
<TextView android:gravity="center" android:id="@id/emergency_calls_only" android:paddingBottom="4.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" android:layout_marginTop="@dimen/tw_notification_panel_header_height" />

if you're device is single sim

put this below it :

<com.spacey.xperiatabs.TabButtons android:gravity="center" android:layout_gravity="bottom" android:orientation="horizontal" android:id="@+id/spomc_xperia_tabbuttons" android:background="#aa000000" android:layout_width="fill_parent" android:layout_height="42.0dip" android:layout_marginTop="40.0dip" />
<com.spacey.xperiatabs.TabBase android:id="@+id/spomc_xperia_tabs" android:background="#aa000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="40.0dip" android:layout_weight="0.8" android:layout_below="@id/spomc_xperia_tabbuttons">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textColor="#ffffffff"
android:gravity="center"
android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="TAB-1 Notifications"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</LinearLayout>

4. Now find this :

<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">

there will be a

</FrameLayout>

above it, put this above that:

</com.spacey.xperiatabs.TabBase>

How to make tabs :

1. Each tab here is wrapped between a

<LinearLayout----------</LinearLayout>

2. Noticed this above :

<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textColor="#ffffffff"
android:gravity="center"
android:paddingBottom="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="TAB-1 Notifications"
android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" />
</LinearLayout>

this is the first tab that is

"Notifications"

you need to add 2 this

<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
</LinearLayout>

.....the first one will be

"Notifications"

and the second one will be

"Quick Settings"

...... so you need to put everything that you want on the tabs inside of the 1st/2nd (depends on what you wanna add on which tab) the

<LinearLayout----------</LinearLayout>

and after all this your xml should look like this

<FrameLayout
.........................
<FrameLayout
.........................
<com.spacey.xperiatabs.TabButtons android:gravity="center" android:layout_gravity="top" android:orientation="horizontal" android:id="@id/spomc_xperia_tabbuttons" android:background="#aa000000" android:layout_width="fill_parent" android:layout_height="42.0dip" android:layout_marginTop="40.0dip" />
<com.spacey.xperiatabs.TabBase android:id="@id/spomc_xperia_tabs" android:background="#aa000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="40.0dip" android:layout_weight="0.8" android:layout_below="@id/spomc_xperia_tabbuttons">
<LinearLayout
<CONTENTS YOU'LL PUT ON THE FIRST TAB Notifications>
</LinearLayout>
<LinearLayout
<CONTENTS YOU'LL PUT ON THE SECOND TAB Quick Settings>
</LinearLayout>
</com.spacey.xperiatabs.TabBase>
</FrameLayout>
<com.android.systemui.statusbar.phone.CloseDragHandle...................
</com.android.systemui.statusbar.phone.CloseDragHandle>
</FrameLayout>

3. Now extract and attach the contents of TabContent.zip to your SystemUI.apk

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

Link :

TabContent

Credits :

[MENTION=3862405]SpaceCaker[/MENTION] for making this awesome mod​