My activity_main.xml is below, as you see, the height is set 40 dip.
activity_main.xml
And in MyEclipse, it looks like below:
Use this
style="@android:style/Widget.ProgressBar.Horizontal"