I have a composite widget consisting of an ImageView object and a TextView wrapped inside a LinearLayout. Since this is used several times in one of my actions, I made it a separate layout and included it several times in the main layout. I understand that you can override the view identifier for the included layout from the tag in the main layout. My question is: is it possible to set things like image source and text from the main layout in XML? Of course, I could do it programmatically, but I was wondering if this is possible exclusively in XML ...
source share