Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示不能除0 #209

Open
lozn00 opened this issue Apr 18, 2018 · 1 comment
Open

提示不能除0 #209

lozn00 opened this issue Apr 18, 2018 · 1 comment

Comments

@lozn00
Copy link

lozn00 commented Apr 18, 2018

第一个item 尝试获取的时候会崩溃

@lozn00
Copy link
Author

lozn00 commented Apr 18, 2018

      @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);
                        
                    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant