问题
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