Android: Seekbar doesn't scroll all the way to end

不想你离开。 提交于 2020-01-14 09:59:26

问题


Hi I have a seekbar in my app that i need to snap to 7 positions. To achieve this I set the max property of the Seekbar to 7. NOw, to be aesthetically pleasing, i need to be able to drag my seekbar all the way to end of the bar, but when I set a value to the max property, the scroll won't drag all the way to end. Why does this happen and how can I get around it?


回答1:


try adding some padding to the sides of your seekbar



来源:https://stackoverflow.com/questions/5653750/android-seekbar-doesnt-scroll-all-the-way-to-end

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!