public void onEvent(ResetBackgroundEvent evt) { Drawable drawable = mBackgroundImage.Drawable; if (drawable != null) { ((TransitionDrawable)drawable).ReverseTransition(2000); } else { Bitmap bitmap = GameUtility.ScaleDown(Resource.Drawable.background, GameUtility.ScreenWidth(), GameUtility.ScreenHeight()); mBackgroundImage.SetImageBitmap(bitmap); } }
public virtual void onEvent(ResetBackgroundEvent evt) { }