RSS

Android: Change ProgressBar height

19 Aug

In Android development, you might dislike the very thin progress bar that Android defaults. For instance, in the below xml file, though you can specify the width and height, but you can see that width value functions, but the height value, no matter how large you specify, it remains slim horizontal bar:

image

image

image

To get the height value right, it is very simple:

change style=”?android:attr/progressBarStyleHorizontal” to
     
 style="@android:style/Widget.ProgressBar.Horizontal"

That is it! Happy coding!

 
2 Comments

Posted by on August 19, 2014 in Android, Java, Programming

 

Tags: , , , , , , , ,

2 responses to “Android: Change ProgressBar height

  1. Akash Sharma

    June 21, 2016 at 8:49 pm

    yes its working Thank a lot..

     
  2. Joseph

    December 19, 2016 at 1:59 am

    Thank You, it works

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: