讓物件顯示

view.setVisibility(View.VISIBLE);

讓物件不顯示

view.setVisibility(View.INVISIBLE);

讓物件從layout上消失

 

view.setVisibility(View.Gone);