I have an XML layout with a ViewStub. I created a binding adapter setLayout to set which layout the ViewStub will inflate.
setLayout