android - Set ProgressBar height -
the question seems stupid i'm not able define height of progressbar
. neither in code nor xml file. layout_height
property seems act margin one, , original size more smaller want. have found nothing on subject i'm quite confuse. answer here don't works me. , targeting api 15. has solution or explanation ?
it stupid mistake. had paste sample code :
<progressbar android:id="@+id/status_progress" style="?android:attr/progressbarstylehorizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
however style
attribute override others...
to obtain "basic" horizontal progressbar
have set attributes:
<progressbar android:id="@+id/pb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressdrawable="@android:drawable/progress_horizontal" android:indeterminate="false" android:indeterminateonly="false"/>
of course, other predefined styles available.
Comments
Post a Comment