Arda Çebi Arda Çebi - 24 days ago 7
Java Question

Making components unvisible with button

How can I make a component on my MainUI unvisible by pressing a button? I want to dismiss a warning box on my MainActivity with a button that says "Close" or with a cross image.

Answer
view.setVisibility(View.GONE);

where view is the component you want to hide