I have a Custom ViewGroup and I override onLayout method to layout its children. Every time onLayout called just some of children need to be layout. The problem is when I call requestLayout() the children that i don't layout them are shown from last call.
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
.
.
.
// calculate a and b parameter
for (int i = a; i < b ; i++) {
getChildAt(i).layout(l, t ,r ,b );
}
}
The question is How hide a child from layout or clear ViewGroup and relayout children ? or any other solution ...