Thursday

Beberapa Tabbed SystemUI

1. 2 Parent Layout by san122

Link Asal = http://forum.xda-developers.com/showthread.php?t=2629747

Screenshot




  • Download bahannya http://forum.xda-developers.com/attachment.php?attachmentid=2548182&d=1391067121 
  • Extract lalu merge ke dalam folder SystemUI


Langkah-langkah
  • Buka status_bar_expanded_header.xml
  • copy line ini di atas baris <Space ........./> lalu save
        <com.panel.Button android:id="@+id/new_btn" android:layout_width="46.0dip" android:layout_height="50.0dip" android:scaleType="center" />

  • Buka gemini_status_bar_expanded.xml
  • Copas ini 
        <com.panel.Panel android:id="@+id/new_panel" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
                #tempatkan parent notification dan quickpanel disini
            </FrameLayout>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
                #tempatkan parent layout baru apapun disini
            </ScrollView>
        </com.panel.Panel>

  • Contoh di JB 4.2.*
        <com.panel.Panel android:id="@+id/new_panel" android:layout_width="fill_parent" android:layout_height="wrap_content">            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
                <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.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
                </ScrollView>
            </FrameLayout>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
                <include layout="@layout/new_layout_tab" />
            </ScrollView>
        </com.panel.Panel>


  • Buat 1 file xml baru dengan nama new_layout_tab.xml lalu isi dengan ini
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <TextView android:text="ini adalah Layout baru" android:textSize="28.0dip" />
</LinearLayout>


  • Save, Recompile lalu Decompile lagi
  • Masuk folder res/values
  • buka public.xml
  • masuk folder smali/com/panel
  • buka Panel.smali 
  • cari 0x7f09004d lalu replace dengan no id new_panel sesuai public.xml 
  • buka Button.smali 
  • cari 0x7f09004e lalu replace dengan no id new_btn sesuai public.xml
  • cari 0x7f020190 lalu replace dengan no id drawable btn sesuai public.xml
     
  • Save, Recompile, Sign, Push, Reboot




2. 3 Parent Layout by PineappleOwl

Link asal = http://forum.xda-developers.com/showthread.php?p=47109611

Screenshot =



  • Download bahannya https://www.dropbox.com/s/uz46qtosrzr42i9/TabSystemUI.zip
  • Extract lalu merge ke dalam folder SystemUI

Langkah-langkah
  • Buka status_bar_expanded_header.xml
  • copy line ini di atas baris <Space ........./> lalu save

        <com.pineapple.TabUI.TabButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:weightSum="3.0" />

  • Buka gemini_status_bar_expanded.xml
  • copas ini
    <com.pineapple.TabUI.TabsContent android:id="@+id/tabbuton" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
                # Tempatkan Parent layout Notification dan Quickpanel disini
        </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_content2" /> <!-- Layout Kedua -->
        </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" /> <!-- Layout Ketiga -->
        </ScrollView>
    </com.pineapple.TabUI.TabsContent>


  • Contoh di JB 4.2.*
    <com.pineapple.TabUI.TabsContent android:id="@+id/tabbuton" android:layout_width="fill_parent" android:layout_height="wrap_content">            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
                <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.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_row_min_height" />
                </ScrollView>
            </FrameLayout>
        <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
            <include layout="@layout/expanded_content2" /> <!-- Layout Kedua -->
        </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" /> <!-- Layout Ketiga -->
        </ScrollView>
    </com.pineapple.TabUI.TabsContent>
 

  • Save, Recompile lalu Decompile lagi
  • Masuk folder res/values
  • buka public.xml
  • masuk folder smali/com/pineapple/TabUI/*
  • buka TabsContent.smali
  • cari 0x7f050001 lalu replace dengan no id tabbutton sesuai public.xml 
  • buka TabButtons.smali
  • cari 0x7f020001 lalu replace dengan no id drawable tab1 sesuai public.xml
  • cari 0x7f020002 lalu replace dengan no id drawable tab2 sesuai public.xml
  • cari 0x7f020003 lalu replace dengan no id drawable tab3 sesuai public.xml 
  • Save, Recompile, Sign, Push, Reboot




3. 2 Parent Layout by dcsms

Screenshot



  • Download bahannya http://www.mediafire.com/download/2gmguw1euiofhev/dcsmsSystemUI.zip
  • Extract lalu merge ke dalam folder SystemUI

Langkah-langkah
  • Buka gemini_status_bar_expanded.xml
  • copas ini
        <in.jmkl.dcsms.statusbargreper.NotificationLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">            

                   # Tempatkan Parent Layout Notification & Quickpanel disini
            </FrameLayout>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">

                   # Tempatkan Parent layout apapun disini
            </ScrollView>
            <LinearLayout android:orientation="horizontal" android:id="@+id/layout_button" android:background="@drawable/quickpanel_plmn_background" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:weightSum="1.0">
                <Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Notif" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
                <Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="About" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
            </LinearLayout>
        </in.jmkl.dcsms.statusbargreper.NotificationLayout>


*Notif dan About bisa diubah sesuai keinginan


  • Contoh di JB 4.2.*
        <in.jmkl.dcsms.statusbargreper.NotificationLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
            <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
                <ViewStub android:id="@id/flip_settings_stub" android:layout="@layout/flip_settings" android:layout_width="fill_parent" android:layout_height="wrap_content" />
                <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
                    <include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/alwi_barbright" />
                </ScrollView>
            </FrameLayout>
            <ScrollView android:scrollbars="none" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
                <include layout="@layout/alwi_tab2" />
            </ScrollView>
            <LinearLayout android:orientation="horizontal" android:id="@+id/layout_button" android:background="@drawable/quickpanel_plmn_background" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:weightSum="1.0">
                <Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="Notif" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
                <Button android:gravity="center" android:padding="5.0dip" android:layout_width="120.0px" android:layout_height="wrap_content" android:text="About" android:layout_weight="0.5" style="@style/Dcsms.Buttons" />
            </LinearLayout>
        </in.jmkl.dcsms.statusbargreper.NotificationLayout>



  • Masuk folder res/values
  • Buka styles.xml
  • Masukkan ini di paling bawah sebelum </resources>
    <style name="Dcsms.Buttons" parent="@*android:style/Widget.Button.Small">
        <item name="android:textStyle">bold</item>
        <item name="android:textColor">#ff000000</item>
        <item name="android:background">@drawable/btn_default_small</item>
    </style>



  • Save, Recompile, Sign, Push, Reboot




    Admin Maaad

    Author & Editor

    Mediatek Android Art and Dev (Reborn) is a Community / Group of Indonesian Android Developer, Themer, Designer and Tweaker. Feel free to join our Facebook Group and Forum Website also. Keep Sharing - Keep Learning - Keep Caring - Keep Ngis***

    0 comments:

    Post a Comment

    Random Posts