Android的搜索栏拇指被剪切/切断

问题描述:

重新措辞的问题:当使用自定义的拇指绘制了搜索栏视图,拇指绘制被剪裁的左右边缘的观点。

Re-worded question: When using a custom thumb drawable with a SeekBar view, the thumb drawable is clipped at the left and right edges of the view.

喜创建一个自定义的音乐player.But当我播放的歌曲的播放器的头出现在两个sides.I切断没有写任何code修改其默认positon.Have不知道该怎么办。

hi created a custom music player.But when i play the song the player head appears cut off at both sides.I haven't written any code to modify its default positon.Have no idea how to do.

http://www.freeimagehosting.net/image.php?eb2dc1e342.jpg

您应该能够通过设置paddingLeft$c$c>和 paddingRight 搜索栏一半的拇指宽度(记得用密度无关的单位)。您也可以通过调用setThumbOffset$c$c>.

You should be able to fix this by setting paddingLeft and paddingRight on your SeekBar to half the thumb width (remember to use density-independent units). You can also control the space allowed at the edges for a seek bar's thumb by calling setThumbOffset.