xml - How to set attributes inside Android layout that is included in another layout? -
i have composite widget consists of imageview , textview object wrapped inside linearlayout. since used several times inside 1 of activities made separate layout , include multiple times inside main layout. understand can override view id included layout tag in main layout. question is, possible set things image source , textview string main layout in xml? sure, programmatically wondering if possible purely in xml...
from documentation:
you can include other layout attributes in <include> supported root element in included layout , override defined in root element.
it sounds can override layout_* attributes. (one might tempted take @ source code see if else secretly supported, no-no in terms of forward compatibility.)
Comments
Post a Comment