public class MainActivity extends Activity {

 @Override
 public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  GraphicsView graphicsView;
  graphicsView = new GraphicsView(this);
  setContentView(graphicsView);

 }

 private static class GraphicsView extends View {
  private static final String AnimatedTxt = "This Sample Program Shows, Aniamtion Using Path. This is very simple and easy to understand."; 
  private Animation rotateAnim, scaleAnimatin;
  private Context context;  
  public GraphicsView(Context context) { 
   super(context);     
   this.context = context;
   
  }       
  private void createAnim(Canvas canvas) {  
   scaleAnimatin = new ScaleAnimation( 1.0f, 1.7f, 1.0f, 1.7f, ScaleAnimation.RELATIVE_TO_SELF, 0.5f, ScaleAnimation.RELATIVE_TO_SELF, 0.5f);
   scaleAnimatin.setFillAfter(false);
   scaleAnimatin.setDuration(3000);
   scaleAnimatin.setRepeatCount(3);
   scaleAnimatin.setInterpolator(this.context, android.R.anim.accelerate_interpolator);
   scaleAnimatin.setRepeatMode( Animation.REVERSE );
   startAnimation(scaleAnimatin);
   
  }  
  @Override    
  protected void onDraw(Canvas canvas) {       
   super.onDraw(canvas); 
   // creates the animation the first time    
   if (scaleAnimatin == null) {        
    createAnim(canvas);      
   }          
   Paint paint = new Paint();           
   paint.setColor(Color.GREEN);     
   paint.setTextSize(30);       
   paint.setAntiAlias(true);
   paint.setStrokeCap(Cap.SQUARE);
   paint.setDither(true);
   
   canvas.drawText(AnimatedTxt, 100, 300, paint);
  }    
 }
}

 

소스는 위와 같구요

LG폰에서는 부드 럽게 나오는데

유독 삼성폰에서만 애니메이션이 자연스럽지 못하네요..

 

해결 방법알고 계신분 있으신가요?