Android DataBinding: can I pass constructor parameter to my data variable?
问题 I have a MovieViewModel class that is used as variable in my layout file. <data> <variable name="vm" type="udacity.nanodegree.android.p2.model.comum.MovieViewModel"/>; </data> According with Android Data Binding docs: A special variable named context is generated for use in binding expressions as needed. The value for context is the Context from the root View's getContext(). The context variable will be overridden by an explicit variable declaration with that name. I need to pass this special