我在我的应用程序中使用了一个SeekBar
,我想定制它一点。我已经想出了如何更改拇指和背景的Drawable
。如何在Android中自定义SeekBar的外观?
我的问题是如何改变SeekBar
的大小?如果我只是改变了SeekBar like this, the
查看is only clipped and it only shows the top piece of the
SeekBar`的高度:
<SeekBar
android:layout_height="10dip"
style="@style/seekbar_style" />
如何改变Seekbar
的总体规模?我希望它比标准SeekBar
更薄。
你也可以阅读本教程。 http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/ – Ali 2012-05-11 04:32:52