setProgressDrawable()

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

setProgressDrawable()

Postby Pandoro » Sun Jan 10, 2010 2:10 pm

Hello,

I have a xml file defining my layer-list. If I set it in the xml file for the actual layout like this

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.         <ProgressBar
  2.  
  3.                 style="?android:attr/progressBarStyleHorizontal"
  4.  
  5.  
  6.  
  7.                 android:progressDrawable="@drawable/progress_bar"
  8.  
  9.  
  10.  
  11.                 android:layout_height="30dip"
  12.  
  13.                 android:layout_width="fill_parent"
  14.  
  15.                 android:id="@+id/BusyProgress"></ProgressBar>
  16.  
  17.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


it works fine.
I wonder however how to do it with the setProgressDrawable() method in my code. I can't find a code example of this. A little hint would be appreciated.

Alex
Pandoro
Junior Developer
Junior Developer
 
Posts: 12
Joined: Wed Nov 04, 2009 9:41 pm
Location: Netherlands

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests