Skip to content

Does not work with dynamically inflated DataBinding view #84

@sheinin

Description

@sheinin

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)  
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions