Now go to line 17 and change parameter from 0 to 4 and second button will be invisible when you save and start your application again, but it still takes up space in layout.
If we want to make button invisible and doesn’t take any space in the layout, then we must change parameter 8 for setVisibility method.