Hide ProgressBar

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Hide ProgressBar

Postby keiko11245 » Tue Mar 10, 2009 12:09 pm

I'm trying to hide a progressBar.
When my activity is creating, I use setProgressBarVisibility(true) to show my ProgressBar.
I download images from the web.
When all my images are downloaded, I want to hide my progressBar but setProgressBarVisibility(false) makes no difference.


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. @Override
  3.  
  4.         public void onCreate(Bundle savedInstanceState) {
  5.  
  6.                 super.onCreate(savedInstanceState);
  7.  
  8.                
  9.  
  10.                 ...
  11.  
  12.  
  13.  
  14.                 setProgressBarVisibility(true);
  15.  
  16.         }
  17.  
  18.  
  19.  
  20.         public void imagesInitialize() {
  21.  
  22.                 setProgressBarVisibility(false);
  23.  
  24.         }
  25.  
  26.  
  27.  
  28.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.        
  2.  
  3.         <ProgressBar android:id="@android:id/progress"
  4.  
  5.        android:layout_width="wrap_content"
  6.  
  7.        android:layout_height="wrap_content"
  8.  
  9.                 android:layout_x="138px"
  10.  
  11.                 android:layout_y="160px" />
  12.  
  13.                        
Parsed in 0.001 seconds, using GeSHi 1.0.8.4



Is somethink wrong?
keiko11245
Freshman
Freshman
 
Posts: 7
Joined: Tue Mar 10, 2009 11:49 am

Top

Postby zrgiu » Tue Mar 10, 2009 4:04 pm

progressBar.setVisibility(View.GONE)

I don't remember if that's the exact name of the method, but that's the way
zrgiu
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat Nov 01, 2008 5:54 pm

Postby keiko11245 » Tue Mar 10, 2009 4:19 pm

It's the right name.
It works fine.

thanks
keiko11245
Freshman
Freshman
 
Posts: 7
Joined: Tue Mar 10, 2009 11:49 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests