For example,
Assume that I have 2 buttons with the same ID in two different fragment layouts.
layout1 - myButtonAction layout2 - myButtonAction
In the parent activity if I do this:
@OnClick(R.id.myButtonAction)
public void doSomething() {
// Only the button in first layout works
}
Any suggestions regarding this?
Thanks