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

[MOD][GUIDE][TW][4.1] Xperia Z2 styled Tabbed statusbar for TW 4.1 devices

$
0
0
Hi guys,
today with the permission of sir @SpaceCaker 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/values/ids.xml and add these lines

code:

<item type="id" name="spomc_xperia_tabs">false</item>
<item type="id" name="spomc_xperia_tabbuttons">false</item>

3. Now 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)

4. now find this

code:

<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

code:

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

5. Now find this

code:

<com.android.systemui.statusbar.phone.CloseDragHan dle 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

code:

</com.spacey.xperiatabs.TabBase>

How to make tabs:

1. Each tab here is wrapped between <LinearLayout-</LinearLayout>

2. Noticed this above there

code:

<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

code:

<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 the <LinearLayout-</LinearLayout> so after all that your xml should looks like this

code:

<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.CloseDragHan dle...................
</com.android.systemui.statusbar.phone.CloseDragHand le>
</FrameLayout>

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

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














Link:
https://db.tt/n3N2isDw











Credits:
@SpaceCaker for making this awesome mod

Viewing all articles
Browse latest Browse all 4090

Trending Articles



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