View still there but not visible after being moved out by animation

前端 未结 1 1337
囚心锁ツ
囚心锁ツ 2020-12-22 06:12

I have a small but annoying probleme with animations on views in Android.

What is involved: I have a FrameLayout in another FrameLayout contained in a xml.



        
相关标签:
1条回答
  • 2020-12-22 06:38

    EDIT: Things have changed since the advent of 3.0 Honeycomb. There is a whole new animation system to take advantage of, take a look here: Android Developer's Blog

    Animations do NOT effect the 'physical' location of the views on screen. If you want it to actually move then you need to adjust the properties of the view.

    An easier solution for your situation would be to use the SlidingDrawer widget that is included in the SDK. Since you are trying to achieve a pull out menu this seems like a perfect fit.

    0 讨论(0)
提交回复
热议问题