On 11 Lut, 20:04, momo <dun...@gmail.com> wrote: > i had tried something very similar: > > package com.whatever.tests; > > import android.view.animation.Animation; > import android.view.animation.Transformation; > > public class MapScaleAnimation extends Animation { > > private OnUpdateListener onUpdateListener; > > public void setOnUpdateListener(OnUpdateListener listener){ > onUpdateListener = listener; > } > > @Override > protected void applyTransformation(float interpolatedTime, > Transformation t) { > if(onUpdateListener != null){ > onUpdateListener.onUpdate(interpolatedTime); > } > } > > public interface OnUpdateListener { > public void onUpdate(float interpolatedTime); > } > > } >
hmm, seems OK to me, anyway you have working (not bad) solution w/ Handler :) what i like in Animation approach is that interpolatedTime [0..1] but if it doesn't work... tough luck pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en