Monday, 5 September 2016

GUIDE MOD 4 3 How to add Blur background to your Recent Apps Notification Panel

GUIDE MOD 4 3 How to add Blur background to your Recent Apps Notification Panel


One line - One blur background

I will guide you to add blur background to recent apps panel, but you can add to any layout you want.

Requirements
  • Apktool 2.0
  • SystemUI.apk (or any other app you want)
  • Notepad++ for editting
  • Brain.apk installed :D
LETS START
- First, decompile your SystemUI.apk
- Download and extract simon_blur_background.zip (5.1 KB) then merge the smali folder to your decompiled folder.
- Open http://ift.tt/2aCxT4J
- Now find this method:
Code:

# direct methods
.method static constructor <clinit>()V

- Scroll a little bit down, youll see this:
Code:

    const/16 v0, 0x320

    sput v0, Lcom/simonoid/blur/BlurImageView;->HIGH:I

    const/16 v0, 0x1e0

    sput v0, Lcom/simonoid/blur/BlurImageView;->WIDHT:I

- Look at the BLUE hex code. Its my phone resolution (480x800 in hexadecimal is 1e0x320). You have to change it to match your devices resolution or itll get FC error.
320 is the height
1e0 is the width
You can click HERE to convert decimal to hexadecimal number.
Or you can use some presets:
Code:

Decimal = Hexadecimal
480 = 1e0
540 = 21c
800 = 320
960 = 3c0
1080 = 438
1920 = 780

Then you can save it.
- Now go to the layout you want to add blur background, for example: http://ift.tt/1mYP9yy (for Recent Apps panel). Add the blue code:
Code:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android_id="@id/recents_root" android_background="@color/recents_background" android_layout_width="fill_parent" android_layout_height="fill_parent" systemui_recentItemLayout="@layout/status_bar_recent_item"
  http://ift.tt/1jD6tMP;
    <com.simonoid.blur.BlurImageView android_id="@id/backgroundImageView" android_layout_width="fill_parent" android_layout_height="fill_parent" android_scaleType="centerCrop" />
    <FrameLayout android_id="@id/recents_bg_protect" android_clipChildren="false" android_clipToPadding="false" android_layout_width="fill_parent" android_layout_height="fill_parent" android_layout_alignParentBottom="true">
        <com.android.systemui.recent.NokiaRecentsHorizontalScrollView android_id="@id/recents_container" android_fitsSystemWindows="true" android_scrollbars="none" android_fadingEdgeLength="0.0dip" android_layout_width="fill_parent" android_layout_height="fill_parent" android_layoutDirection="ltr">
            <LinearLayout android_orientation="horizontal" android_id="@id/recents_linear_layout" android_layout_width="fill_parent" android_layout_height="fill_parent" />
        </com.android.systemui.recent.NokiaRecentsHorizontalScrollView>
    </FrameLayout>
    <include android_id="@id/recents_no_apps" android_visibility="invisible" android_layout_width="fill_parent" android_layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

- Now recompile your apk and push to your system. :fingers-crossed:
- Finally hit the Thanks :good: button and tell me if it works. :o
- If youre encountering any errors then post here (with log) so that I could help

NOTE: If youre going to add blur background in somewhere in http://ift.tt/2aCxBLp and you dont know where to put the smali. Just put it in framework.jar :fingers-crossed:

Attached Files
File Type: zip simon_blur_background.zip - [Click for QR Code] (5.1 KB)


from xda-developers http://ift.tt/2aCxXBK
via IFTTT

Available link for download