SyntaxFix
Write A Post
Hire A Developer
Questions
To clear a view extending ViewGroup, you just need to use the method removeAllViews()
removeAllViews()
Just like this (if you have a ViewGroup called myElement) :
myElement
myElement.removeAllViews()