Code example for ScrollView

Methods: post

0
            @Override 
            public void onClick(View v) {
                mExpanded = !mExpanded;
                toggleVolumes(mExpanded);
                if (mScrollView != null) {
                    mScrollView.post(new Runnable() {
                        @Override 
                        public void run() { 
                            mScrollView.fullScroll(View.FOCUS_DOWN);
                        } 
                    }); 
                } 
            } 
        }); 
    } 
     
    public void setScrollView(ScrollView scrollView) {
        mScrollView = scrollView;
    } 
 
    public void toggleVolumes(boolean expanded) {