pagersnaphelper

How to snap to particular position of LinearSnapHelper in horizontal RecyclerView?

血红的双手。 提交于 2021-02-10 03:26:31
问题 How can I snap to particular position for LinearSnapHelper() in horizontal RecyclerView? There is a function scrolltoposition for RecyclerView which scroll to that position but did not keep it in center for this snaphelper. I am looking for something like below image. So when I set to particular position, it will keep it in center. I dont find anything related to select position for SnapHelper i find this , but this doesn't help me. Any help would be appreciated. 回答1: For horizontal

How to snap to particular position of LinearSnapHelper in horizontal RecyclerView?

為{幸葍}努か 提交于 2021-02-10 03:26:21
问题 How can I snap to particular position for LinearSnapHelper() in horizontal RecyclerView? There is a function scrolltoposition for RecyclerView which scroll to that position but did not keep it in center for this snaphelper. I am looking for something like below image. So when I set to particular position, it will keep it in center. I dont find anything related to select position for SnapHelper i find this , but this doesn't help me. Any help would be appreciated. 回答1: For horizontal

How to snap to particular position of LinearSnapHelper in horizontal RecyclerView?

橙三吉。 提交于 2021-02-10 03:18:20
问题 How can I snap to particular position for LinearSnapHelper() in horizontal RecyclerView? There is a function scrolltoposition for RecyclerView which scroll to that position but did not keep it in center for this snaphelper. I am looking for something like below image. So when I set to particular position, it will keep it in center. I dont find anything related to select position for SnapHelper i find this , but this doesn't help me. Any help would be appreciated. 回答1: For horizontal