mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
fix layout with attribute id setted in include
This commit is contained in:
parent
2175400906
commit
eddef5062d
@ -124,6 +124,7 @@ static void startElement(void *userData, const XML_Char *name, const XML_Char **
|
||||
View* includedView = LayoutInflater::from(pd->ctx)->inflate(layout,parent,true,&atts);
|
||||
if(includedView) { //for merge as rootnode,the includedView will be null.
|
||||
LayoutParams*lp = parent->generateLayoutParams(atts);
|
||||
includedView->setId(pd->ctx->getId(atts.getString("id")));
|
||||
includedView->setLayoutParams(lp);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user