Delete Objects In Gridlayout Before Adding New Objects
Every time i press a button i fill a GridLayout with several buttons. This is the code that do it, but i don't think it's necessary for you to understand my problem for(int i=0; i
Solution 1:
Try this code
gridLayout.removeAllViews();
before adding the new views. Before your for loop in your code
Post a Comment for "Delete Objects In Gridlayout Before Adding New Objects"