【Android】RecyclerView嵌套ScrollVIew使用
有时候需要在RecyclerView上面或者下面增加一些控件,就需要用ScrollView包裹起来了。但是如果直接嵌套会导致RecyclerView显示不出来。
所以我们需要自定义LinearLayoutManager
public class FullyLinearLayoutManager extends LinearLayoutManager {
private static final String TAG = FullyLinearLayoutManager.class.getSimpleName();
public FullyLinearLayoutManager(Context context) {
super(context);
}
public FullyLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
super(context, orientation, reverseLayout);
}
private int[] mMeasuredDimension = new int[2];