I am displaying a ProgressBar
in Android, as seen below:
but there is a
do you still need ideas for this? I implemented the same thing in my app, but not as a dialog, I had two layouts that overlap each other. I then flip between the two layouts by setting the visibility .setVisibility()
. As for the actual progress bar itself, I use this:
EDIT: Here's my whole XML file:
I use this layout for an Activity
with an AsyncTask
, so onPreExecute()
, I do something like:
@Override
protected void onPreExecute(){
findViewById(R.id.list_contents).setVisibility(View.GONE);
findViewById(R.id.spinner_layout).setVisibility(View.VISIBLE);
}
And then do whatever I have to do, and onPostExecute()
I have:
@Override
protected void onPostExecute(Cursor cursor){
findViewById(R.id.list_contents).setVisibility(View.VISIBLE);
findViewById(R.id.spinner_layout).setVisibility(View.GONE);
}