in the onCreate set the Progresbar visibilty
ProgressBar.setVisibilty(View.INVISIBLE)

On Thu, Mar 26, 2009 at 12:34 PM, idev <[email protected]> wrote:

>
> Hi
>
> I have added an indeterminate progress bar to my view and I want it to
> be displayed when the user clicks a button.
> The problem is as soon as the activity is loaded and the intent
> displayed, the progress bar is also displayed. I have used the
> setProgressBarVisibility(true); statement in the onClick method but
> the progress bar is displayed even without the onClick.
>
> Can someone please tell me how to keep the progress bar hidden till
> the button click happens?
>
> Thanks.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to