How to add a group of View-elements from an HTML file using the method? This group can be, for example, a container Linear Layout with a text header, buttons, a picture, and anything else.
Why it is needed: if it were necessary to add, for example, just one button, then the code would be very small, but if you need to insert a composite object (container + content with a configured mutual location), then it is certainly rational to take the added object into an XML file .
In order not to spend a lot of time on the answer, you do not need to write a complete example with a working java and xml file, just insert the minimum required number of lines into this method:
public void AddViewGroup(View viewGroup){ // Добавляем содержимое, допустим, из groups.xml }