android - Flip animation is not working properly -


i have been working flip animation in android. have tested animation image view , it's working correctly imageview in both side of animation cannot figure how make work correctly textview on both sides. have used alpha setback preview of second textview. when compile code, can see first textview expected, after clicking button, can see preview of first part of animation don't see second textview on view. after clicking button again, can again see first textview flipping up.

public class flip3danimation  extends animation { private final float mfromdegrees; private final float mtodegrees; private final float mcenterx; private final float mcentery; private camera mcamera;  public flip3danimation(float fromdegrees, float todegrees,                        float centerx, float centery) {     mfromdegrees = fromdegrees;     mtodegrees = todegrees;     mcenterx = centerx;     mcentery = centery; }  @override public void initialize(int width, int height, int parentwidth, int parentheight) {     super.initialize(width, height, parentwidth, parentheight);     mcamera = new camera(); }  @override protected void applytransformation(float interpolatedtime, transformation t) {     final float fromdegrees = mfromdegrees;     float degrees = fromdegrees + ((mtodegrees - fromdegrees) * interpolatedtime);     final float centerx = mcenterx;     final float centery = mcentery;     final camera camera = mcamera;      final matrix matrix = t.getmatrix();     camera.save();     camera.rotatey(degrees);     camera.getmatrix(matrix);     camera.restore();     matrix.pretranslate(-centerx, -centery);     matrix.posttranslate(centerx, centery);  } 

}


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -