Open lozn00 opened 6 years ago
@Override
public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
if (newState == RecyclerView.SCROLL_STATE_IDLE) {
if(binding.viewpager.getCurrentPosition()>0){
int actualCurrentPosition = binding.viewpager.getActualCurrentPosition();
Log.w(TAG,"actualCurrentPosition:"+actualCurrentPosition);
}
第一个item 尝试获取的时候会崩溃