当前位置:网站首页>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);
边栏推荐
- C function returns multiple value methods
- Advanced opencv:bgr pixel intensity map
- Tianlong Babu TLBB series - questions about skill cooling and the number of attack ranges
- @SerializedName注解使用
- Single chip microcomputer principle and Interface Technology (esp8266/esp32) machine human draft
- > Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
- The Alipay in place function can't be found, and the Alipay in place function is offline
- Events and bubbles in the applet of "wechat applet - Basics"
- 微信小程序中,从一个页面跳转到另一个页面后,在返回后发现页面同步滚动了
- MySQL character type learning notes
猜你喜欢

程序员搞开源,读什么书最合适?

> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复

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

Windows uses commands to run kotlin

Detailed explanation of the use of staticlayout

Usage differences between isempty and isblank

Single chip microcomputer principle and Interface Technology (esp8266/esp32) machine human draft

Constrained layout flow

Those who are good at using soldiers, hide in the invisible, and explain the best promotional value works in depth in 90 minutes

Redis如何实现多可用区?
随机推荐
钉钉、企微、飞书学会赚钱了吗?
Getting started with Apache dolphin scheduler (one article is enough)
Lepton 无损压缩原理及性能分析
苹果 5G 芯片研发失败?想要摆脱高通为时过早
Usage differences between isempty and isblank
QT event filter simple case
(1) Complete the new construction of station in Niagara vykon N4 supervisor 4.8 software
Kotlin compose and native nesting
Dedecms website building tutorial
WorkManager学习一
Personal website construction tutorial | local website environment construction | website production tutorial
php解决redis的缓存雪崩,缓存穿透,缓存击穿的问题
Apache dolphin scheduler system architecture design
【JS】数组降维
Meitu lost 300 million yuan in currency speculation for half a year. Huawei was exposed to expand its enrollment in Russia. Alphago's peers have made another breakthrough in chess. Today, more big new
Constrained layout flow
[200 opencv routines] 219 Add digital watermark (blind watermark)
flink cdc不能监听mysql日志,大家遇到过这个问题吧?
Matrix processing practice
Node red series (29): use slider and chart nodes to realize double broken line time series diagram