3

I want to move, in an anmiated way, a TextView in a LinearLayout into another LinearLayout. However, I can't get it to move outside its container view (the LinearLayout it is in), it only moves inside this. Can someone help me to get this done? Also see the following image: textviews and linearlayouts

I'm using the NineOldAndroids library and have tried with the ViewPropertyAnimator:

animate(myTextView).setDuration(500).x(?).y(?);

And also with:

animate(myTextView).setDuration(500).translationX(?).translationY(?);

Instead of the '?' in above I want to be able to find out the position of the LinearLayout I want to drop the TextViews in. (If it's not possible to move to a certain View by stating the View-object).

moviaa
  • 402
  • 1
  • 4
  • 16
  • The problem isn't really clear. Doesn't the animation work? Or are the values your getting from the LinearLayout position null? – Tim Kranen Nov 16 '13 at 15:47
  • @TimKranen: I edited the question to make it a bit clearer. The animation works, but I can't get the TextView to move outside the LinearLayout it is in. – moviaa Nov 16 '13 at 16:05

1 Answers1

5

What need to be done is to add "android:clipChildren="false"" to all the container layouts.

moviaa
  • 402
  • 1
  • 4
  • 16