How to clone a View so that it can be added to the current hierachy view

I like to know how I can clone a view object that already exists in the view hierarchy so that it can be added back to the same view hierarchy.

+3
source share
1 answer

When using the xml layout, you can define your view in another layout and use the directive <include ..>to place it in several places several times.

+2
source

Source: https://habr.com/ru/post/1734747/


All Articles