user
user

Reputation: 673

How to reduce the size of Progressdialog in android?

I want the display the progress dialog like activity indicator as like in iPhone, So I want to reduce the size of it.

Could any one give me a idea on this.

Thanks.

Upvotes: 4

Views: 9153

Answers (2)

Krishnabhadra
Krishnabhadra

Reputation: 34296

Play with android progressBar style

<ProgressBar android:layout_width="wrap_content" 
  android:layout_height="wrap_content"
  style="?android:attr/progressBarStyleSmall" <-- play with this
  android:layout_gravity="center"
/>

EDIT:

See this post, and example of progressbar created using code

Upvotes: 5

gomes
gomes

Reputation: 225

Try this way:

mProgressDialog.setProgressStyle(android.R.attr.progressBarStyleSmall); 

Upvotes: 2

Related Questions