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.
如何做到这一点,以便当我将子视图添加到视图中时,父视图会拉伸到新视图所需的大小。目前,该应用程序刚刚弹出到所需的大小,但我希望它能够增长。
我怎样才能做到这一点?
我希望它是一个渐进的、动画的过渡。
您可以将动画与 applyTransformation 一起使用。
Animation animation = new Animation() { @Override protected void applyTransformation(float interpolatedTime, Transformation t) { super.applyTransformation(interpolatedTime, t); //some change views } };