当前位置:网站首页>Activity enter exit animation
Activity enter exit animation
2022-07-05 10:16:00 【asahi_ xin】
1. translation
activity_next_enter
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="100%p"
android:toXDelta="0">
</translate>
activity_next_exit
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0"
android:toXDelta="-100%p">
</translate>
activity_up_enter
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="-100%p"
android:toXDelta="0">
</translate>
activity_up_exit
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="300"
android:fromXDelta="0"
android:toXDelta="100%p">
</translate>
Call in
...
overridePendingTransition(R.anim.activity_next_enter, R.anim.activity_next_exit);
super.onCreate(savedInstanceState);
Call exit
finish();
overridePendingTransition(R.anim.activity_up_enter, R.anim.activity_up_exit);
边栏推荐
- 学习笔记4--高精度地图关键技术(下)
- Applet image height adaptation and setting text line height
- Generics, generic defects and application scenarios that 90% of people don't understand
- 自动化规范检查软件如何发展而来?
- 宝塔面板MySQL无法启动
- Tianlong Babu TLBB series - questions about skill cooling and the number of attack ranges
- php解决redis的缓存雪崩,缓存穿透,缓存击穿的问题
- Swift uses userdefaults and codable to save an array of class objects or structure instances
- [C language] the use of dynamic memory development "malloc"
- To bring Euler's innovation to the world, SUSE should be the guide
猜你喜欢
> Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
Detailed explanation of the use of staticlayout
能源势动:电力行业的碳中和该如何实现?
一个程序员的职业生涯到底该怎么规划?
Swift tableview style (I) system basic
Implementation of smart home project
How to plan the career of a programmer?
硬核,你见过机器人玩“密室逃脱”吗?(附代码)
Kotlin compose and native nesting
随机推荐
小程序中自定义行内左滑按钮,类似于qq和wx消息界面那种
Constraintlayout officially provides rounded imagefilterview
How to write high-quality code?
横向滚动的RecycleView一屏显示五个半,低于五个平均分布
Apache dolphin scheduler system architecture design
. Net delay queue
Swift saves an array of class objects with userdefaults and nssecurecoding
@SerializedName注解使用
MySQL数字类型学习笔记
一个程序员的职业生涯到底该怎么规划?
Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
Interview: is bitmap pixel memory allocated in heap memory or native
历史上的今天:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生...
Implementation of smart home project
A large number of virtual anchors in station B were collectively forced to refund: revenue evaporated, but they still owe station B; Jobs was posthumously awarded the U.S. presidential medal of freedo
C function returns multiple value methods
如何写出高质量的代码?
AtCoder Beginner Contest 258「ABCDEFG」
Lepton 无损压缩原理及性能分析