private void updateImageViews(){
  if (mImages == null)   return;
  for (int i=0; i < VIEW_COUNT; i++) {
    if (mAccountSelected && i != getCenterPosition())     continue;
    ImageView image=mViews[i];
    updateBitmap(i);
    final float position=mPosition + POSITION_OFFSETS[i];
    image.setTranslationX(-mTranslationFactor * ((float)Math.sin(position * Math.PI / 2f)));
    final float scale=(float)Math.cos(position * Math.PI / 2f) / 3f + 2f / 3f;
    image.setScaleY(scale);
    image.setScaleX(scale);
    final float alpha=(float)Math.pow(Math.cos(position * Math.PI / 4f),2);
    image.setAlpha(alpha);
  }
}

private void updateImageViews ( ) { if ( mImages == null ) return ; for ( int i = 0 ; i < VIEW_COUNT ; i ++ ) { if ( mAccountSelected && i != getCenterPosition ( ) ) continue ; ImageView image = mViews [ i ] ; updateBitmap ( i ) ; final float position = mPosition + POSITION_OFFSETS [ i ] ; image . setTranslationX ( - mTranslationFactor * ( ( float ) Math . sin ( position * Math . PI / 2f ) ) ) ; final float scale = ( float ) Math . cos ( position * Math . PI / 2f ) / 3f + 2f / 3f ; image . setScaleY ( scale ) ; image . setScaleX ( scale ) ; final float alpha = ( float ) Math . pow ( Math . cos ( position * Math . PI / 4f ) , 2 ) ; image . setAlpha ( alpha ) ; } }
updates the position , scale , alpha and image shown for all four imageviews used by the imagecarousel .
