我想知道android中的默认动画在哪里可用?
当我点击应用程序图标时,有过渡动画。让我知道哪里可以使用过渡动画?
我 checkin 了 frameworks/base/core/res/res/anim但我仍然无法弄清楚添加了哪个类的默认动画。
- 当我第二次或第三次打开应用程序时,过渡是从下到上的。我需要修改没有动画。那么请告诉我这些默认动画在哪里可用?
最佳答案
我认为您正在寻找这些动画: (默认activityOpenEnterAnimation)
您可以在主题.xml 文件中覆盖它
在启动器 Activity 中尝试使用 Alpha 动画:
LinearLayout layout = (LinearLayout) findViewById(R.id.idLayout); // Your layout
AlphaAnimation animation = new AlphaAnimation(0.0f , 1.0f ) ;
animation.setFillAfter(true);
animation.setDuration(1200);
//apply the animation ( fade In ) to your Layout
layout.startAnimation(animation);
关于android - Android 中的默认动画在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70388308/