java - Hide TextView until Button is pressed -
i wondered if it's possible hide view until button pressed without whole effort of creating blank view , switching between them. know tutorial or can guide me trough this?
set view's visibility on gone when rendered. on onclick button reveals view set view visible
hiddenview = (view) findviewbyid(r.id.hidden_view); hiddenview.setvisibility(view.gone); showbutton = (button) findviewbyid(r.id.show_button); showbutton.setonclicklistener(new onclicklistener() { @override public void onclick(view v) { //when showbutton clicked show hidden_view hidden_view.setvisibility(view.visible); } });
Comments
Post a Comment