[Android General] Hyper.Alvi:
Blur effect with opacity and clarity options!​

Note: The smalis are tested in oreo but they should work fine in older versions too

Bugs: If you add it in notification panel lockscreen wont show wallpaper

- Decopile SystemUI

- Go to res/layout/recents.xml and add the following line :

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
[COLOR="Red"] <com.hyper.bg.BlurBackgroundImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />[/COLOR]
<ViewStub android:id="@id/recents_view_stub" android:inflatedId="@id/recents_view_inflate" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ViewStub android:layout_gravity="center|top" android:id="@id/incompatible_app_overlay_stub" android:layout="@layout/recents_incompatible_app_overlay" android:inflatedId="@id/incompatible_app_overlay" android:layout_width="fill_parent" android:layout_height="128.0dip" />

- Go to res/layout/status_bar_expanded.xml and add the following line :

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto" xmlns:sysui="http://schemas.android.com/apk/res-auto">
[COLOR="Red"] <com.hyper.bg.BlurBackgroundImageView2 android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="centerCrop" />[/COLOR]
<FrameLayout android:id="@id/cover_container_for_notification" android:background="@android:color/black" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
<ViewStub android:id="@id/keyguard_status_view_stub" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ViewStub android:id="@id/keyguard_biometric_small_view_stub" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<ViewStub android:id="@id/notification_preview_icon_layout_stub" android:visibility="gone" android:inflatedId="@id/notification_preview_icon_slot_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />

- Add the attachments files and recompile

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

- If you use GrxSettings add the lines above

<GrxSeekBar android:title="Opacity Recents" android:key="hyper_blur_opacity" android:defaultValue="3" grx:interval="1" grx:maxValue="20" grx:minValue="0" grx:showPopup="true" grx:units=" " />
<GrxSeekBar android:title="Clarity Recents" android:key="hyper_blur_clarity" android:defaultValue="128" grx:interval="1" grx:maxValue="250" grx:minValue="0" grx:showPopup="true" grx:units=" " />

<GrxSeekBar android:title="Opacity Notifications" android:key="hyper_blur_opacity2" android:defaultValue="3" grx:interval="1" grx:maxValue="20" grx:minValue="0" grx:showPopup="true" grx:units=" " />
<GrxSeekBar android:title="Clarity Notifications" android:key="hyper_blur_clarity2" android:defaultValue="128" grx:interval="1" grx:maxValue="250" grx:minValue="0" grx:showPopup="true" grx:units=" " />

- If you use Rom Control add the lines above

<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Opacity Recents" android:key="hyper_blur_opacity" android:summary="" android:defaultValue="3" app:maxValue="20" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Clarity Recents" android:key="hyper_blur_clarity" android:summary="" android:defaultValue="128" app:maxValue="250" />

<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Opacity Notifications" android:key="hyper_blur_opacity2" android:summary="" android:defaultValue="3" app:maxValue="20" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference android:title="Clarity Notifications" android:key="hyper_blur_clarity2" android:summary="" android:defaultValue="128" app:maxValue="250" />

- Done!