Reputation: 189
If i set a Screen element to be invisible in a "LinearLayout", i do anyway have a gap instead of it. How to make gap a disappear along with a element?
Thanks
Upvotes: 0
Views: 51
Reputation: 15847
When you set view to invisible then your View
will be still there just disappears but occupies its space while you use gone this will remove your view
this will solve your problem
view.setVisibility(View.GONE);
Upvotes: 5