public void destory(){
ViewGroup g= (ViewGroup) convertView.getParent();
if(convertView!=null){
try{
g.removeView(convertView);
}catch(Exception e){
e.printStackTrace();
}
}
}
when you are custom dialog view remind holder must remove childview
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
沒有留言:
張貼留言