• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying custom progress bars

 
ajay chawda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Activity.requestWindowFeature(Window.FEATURE_PROGRESS) gives the default progress bar .

Is it possible to customise it by adding some text or image ?
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, take a look at android.app.ProgressDialogclass and also APIDemos for hints.
The ProgressDialog class has a method called addViewContent which you can use to add custom Views.

Hope that helps..
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!