当前位置:网站首页>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);
边栏推荐
- leetcode:1200. 最小绝对差
- [论文阅读] CKAN: Collaborative Knowledge-aware Atentive Network for Recommender Systems
- 《剑来》语句摘录(七)
- [tips] get the x-axis and y-axis values of cdfplot function in MATLAB
- AtCoder Beginner Contest 254「E bfs」「F st表维护差分数组gcd」
- 天龙八部TLBB系列 - 关于技能冷却和攻击范围数量的问题
- 钉钉、企微、飞书学会赚钱了吗?
- Kotlin compose multiple item scrolling
- C function returns multiple value methods
- The essence of persuasion is to remove obstacles
猜你喜欢

How do programmers live as they like?

Constrained layout flow

How to write high-quality code?

Comment obtenir le temps STW du GC (collecteur d'ordures)?

Six simple cases of QT

历史上的今天:第一本电子书问世;磁条卡的发明者出生;掌上电脑先驱诞生...

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

Events and bubbles in the applet of "wechat applet - Basics"

宝塔面板MySQL无法启动

How to get the STW (pause) time of GC (garbage collector)?
随机推荐
能源势动:电力行业的碳中和该如何实现?
请问大佬们 有遇到过flink cdc mongdb 执行flinksql 遇到这样的问题的么?
Openes version query
Z-blog template installation and use tutorial
如何獲取GC(垃圾回收器)的STW(暫停)時間?
Tianlong Babu TLBB series - questions about skill cooling and the number of attack ranges
Detailed explanation of the use of staticlayout
把欧拉的创新带向世界 SUSE 要做那个引路人
@Serializedname annotation use
.Net之延迟队列
Generics, generic defects and application scenarios that 90% of people don't understand
【 conseils 】 obtenir les valeurs des axes X et y de la fonction cdfplot dans MATLAB
The horizontally scrolling recycleview displays five and a half on one screen, lower than the average distribution of five
善用兵者,藏于无形,90 分钟深度讲解最佳推广价值作品
程序员如何活成自己喜欢的模样?
How to write high-quality code?
LiveData 面试题库、解答---LiveData 面试 7 连问~
WorkManager学习一
The king of pirated Dall · e? 50000 images per day, crowded hugging face server, and openai ordered to change its name
ArcGIS Pro creating features