0

I have a linear layout and small view (50px - 50px), all I want to do is to move this view in to the parent (linear layout in my case). It doesn't have to be linear layout but if possible I want my wrapper to be linear layout. enter image description here

What is the right way to move a drawable in the parent ? my small green view is an image (R.drawable.myimage) and I want to be able to easily move this image in the parent, the movement should me smooth

i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
Lukap
  • 31,523
  • 64
  • 157
  • 244

1 Answers1

0

The easiest solution is the built-in TranslateAnimation.

If you're moving in straight lines, it works fine.

You may need to be more specific about your needs: when will it animate? What types of paths will it follow?

Dave Newton
  • 158,873
  • 26
  • 254
  • 302