I am working on a project in android.In this project i have to move an image from one place to other.i did it using translateanimation.But it is not moving smoothly.Can anyone suggest using opengl?
            Asked
            
        
        
            Active
            
        
            Viewed 761 times
        
    2 Answers
0
            
            
        if your intantion is to move the image as per touch then there is no need to use opengl
plse refer this question which is shown how to move the image using touch click here
        Community
        
- 1
 - 1
 
        dharmendra
        
- 7,835
 - 5
 - 38
 - 71
 
0
            You can move an image smoothly with translateanimation by using setDuration().
try this code
TranslateAnimation anim = new TranslateAnimation(xFrom,xTo,yFrom,yTo);
anim.setDuration(2000);
image.setAnimation(anim); 
        surendra
        
- 2,217
 - 7
 - 34
 - 42