30 lines
908 B
Java
30 lines
908 B
Java
package com.gh.common.view;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
import androidx.recyclerview.widget.RecyclerView;
|
|
|
|
public class FixLinearLayoutManager extends LinearLayoutManager {
|
|
|
|
public FixLinearLayoutManager(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public FixLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
|
|
super(context, orientation, reverseLayout);
|
|
}
|
|
|
|
public FixLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
|
super(context, attrs, defStyleAttr, defStyleRes);
|
|
}
|
|
|
|
@Override
|
|
public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {
|
|
try {
|
|
super.onLayoutChildren(recycler, state);
|
|
} catch (Exception ignore) {
|
|
}
|
|
}
|
|
} |