Creating multiple objects of a view defined in the xml

Posted by user362953 on Stack Overflow See other posts from Stack Overflow or by user362953
Published on 2010-06-09T22:51:14Z Indexed on 2010/06/09 23:42 UTC
Read the original article Hit count: 140

Filed under:

I have to dynamically add a list of views (the views use RelativeLayout). Can I do this by specifying the view definition in xml and instantiate multiple objects off it? This gives the usual benefits of separating the view part from the code (for e.g., making it easy for the UI guys to alter things) or Is going the ArrayAdapter the suggested/only route?

© Stack Overflow or respective owner

Related posts about android