SyntaxFix
Write A Post
Hire A Developer
Questions
if(tv!= null){ ((ViewGroup)tv.getParent()).removeView(tv); // <- fix }