How to display Android UI via XML Layout?

salluu199124

New Member
Currently I understand I can create a XML Layout and pass that to setContentView(...), or I can pass a Customized view to setContentView(...).But what if I want to combine the elements of both? Is it possible to use a layout first, then to programmatically add to the UI via java code? For example: How could I create a view that uses an Asset background picture with an added loading widget on top? ADDED INQUIRY: Right now and I think of a View and a Layout as two things for setContentView to display. But can a View hold a layout within it to be displayed?
 
Back
Top