[GUIDE]Tab SystemUI

Search This thread

NgamTeroxx

Member
Nov 25, 2013
25
0
Perak
like this sir?@Pineappleowl

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:eek:rientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.pineapple.TabUI.TabButton android:layout_gravity="top" android:eek:rientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="140.0dip" android:layout_height="42.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
<com.pineapple.TabUI.TabsContent android:id="@id/flipper" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:eek:rientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:eek:verScrollMode="ifContentScrolls">
<com.android.systemui.statusbar.NotificationLinearLayout android:eek:rientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<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: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:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:eek:rientation="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:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:eek:rientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<Button android:textSize="13.0sp" android:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="Clear" android:layout_alignTop="@id/dateview" android:layout_alignParentRight="true" style="?android:attr/buttonStyleSmall" />
</com.android.systemui.statusbar.NotificationLinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</LinearLayout>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:eek:verScrollMode="never">
<include layout="@layout/expanded_content3" />
</ScrollView>
<ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:eek:verScrollMode="never">
<include layout="@layout/expanded_content3" />
</ScrollView>
</com.pineapple.TabUI.TabsContent>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</com.android.systemui.statusbar.ExpandedView>
 

zhalx

Senior Member
Nov 10, 2012
298
454
Visit Indonesia
bit.ly
Thanx sir, works on my Fire XT.
 

Attachments

  • 1506200_593589914054405_1756091050_o.jpg
    1506200_593589914054405_1756091050_o.jpg
    72.7 KB · Views: 364
  • Like
Reactions: dugeriss

markmellarpes

Senior Member
Aug 2, 2012
906
524
Taguig
ive try to edid xml. and it success installed on my phone. but some error, in statusbar it showing incoming notif, but in sttusbar expanded is not showing. maybe you can see my expanded.xml, please tell me where is the errono. :D

sorry bad english

https://www.dropbox.com/s/qswslfyvouxq24f/status_bar_expanded.xml

Replace your first layout to this
<com.android.systemui.statusbar.NotificationLinearLayout android:eek:rientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<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: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:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_ongoing_events_title" />
<LinearLayout android:eek:rientation="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:layout_width="fill_parent" android:layout_height="26.0dip" android:text="@string/status_bar_latest_events_title" />
<LinearLayout android:eek:rientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.NotificationLinearLayout>
 
  • Like
Reactions: PineappleOwl

Himan Boro

Senior Member
Jul 31, 2013
540
68
26
Guwahati
Bro..Your given guide and The SystemUI U provided xml codes are totally different...and in third layout whi is it always written THIRD LAYOUT
..How to remove tht.
Sir,,... Can u Give exact guide of the SystemUI tht u hav provided..coz i wana try in my y duos UI >_<
 

PineappleOwl

Senior Member
Mar 22, 2013
525
968
Sir, if i had 2 layout and want to add 3 more layout tab like your tutor (so i have 5 tab) , what must i do ?

I did was add another line in smali even it nearly duplicates, then the other smali too

Or you can duplicate the smali and rename it sir to be more six and it should be fine for now :eek:

Sent from my Nexus 7 using Tapatalk
 
  • Like
Reactions: GSculerlor

fs71gh

Senior Member
Tried till step 6 and could not understand step 7. Then tried to recompile. Here is the error:

Recompiling "SystemUI.HyperionBrgtns+FullScrnLikeGB.apk" With Original Signature,
using "apktool_2.0.0b7.jar"

With Tickle My Android
(tinyurl.com\ticklemyandroid)

----------------

..\_working\SystemUI.HyperionBrgtns+FullScrnLikeGB.apk\smali\com\pineapple\TabUI\TabButton
$1.smali[29,4] Error for input '.parameter': Invalid directive
..\_working\SystemUI.HyperionBrgtns+FullScrnLikeGB.apk\smali\com\pineapple\TabUI\TabButton
$1.smali[30,4] Error for input '.parameter': Invalid directive
..\_working\SystemUI.HyperionBrgtns+FullScrnLikeGB.apk\smali\com\pineapple\TabUI\TabButton
$1.smali[47,4] Error for input '.parameter': Invalid directive
..\_working\SystemUI.HyperionBrgtns+FullScrnLikeGB.apk\smali\com\pineapple\TabUI\TabButton
$1.smali[47,15] mismatched input '"view"' expecting END_METHOD_DIRECTIVE
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/pine
apple/TabUI/TabButton$1.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:72)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
at brut.androlib.Androlib.buildSources(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:233)
at brut.apktool.Main.main(Main.java:88)

----------------

Recompile Not Successful!

Press any key to continue . . .

I want to add the tabs at right side of the settings button in Hyperion statusbar. Original is attached
 

Attachments

  • SystemUI.Brgtns+FullScrnLikeGB.apk
    390.8 KB · Views: 25

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    Good day devs, I have something new here not new but I think it is. :D

    What we will be doing is somehow like this, the picture at the left is my modified UI, and the right picture will be our outcome.

    941806_601159553278742_1777791751_n.jpg


    As I was inspired by Sir serajr@xda's SystemUI, I want to make it tab also, as I cant decompile his UI and study the code, I thought about Sir b16h22 for his Multipanelflipper, but it was text so I made it on my own class and follow some trick from evox-4 x SystemUI by the use of custom views and sorta intents like what he did. Let we mod again. :D

    Disclaimer: I and XDA are not responsible for the damage of your phone. Take necessary backup if you are indoubt. Thanks.

    What we will be needed:
    Patience
    APK-Tool
    Algorithm
    Basic smali and xml
    Your very own SystemUI
    Know how to decompile APK

    Instruction:
    1. Download the zip file from the download link.
    2. Decompile your very own SystemUI.
    3. Extract the download link and paste it in your UI.
    4. At the ids, add these before </resources> at ids.xml under values folder
    Code:
    <item type="id" name="tabbutton">false</item>
    5. Now we will modify your expanded,
    Below this code,
    Code:
    <com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
      xmlns:android="http://schemas.android.com/apk/res/android">
    Add this,
    Code:
    <com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="40.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
        <com.pineapple.TabUI.TabsContent android:id="@id/tabbutton" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
    6. And before this line
    Code:
    </com.android.systemui.statusbar.ExpandedView>
    Add this,
    Code:
    </com.pineapple.TabUI.TabsContent>
    7. Now this is the tricky part, as I am not familiar with the particular name of this (LinearLayout, RelativeLayout FrameLayout) ehh, you understand me what I am saying right sir?
    Make the Expanded something like this,

    Code:
    <com.pineapple.TabUI.TabButton........../>
    <com.pineapple.TabUI.TabButton...........>
    <LinearLayout>First Layout</LinearLayout>
    <LinearLayout>Second Layout</LinearLayout>
    <LinearLayout>Third Layout</LinearLayout>
    </com.pineapple.TabUI.TabsContent>
    If you cant follow sirs, kindly compare it with my stock. :)
    Code:
      <com.pineapple.TabUI.TabButton android:layout_gravity="top" android:orientation="horizontal" android:background="#00000000" android:paddingTop="5.0dip" android:layout_width="140.0dip" android:layout_height="42.0dip" android:weightSum="3.0" android:layout_alignParentLeft="false" android:layout_alignParentRight="true" />
        <com.pineapple.TabUI.TabsContent android:id="@id/flipper" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                    <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
                        <com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">
                            <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: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: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: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:layout_gravity="center" android:id="@id/clear_all_button" android:layout_width="85.0dip" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:layout_marginRight="6.0dip" android:layout_marginBottom="3.0dip" android:text="Clear" android:layout_alignTop="@id/dateview" android:layout_alignParentRight="true" style="?android:attr/buttonStyleSmall" />
                        </com.android.systemui.statusbar.NotificationLinearLayout>
                    </ScrollView>
                    <ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
                </FrameLayout>
            </LinearLayout>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
                <include layout="@layout/expanded_content3" /> [B]<!-- SecondLayout -->[/B]
            </ScrollView>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
                <include layout="@layout/expanded_content3" /> [B]<!-- ThirdLayout -->[/B]
            </ScrollView>
        </com.pineapple.TabUI.TabsContent>
    8. Save it, and recompile.
    9. Decompile the APK again (We only did these because we register the added resources)
    10. Go to public.xml and find these (the ids are bit different than yours,)
    Code:
    <public type="drawable" name="tab1" id="0x7f02009c" />
        <public type="drawable" name="tab2" id="0x7f02009d" />
        <public type="drawable" name="tab3" id="0x7f02009e" />
        <public type="id" name="tabbutton" id="0x7f090029" />
    11. Now here comes the smali part, Now go to smali/com/pineapple/TabUI/*
    Find this smali file, TabsContent.smali
    at the TabsContent.smali, find this

    0x7f050001 and change it to the public id of your "<public type="id" name="tabbutton" id="0x7f090029" />" So in mine I will change 0x7f050001 to 0x7f090029

    12. Open the smali file, TabButtons.smali and find this ids.

    0x7f020001 and change it according to the ids of tab1, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020001 to 0x7f02009c
    0x7f020002 and change it according to the ids of tab2, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020002 to 0x7f02009d
    0x7f020003 and change it according to the ids of tab3, in my UI, the registered id of tab1 is 0x7f02009d so therefore, I will change 0x7f020003 to 0x7f02009e

    13. Save everything and compile your SystemUI and push or flash it, I recommend flashing. :)

    Download Link:
    PINEAPPLEOWL

    Note/Ads: Lenox V2.1 have this kind of UI. :D

    Credits:
    b16h22 for some comparison with his very own MultiPanelSwitcher
    serajr for inspire for his awesome UI
    LenoxDevs for there support
    android.developers.com
    3
    Grow up child i was askingfor just an apk...for the sake of android dont just put guides if u cant share the apk..
    And u r telling to me download whole rom for a mere apk..grow up

    You grow up sir. He post a guide so anyone can make it. You're lazy.
    3
    Grow up child i was askingfor just an apk...for the sake of android dont just put guides if u cant share the apk..
    And u r telling to me download whole rom for a mere apk..grow up

    Oh sorry sir. Thats rude. You can ask in a better and respectful manner sir, here it is, sorry again. :)

    https://db.tt/mWYO1Mni

    Sent from my GT-S5360 using Tapatalk 2
    2
    Lets say I was succesful in porting it on my Desire X. But how to handle the tabs?? as in, when I click the tabs how do I put something inside them? Should there be new xml files to handle it?
    2
    is this work on odex s6102 ?