Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with dynamically inflated DataBinding view #84

Open
sheinin opened this issue Nov 15, 2021 · 0 comments
Open

Does not work with dynamically inflated DataBinding view #84

sheinin opened this issue Nov 15, 2021 · 0 comments

Comments

@sheinin
Copy link

sheinin commented Nov 15, 2021

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)  
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant