Cara Menambahkan Drawer di SystemUI

Test Device Andromax C2 KK

Download Bahan : CusMeDroidDrawerUI.zip

Decompile SystemUI.apk
Taruh Bahan Di tempat Masing2

cari dan buka res/status_bar_expanded.xml
Tambahkan :
<android.support.v4.widget.DrawerLayout android:id="@+id/drawer_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">

Tepat Di Atas :
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false">
Hapus android:layout_marginBottom="@dimen/close_handle_underlap" di <LinearLayout.

Tambahkan :
    <LinearLayout android:layout_gravity="left" android:id="@+id/cusmedroid_left" android:orientation="vertical" android:background="#ff243036" android:layout_width="280.0dip" android:layout_height="fill_parent">
            <ScrollView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <TextView android:text="Ini Kiri!" android:textSize="20" android:gravity="center"/>
                </LinearLayout>
            </ScrollView>
        </LinearLayout>
        <LinearLayout android:layout_gravity="right" android:id="@+id/cusmedroid_right" android:orientation="vertical" android:background="#ff243036" android:layout_width="280.0dip" android:layout_height="fill_parent">
            <ScrollView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <TextView android:text="Ini Kanan!" android:textSize="20" android:gravity="center"/>
                </LinearLayout>
            </ScrollView>
        </LinearLayout>
    </android.support.v4.widget.DrawerLayout>
Tepat Di Bawah :
</LienarLayout>

Contoh :
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="#00000000" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginStart="@dimen/notification_panel_margin_left"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
    <View android:id="@id/handle" android:background="@drawable/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height" />
    <LinearLayout android:layout_gravity="bottom" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false">
        <include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" layout="@layout/subs_label" />
        <include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" />
    </LinearLayout>
    <android.support.v4.widget.DrawerLayout android:id="@id/drawer_layout" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/close_handle_underlap">
        <LinearLayout android:orientation="vertical" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:animateLayoutChanges="false">
            <include android:layout_width="fill_parent" android:layout_height="@dimen/notification_panel_header_height" layout="@layout/status_bar_expanded_header" />
            <LinearLayout android:orientation="vertical" android:id="@id/originLayout" android:layout_width="fill_parent" android:layout_height="fill_parent">
                <RelativeLayout android:orientation="horizontal" android:background="#ff243036" android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:layout_width="fill_parent" android:layout_height="30.0dip">
                    <TextView android:textSize="16.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:layout_gravity="center_vertical" android:paddingLeft="5.0dip" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="28.0dip" android:text="Quick Panel" />
                    <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
                        <com.cusmedroid.ToggleButton android:id="@id/hide_cusmedroid" android:layout_width="30.0dip" android:layout_height="fill_parent" />
                    </LinearLayout>
                </RelativeLayout>
                <com.cusmedroid.Toggles android:id="@id/show_cusmedroid" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <ScrollView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="ifContentScrolls">
                        <include layout="@layout/quick_cmd_toggle" />
                    </ScrollView>
                </com.cusmedroid.Toggles>
                <include android:id="@id/shortcut" layout="@layout/expanded_shortcut_port" />
                <include layout="@layout/status_bar_notification_title" />
                <TextView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" android:gravity="center" android:id="@id/emergency_calls_only" android:padding="4.0dip" android:visibility="gone" 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>
            </LinearLayout>
        </LinearLayout>
        <LinearLayout android:layout_gravity="left" android:orientation="vertical" android:background="#ff243036" android:layout_width="280.0dip" android:layout_height="fill_parent">
            <ScrollView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <include layout="@layout/logo_cmd" />
                    <com.cusmedroid.CalendarButton android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ff5d5d5d" android:gravity="left" android:background="#ffffffff" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="20.0dip" android:text="@string/cmd_calendar_label" />
                    <View android:background="#ff5d5d5d" android:layout_width="fill_parent" android:layout_height="1.0dip" />
                    <include layout="@layout/cmd_calender" />
                    <com.cusmedroid.WeatherButton android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ff5d5d5d" android:layout_gravity="center" android:background="#ffffffff" android:layout_width="fill_parent" android:layout_height="20.0dip" android:text="WEATHER" />
                    <View android:background="#ff5d5d5d" android:layout_width="fill_parent" android:layout_height="1.0dip" />
                    <include layout="@layout/cmd_weather_panel" />
                    <com.maxdev.systemui.WeatherText android:gravity="center" android:paddingTop="4.0dip" android:id="@id/maxdev_weather_text" android:layout_width="fill_parent" android:layout_height="wrap_content" />
                </LinearLayout>
            </ScrollView>
        </LinearLayout>
        <LinearLayout android:layout_gravity="right" android:orientation="vertical" android:background="#ff243036" android:layout_width="280.0dip" android:layout_height="fill_parent">
            <ScrollView android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
                <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
                    <RelativeLayout android:orientation="horizontal" android:background="#ff243036" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="30.0dip">
                        <TextView android:textSize="16.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:layout_gravity="center_vertical" android:paddingLeft="5.0dip" android:paddingTop="5.0dip" android:layout_width="fill_parent" android:layout_height="28.0dip" android:text="TASKLIST" />
                        <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
                            <ImageView android:id="@id/tasklistSwitch" android:layout_width="40.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_tasklist_switch" />
                        </LinearLayout>
                    </RelativeLayout>
                    <ExpandableListView android:layout_gravity="center_vertical" android:id="@id/taskList" android:layout_width="fill_parent" android:layout_height="wrap_content" />
                    <include layout="@layout/cmd_layout_r" />
                    <TextView android:textSize="14.0dip" android:textStyle="bold" android:textColor="#ff5d5d5d" android:layout_gravity="center" android:background="#ffffffff" android:paddingLeft="3.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="DEVICE INFO" />
                    <View android:background="#ff5d5d5d" android:layout_width="fill_parent" android:layout_height="1.0dip" />
                    <include layout="@layout/device_info" />
                </LinearLayout>
            </ScrollView>
        </LinearLayout>
    </android.support.v4.widget.DrawerLayout>
</com.android.systemui.statusbar.phone.NotificationPanelView>

Save
Recompile Sign Push system/priv-app

Komentar

Postingan populer dari blog ini

Instagram Followers Free

Sketchware Tutorial - Spinner

Me Movie