So I can inflate a ViewStub at runtime. Let's say I want to make it disappear and then maybe inflate again depending on some event occurring (for example, a toolbar that inflates and deflates according to what the user selects on screen).
I can use View.setVisibility(4) EDIT View.setVisibility(View.GONE) EDIT .... is there any other way?
Or am I doing something wrong here?
Thanks! :)