Thanks for your answer.
Second question is about selecting between fragment and layout.
For example, I have fragment inside activity.
And some group of controls what need to be placed on same screen, united by function they do. Group of buttons, button + text field or something like this.
So, should I place them inside same fragment but separate in nested layout or don’t separate at all. Or I should move them to separate fragment and put two fragments on one screen? Is there any rules, best practices to make those decisions?