I have following class and it's obeject which is inflated viewstub.
Statusbar-- class extends RelativeLayout
Statusbar b= (Statusbar)((ViewStub)findViewById(R.id.stub_one)).inflate();
Now I want to make this Statusbar visible/invisible or inflate/deflate开发者_如何学Go depending on my need. I tried b.setVisibility(View.INVISIBLE). But it didn't work.
How this can be done?
findViewById(R.id.stub_one).setVisibility(View.GONE);
精彩评论