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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -