I am looking for a way to apply style to the childs of a开发者_开发问答 tableLayout (tableRow and Textview), the same way we do in css:
.style > childElementType { properties ... }
I would like to achieve the same behavior with my android Styling, meaning that I want to change for instance child's backgrounds depending on their types.
Is it possible?
Thanks, Antoine
pseudocode
function {
loop on all children
if(child.class=="classname") -> set Style
}
精彩评论