CameraKit / blurkit-android

The missing Android blurring library. Fast blur-behind layout that parallels iOS.
MIT License
3.72k stars 309 forks source link

Does not work with dynamically inflated DataBinding view #84

Open sheinin opened 2 years ago

sheinin commented 2 years ago

Added BlurLayout to a dynamically inflated view but it never shows

DataBindingUtil.inflate<MyBinding>(
            activity.applicationContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater,  
            R.layout.my_item,  
            view as ViewGroup,  
            false  
        ).also {  
            it.lifecycleOwner = activity  
            it.vm = vm  
            view.addView(it.root)  
        }