Using ProgressBar

0

I would like to know how to create a progressBar where, when you click a button to open another screen, the progressBar is showing, and when you open the other screen, the progressBar exits the screen. How do I do that? I already have the two screens, I just want to insert the progressBar.

    
asked by anonymous 21.09.2017 / 15:29

1 answer

-1

Reinaldo you have to do the following, after inserting the progress bar inside your layout, you will have to declare it in your activity, declaring it you place inside your function to call the second screen the following "progressbar. setVisibility (View.VISIBLE); ", after that go to your second activity and inside the oncreate type" progressbar.setVisibility (View.INVISIBLE); ". It will work. Remember that the "progressbar" is the name you declared for the progress bar, not the id.

    
21.09.2017 / 16:53