SyntaxFix
Write A Post
Hire A Developer
Questions
Even simpler way is to use
View child = View.inflate(context, R.layout.child, null) item.addChild(child) //attach to your item