Using Progressbar

Asked

Viewed 148 times

0

I would like to know how to create a progressBar where, when clicking a button to open another screen, the progressBar was showing, and when opening the other screen, the progressBar exit the screen. How do I do that? I already have the two screens, I just want to insert the progressiBar.

  • http://www.easyinfogeek.com/2015/03/android-example-progress-bar-tutorial.html

  • 2

    Reinaldo, our forum is to ask technical questions, and not to do the work for you, the ideal is that you research on what you want, try to do, and if you have any difficulty during your programming, you come to ask the questions here along with your code

  • @Reinaldo, post your code that we tried to help, no one will post a solution to a question without having the slightest attempt, for that exists the official documentation.

1 answer

-1

Reinaldo you have to do the following, after inserting the bar Progress within your layout, you will have to declare it in your Activity, declaring it you put within its function to call the second screen the following "progressbar.setVisibility(View.VISIBLE);", after that go on your second Activity and inside the oncreate write "progressbar.setVisibility(View.INVISIBLE);". It’s gonna work. Remembering that the "progressbar" is the name you declared for the Progress bar, not the id.

  • Thank you very much for your help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.