Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个布局设置:
相对布局
LinearLayout #1 (visible by default) LinearLayout #2 (invisible by default)
当我隐藏 Layout#1 并显示 Layout#2 时,我需要的是有一个(滑动或淡出)动画。
这怎么可能?
View.startAnimation(动画)
尝试使用ViewFlipper。我认为这正是你想要的。它允许在具有自定义动画的视图之间切换。