@Override protected void onSizeChanged(int w,int h,int oldw,int oldh){
  if (readySent) {
    setScaleAndCenter(getScale(),getCenter());
  }
}

@ Override protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { if ( readySent ) { setScaleAndCenter ( getScale ( ) , getCenter ( ) ) ; } }
on resize , preserve center and scale . various behaviours are possible , override this method to use another .
