I’m going to create a new RelativeLayout with some Text and Image Views programatically and then add it to a parent layout. The question: is it possible to define that layout in XML and then just add it to the parent programatically? Would be a faster way..
I’m going to create a new RelativeLayout with some Text and Image Views programatically
Share
Use inflation:
This has worked for me.