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.


Comments

Post a Comment

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -