Android 底部弹出动画
16lz
2023-01-31
Android 底部弹出动画,使用overridePendingTransition 无效时,使用theme替代
在 AndroidManifest.xml中 修改activity 的theme,添加windowAnimationStyle
bottom_in:
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="1500" /> <alpha android:fromAlpha="0" android:toAlpha="1.0" android:duration="300"/>set>
bottom_out:
<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="3000"/> <alpha android:fromAlpha="1.0" android:toAlpha="0" android:duration="2000"/>set>
更多相关文章
- 箭头函数的基础使用
- NPM 和webpack 的基础使用
- Python list sort方法的具体使用
- 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
- android 使用html5作布局文件: webview跟javascript交互
- Android(安卓)Resource介绍和使用
- "Failed to fetch URL https://dl-ssl.google.com/android/repos
- 使用NetBeans搭建Android开发环境
- android 零星调试笔记