《Android 基础(四十三)》 SnapHelper

1. 简介

先看看英文介绍

1
2
3
4
5
6
7
/**
* Class intended to support snapping for a {@link RecyclerView}.
* <p>
* SnapHelper tries to handle fling as well but for this to work properly, the
* {@link RecyclerView.LayoutManager} must implement the {@link ScrollVectorProvider} interface or
* you should override {@link #onFling(int, int)} and handle fling manually.
*/
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×