Code example for ScrollView

Methods: scrollTo, setLayoutParams

0
        if (null != mTextView) {
            mTextView.setVisibility(View.GONE);
        } 
 
        if (mScrollViewPort != null) {
            mScrollViewPort.scrollTo(0, 0);
            mScrollViewPort.setLayoutParams(
                    new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 0, 0));
        } 
 
    } 
 
    public void setVisibility(boolean visible) {
        // TODO Auto-generated method stub 
    } 
 
    @Override 
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
 
        if (mSizeChangedListener != null) {