Code example for ScrollView

Methods: requestFocus, setVisibility

0
            final float centerY = mContainer.getHeight() / 2.0f;
            Rotate3dAnimation rotation;
             
            if (mPosition > -1) {
                mPhotosList.setVisibility(View.GONE);
                mScrollView.setVisibility(View.VISIBLE);
                mScrollView.requestFocus();
 
                rotation = new Rotate3dAnimation(90, 360, centerX, centerY, 310.0f, false);
            } else { 
            	mScrollView.setVisibility(View.GONE);
                mPhotosList.setVisibility(View.VISIBLE);
                mPhotosList.requestFocus();
 
                rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false);
            } 
 
            rotation.setDuration(500);
            rotation.setFillAfter(true);
            rotation.setInterpolator(new DecelerateInterpolator());