Hello Droiders!! The is a Tutorial About How To Make Lollipop like swipe to expand systemui.
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool/Any Other tool to deconlmpile apk.
4) Brain.jar and Patient.apk :p
Instructions:
• Decompile your Systemui.apk
• Download the L_Swipe_Expand.zip from the attachment,extract it and merge it into your decompiled systemui.
• Open statusbar_expand.xml/msim_statusbar_expand.xml (depends on your chipset) in /res/layout and make it look like this (add the red lines and edit blue lines according to your statusbar header color/drawable) :
• Now recompile your systemui.apk sign and push it into system/app/ and reboot.
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good:
Disclaimer:I or XDA Developers will not be responsible for any damage of your Device.A Backup is highly recomanded.
Things You Will Needed:
1) SystemUI.apk
2) Notepad++ or any other text editor.
3) Apktool/Any Other tool to deconlmpile apk.
4) Brain.jar and Patient.apk :p
Instructions:
• Decompile your Systemui.apk
• Download the L_Swipe_Expand.zip from the attachment,extract it and merge it into your decompiled systemui.
• Open statusbar_expand.xml/msim_statusbar_expand.xml (depends on your chipset) in /res/layout and make it look like this (add the red lines and edit blue lines according to your statusbar header color/drawable) :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:orientation="vertical" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.bloody.badboy.swipeview.LayoutExpand android:orientation="vertical" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.bloody.badboy.swipeview.LayoutExp1 android:layout_width="fill_parent" android:layout_height="wrap_content">
<!--This layout for containing main systemui header-->
<include layout="@layout/status_bar_expanded_header" />
</com.bloody.badboy.swipeview.LayoutExp1>
<com.bloody.badboy.swipeview.LayoutExp2 android:id="@+id/LayoutExp2" android:layout_width="fill_parent" android:layout_height="wrap_content">
<!--This layout for second Sub-Expand header.It will be shown above your Quick toggles. you can create it by copying your status_bar_expand_header.xml-->
<include layout="@layout/status_bar_expand_header_layout1" />
</com.bloody.badboy.swipeview.LayoutExp2>
<com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">
<!--This is for third Sub-Expand header.if don't have any third expand headee then remove this layout
<com.bloody.badboy.swipeview.LayoutExp3 android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/LayoutExp2">
<include layout="@layout/status_bar_expand_header_layout2" />
</com.bloody.badboy.swipeview.LayoutExp3>-->
<include layout="@layout/status_bar_expand_header_layout2/>
</com.bloody.badboy.swipeview.LayoutExp3>
</com.bloody.badboy.swipeview.LayoutExpand>
<com.bloody.badboy.swipeview.LayoutToggle android:background="@drawable/notification_header_bg2"android:layout_width="fill_parent" android:layout_height="wrap_content">
<!--This layout for Containing Toggles and brightness slider-->
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include layout="@layout/brightness_slider" />
<include android:id="@id/status_bar_qucik_switch" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/status_bar_quick_switch_layout" />
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/my_logo" />
</LinearLayout>
</com.bloody.badboy.swipeview.LayoutToggle>
<com.bloody.badboy.swipeview.LayoutNotify android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<!--This layout for containing your Notification row layout-->
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@*android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="center" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" 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="wrap_content">
<View android:background="@drawable/notification_header" android:layout_width="fill_parent" android:layout_height="7.0dip" />
<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
</FrameLayout>
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/latestItems">
<include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/clear_lay" />
</LinearLayout>
</com.bloody.badboy.swipeview.LayoutNotify>
</com.android.systemui.statusbar.phone.NotificationPanelView>
If You Like it then Hit My Thanks Button.It will not cost but it will motivate me. :good: :good: