Answers for "android scroll view scroll end"

0

android scroll view scroll end

binding.scrollView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
            @Override
            public void onScrollChanged() {
                if (binding.scrollView.getChildAt(0).getBottom()
                        <= (binding.scrollView.getHeight() + binding.scrollView.getScrollY())) {
                    // end of scroll 
                } else {
                    // not end
                }
            }
        });
Posted by: Guest on June-09-2021

Browse Popular Code Answers by Language