当前位置:网站首页>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);
边栏推荐
- Interview: how does the list duplicate according to the attributes of the object?
- Wechat applet - simple diet recommendation (4)
- 官网给的这个依赖是不是应该为flink-sql-connector-mysql-cdc啊,加了依赖调
- How to write high-quality code?
- View Slide
- > Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
- Livedata interview question bank and answers -- 7 consecutive questions in livedata interview~
- 面试:List 如何根据对象的属性去重?
- 微信小程序中,从一个页面跳转到另一个页面后,在返回后发现页面同步滚动了
- Swift tableview style (I) system basic
猜你喜欢
如何获取GC(垃圾回收器)的STW(暂停)时间?
Kotlin compose multiple item scrolling
宝塔面板MySQL无法启动
【小技巧】获取matlab中cdfplot函数的x轴,y轴的数值
Six simple cases of QT
【小技巧】獲取matlab中cdfplot函數的x軸,y軸的數值
pytorch输出tensor张量时有省略号的解决方案(将tensor完整输出)
钉钉、企微、飞书学会赚钱了吗?
StaticLayout的使用详解
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
随机推荐
Wechat applet - simple diet recommendation (2)
Openes version query
Constraintlayout officially provides rounded imagefilterview
Advanced opencv:bgr pixel intensity map
oracle和mysql批量Merge对比
Unity particle special effects series - the poison spray preform is ready, and the unitypackage package is directly used - on
Getting started with Apache dolphin scheduler (one article is enough)
官网给的这个依赖是不是应该为flink-sql-connector-mysql-cdc啊,加了依赖调
RMS TO EAP通过MQTT简单实现
RMS to EAP is simply implemented through mqtt
把欧拉的创新带向世界 SUSE 要做那个引路人
The most complete is an I2C summary
WorkManager的学习二
Is it really reliable for AI to make complex decisions for enterprises? Participate in the live broadcast, Dr. Stanford to share his choice | qubit · viewpoint
程序员搞开源,读什么书最合适?
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
The essence of persuasion is to remove obstacles
Redis如何实现多可用区?
Windows uses commands to run kotlin
Kotlin compose multiple item scrolling