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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -