I have a SeekBar inside a HorizontalScrollView and am finding it very hard to grab the handle and move it. If I don’t touch exactly on the handle, the HorizontalScrollView will receive and consume the touch event. Is there a way to increase the priority of the SeekBar so it will have the normal “range” for touch events or is this just a bad idea/design and I should avoid it?
I have a SeekBar inside a HorizontalScrollView and am finding it very hard to
Share
I “solved” it by doing the following:
NOTE: My scroll layout is lockable, as explained here: https://stackoverflow.com/a/5763815/1067721 (just pay atention to my answer a little bit lower, I found that bit to be important)
I then wrapped my seekbar in a FrameLayout able to intercept touch events:
And then, on my
Fragment, I implemented the listener and let the SeekBar consume the event: