Code example for ListView

Methods: requestFocus, setVisibility

0
                mImageView.requestFocus();
 
                rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false);
            } else { 
                mImageView.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());
 
            mContainer.startAnimation(rotation);
        } 
    } 
 
}