[Galaxy Y GT-S5360 General] 73R3WY:
This mod will provide ten (10) Tabs which supports ten layouts to your SystemUI.

Note: Smali files were decompiled using apktool_2.0.0b9, so pls use the same apktool version in decompiling and recompiling your SystemUI.apk

Steps:

1. Decompile your SystemUI.apk

2. Download the attachment (it contains the needed drawables and smali files).

3. Extract the zip file to your decompiled SystemUI.apk folder (/SystemUI.apk/here).

4. Open your ids.xml (/SystemUI.apk/res/values/ids.xml) then add this code before </resources>

<item type="id" name="tentabs">false</item>

5. Open your status_bar_expanded.xml (/SystemUI.apk/res/layout/status_bar_expanded.xml) then add this code after

xmlns:android="http://schemas.android.com/apk/res/android">

OR anywhere in your status_bar_expanded layout, its up to you to layout it as long as it looks like this:

xmlns:android="http://schemas.android.com/apk/res/android">
<com.jeremypacabis.statusbarmods.TenTabsViewChanger android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<com.jeremypacabis.statusbarmods.TenTabs android:id="@id/tentabs" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="First Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Second Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Third Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fourth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Fifth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Sixth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Seventh Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Eight Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Ninth Layout" />
<TextView android:textSize="16.0sp" android:gravity="center" android:layout_gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="Tenth Layout" />
</com.jeremypacabis.statusbarmods.TenTabs>

Note: Every TextView in my example code represents a layout so its up to you to change it, AS LONG AS THE

com.jeremypacabis.statusbarmods.TenTabs has EXACTLY ten (10) child layouts within it. You can change a TextView into:

<ScrollView android:layout_width="fill_parent" android:layout_height="wrap_content" >
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" >
// YOUR CONTENTS FOR A LAYOUT HERE
</LinearLayout>
</ScrollView>

The above code is considered as ONE CHILD VIEW or LAYOUT.

6. Recompile your SystemUI.apk

7. Decompile your new SystemUI.apk into a new location.

8. Now we will work with the SMALI part of the newly decompiled SystemUI.apk

Now for the SMALI part:

1. After decompiling the new SystemUI.apk take note of these codes from your public.xml (/SystemUI.apk/res/values/public.xml):

<public type="id" name="tentabs" id="0x7f0a003a" />
<public type="drawable" name="zzz_tab_1" id="0x7f020162" />
<public type="drawable" name="zzz_tab_10" id="0x7f020163" />
<public type="drawable" name="zzz_tab_2" id="0x7f020164" />
<public type="drawable" name="zzz_tab_3" id="0x7f020165" />
<public type="drawable" name="zzz_tab_4" id="0x7f020166" />
<public type="drawable" name="zzz_tab_5" id="0x7f020167" />
<public type="drawable" name="zzz_tab_6" id="0x7f020168" />
<public type="drawable" name="zzz_tab_7" id="0x7f020169" />
<public type="drawable" name="zzz_tab_8" id="0x7f02016a" />
<public type="drawable" name="zzz_tab_9" id="0x7f02016b" />

Note: These were the public ids I got from decompiling my new SystemUI.apk after adding the drawables and the "tentabs" id. These public ids MAY BE DIFFERENT from what you will get after decompiling your own SystemUI.apk.

2. Now open TenTabs.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabs.smali and look for

const v10, 0x7f060005	# Replace 0x7f060005 with your public.xml tentabs public id

As what the comment says, replace 0x7f060005 with your tentabs public id, which in my case from the example above is 0x7f0a003a. So it will now become:

const v10, 0x7f0a003a	# Replace 0x7f060005 with your public.xml tentabs public id

Note: Your tentabs id might be different, it is still ok and just replace it with yours, and in a SMALI, everything in a line followed by a hashtag or number sign symbol # is just a comment, so you can just ignore it.

3. Save your edited TenTabs.smali

4. Open TenTabsViewChanger.smali from /SystemUI.apk/smali/com/jeremypacabis/statusbarmods/TenTabsViewChanger.smali and just search for my comments for the id of the drawables for the tabs and replace it as what the comment says.

const v1, 0x7f020001	# your tab 1 drawable id here
const v1, 0x7f020003	# your tab 2 drawable id here
const v1, 0x7f020004	# your tab 3 drawable id here
const v1, 0x7f020005	# your tab 4 drawable id here
const v1, 0x7f020006	# your tab 5 drawable id here
const v1, 0x7f020007	# your tab 6 drawable id here
const v1, 0x7f020008	# your tab 7 drawable id here
const v1, 0x7f020009	# your tab 8 drawable id here
const v1, 0x7f02000a	# your tab 9 drawable id here
const v1, 0x7f020002	# your tab 10 drawable id here

Note: tab 1 drawable id corresponds to 0x7f020162 from <public type="drawable" name="zzz_tab_1" id="0x7f020162" />, tab 2 drawable id corresponds to 0x7f020164 from <public type="drawable" name="zzz_tab_2" id="0x7f020164" /> and so on and so forth. So your new code from my example public ids from above is:

const v1, 0x7f020162	# your tab 1 drawable id here
const v1, 0x7f020164	# your tab 2 drawable id here
const v1, 0x7f020165	# your tab 3 drawable id here
const v1, 0x7f020166	# your tab 4 drawable id here
const v1, 0x7f020167	# your tab 5 drawable id here
const v1, 0x7f020168	# your tab 6 drawable id here
const v1, 0x7f020169	# your tab 7 drawable id here
const v1, 0x7f02016a	# your tab 8 drawable id here
const v1, 0x7f02016b	# your tab 9 drawable id here
const v1, 0x7f020163	# your tab 10 drawable id here

5. Now save your edited smali, or review and double check the numbers, If you are confident enough then you may proceed.

6. Recompile your SystemUI.apk

7. Push or Flash your SystemUI.apk and see if your mod works.

Credits:

I used the Black Andy Head With 1% White Text by unknown battery icons for the tab example drawable from TickleMyAndroid user_files.

Screenshots:

View attachment 2884923View attachment 2884924View attachment 2884925

Needed files:

View attachment 2884926 v0.1

Source Codes?

You want to play with the code? Add functions? Explore and Learn? Copy method snippets? You can check it at my GitHub.:good::

Suggestions? Comments? Bugs (I hope none)?

Just post a reply here and I will try to attend to it. (The word "try" always has a "catch" Exception, iykwim.)