1

Is there any way now to bind NavigationView menu (using DataBinding)? I'm interested in binding some ActionViews. Now I'm using binding.nvview.post(..); and in postDataBindingUtil.bind(findViewById(my_view_id)), but sometimes post happens before menu inflated, so DataBinding doesn't work. In fact I don't even need to set variable, because layout takes value from Singleton.

So, there is two questions:

  • Can I bind NavigationView menu?
  • Can I create some custom view, that will bind itself when inflating and then set it to MenuItem ActionView?
yennsarah
  • 5,467
  • 2
  • 27
  • 48
Ekalips
  • 1,473
  • 11
  • 20

0 Answers0