android - Android 中的默认动画在哪里?

标签 android kotlin animation android-animation android-source

我想知道android中的默认动画在哪里可用?

当我点击应用程序图标时,有过渡动画。让我知道哪里可以使用过渡动画?

我 checkin 了 frameworks/base/core/res/res/anim但我仍然无法弄清楚添加了哪个类的默认动画。

  1. 当我第二次或第三次打开应用程序时,过渡是从下到上的。我需要修改没有动画。那么请告诉我这些默认动画在哪里可用?

最佳答案

我认为您正在寻找这些动画: (默认activityOpenEnterAnimation)

您可以在主题.xml 文件中覆盖它

Animation.Activity

在启动器 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/

相关文章:

ios - 如何使用 Facebook Pop Animation Framework 为 UIView 层背景颜色设置动画?

kotlin - 优化 for 循环以将项目添加到 map

java - Kotlin 的多平台依赖问题

ios - 方向旋转动画完成后如何调用drawRect

android - GCM onRegistered() 永远不会被调用

Android Jetpack 导航 Controller |获取当前目的地的操作列表

javascript - mousedown 上的动画环形图

Android:当AutoCompleteTextView获得焦点时禁用(或改变)返回键

android - 我如何 "restart"Android 中的触摸事件?

android - 重复库 gradle animatorlistener 重复