2

I am new in android. I want to use the translate animation in android. I want that the red rounded image comes from center of the layout. It comes . But i want that the red rounded image comes back from the center image which color is green.

I am not able to attach image because my reputation below 15.

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
Gaurav kumar
  • 796
  • 2
  • 8
  • 25

2 Answers2

0

You will have to take 2 images - red and green. You will have to use AnimationListners for that and maintain boolean variable to check whether you want to animate red color or green color.

Zankhna
  • 4,570
  • 9
  • 62
  • 103
  • 1
    i am able to translate image from 1 loc to another loc. But the problem is that 2nd image going from up of image 1. i want that 2nd image go bellow from image 1. – Gaurav kumar Oct 09 '13 at 07:41
  • Sorry, I am not getting what you are trying to do. Post some code. – Zankhna Oct 09 '13 at 07:43
  • 1
    OK thanks allot when i got 15 reputation then i post this question again with image – Gaurav kumar Oct 09 '13 at 07:45
  • @zanky, can you help me with this translate animation, I have been trying to get this thing to run, Apparently I am not able to get location for any imageview in my code, Kindly help – Pankaj Nimgade Feb 20 '15 at 06:43
0

you need to structure you layout with this images. 2image must be under 1 image on your layout.

Sergey Sheleg
  • 720
  • 6
  • 6