My activity_main.xml
is below, as you see, the height is set 40 dip.
And in MyEclipse, it looks like below:
But when I run it on my phone, it looks like below:
So my question is why the real height of the progressbar is not the one I set? How to increase the height of the progressbar?
From this tutorial:
Then simply apply the style to your progress bars or better, override the default style in your theme to style all of your app's progress bars automatically.
The difference you are seeing in the screenshots is because the phones/emulators are using a difference Android version (latest is the theme from ICS (Holo), top is the original theme).
Use this
style="@android:style/Widget.ProgressBar.Horizontal"
values->styles.xml
Then in your ProgressBar add:
android:scaleY="8" in your xml file
I guess the simplest solution would be: