wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.57k stars 602 forks source link

bottomsheetdialogframent #109

Open fukemy opened 3 years ago

fukemy commented 3 years ago

hello i'm implemented blury with bottomsheetdialogframent but the result not the same as expected. Here is my code:

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        blurView.post {
            Blurry.with(context).radius(25).sampling(2)
                .async().animate(300).onto(blurView)
        }
}

bottom sheet layout

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/transparent"
    android:fitsSystemWindows="true"
    android:orientation="vertical"
    app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">

    <FrameLayout
        android:id="@+id/blurView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <com.rafakob.drawme.DrawMeLinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:dm_backColor="@color/background_light"
            android:orientation="vertical"
            app:dm_radiusTopLeft="12dp"
            app:dm_radiusTopRight="12dp">
<....>

here is result:

device-2021-03-05-222235