I have TextView for showing time. I want to use Android\'s DataBinding plugin.
For formatting time I am using DateUtils.formatDateTime(context, in
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.
In other words, every time you need to pass the context just use "context" as in @{Object.method(context)}.