I was just reading about data binding feature in android. I was trying to bind a view from a nested layout. My activity is android\'s default template of DrawerMenuActivit
DrawerMenuActivit
One can pass the objects in XML ... the xmlns:bind namespace is required (similar to xmlns:app).
xmlns:bind
xmlns:app
source of the example: Layouts and binding expressions.