I want to achieve Snapping effect in HorizontalScrollView i.e when the user scrolls horizontally the item which is most visible (item visible > 50%) comes to the center. I tried to do this using: But the value is not constant even when we do not touch the screen. Here is some part of logcat: I’ve already tried these solutions, either