1
我想淡入一个元素,但以某种方式将其隐藏(GONE
)变为可见,将元素从中移除。我目前使用的动画是AlphaAnimation
将元素从变为可见(而不是从不可见)
Animation fadeIn = new AlphaAnimation(0, 1);
fadeIn.setInterpolator(new DecelerateInterpolator());
fadeIn.setDuration(2000);
但这只是它动画化从INVSIBLE
到VISIBLE
,我要的是把它从动画到GONE
VISIBLE
。
这甚至有可能吗?还是我必须通过对周围元素进行动画来使这变得更加复杂?