我在我的應用程序中使用了一個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