Android - ProgressBar setVisibility to GONE not working

后端 未结 5 2351
无人及你
无人及你 2021-02-20 08:59

I\'ve been adding a ProgressBar to the fragments in my app. I\'ve set it up to the two main fragments (used as tabs) as follows:

ProgressBar in

5条回答
  •  迷失自我
    2021-02-20 09:44

    This work for me:

    rootView.findViewById(R.id.progress_bar).setVisibility(View.GONE);
    

提交回复
热议问题