android - Seek Bar Increase Height -
i'm working seek bar works fine. want increase height of progress bar, native height not high.
so wow can change height of progress bar, either dynamically or through xml?
you can via xml.
it work fine in application.do simple integration in xml have mentioned progress bar tag.
first, need define style of progress bar in values->styles.xml of project. like:
<style name="tallerbarstyle" parent="@android:style/widget.seekbar"> <item name="android:indeterminateonly">false</item> <item name="android:progressdrawable">@android:drawable/progress_horizontal</item> <item name="android:indeterminatedrawable">@android:drawable/progress_horizontal</item> <item name="android:minheight">8dip</item> <item name="android:maxheight">20dip</item> </style>
edit maxheight desired height want achieve.
then in progressbar add:
android:style="@style/tallerbarstyle"
it work perfectly.
This comment has been removed by the author.
ReplyDelete