I have a composite widget that consists of an ImageView and TextView object wrapped up inside a LinearLayout. Since this is used several times inside one of my activities I made it a separate layout and include it multiple times inside the main layout. I understand you can override the view id for the included layout from the tag in the main layout. My question is, is it possible to set things like the image source and textview string from the main layout in XML? Sure, I could do this programmatically but I was wondering if it was possible purely in XML…
I have a composite widget that consists of an ImageView and TextView object wrapped
Share
From the documentation:
It sounds like you can only override the layout_* attributes. (One might be tempted take a look at the source code to see if something else is secretly supported, but that would be a no-no in terms of forward compatibility.)