Activity overridePendingTransition
来源:互联网 发布:mac wifi 未安装硬件 编辑:程序博客网 时间:2024/05/22 01:45
/**
* Call immediately after one of the flavors of {@link #startActivity(Intent)}
* or {@link #finish} to specify an explicit transition animation to
* perform next.
*
* <p>As of {@link android.os.Build.VERSION_CODES#JELLY_BEAN} an alternative
* to using this with starting activities is to supply the desired animation
* information through a {@link ActivityOptions} bundle to
* {@link #startActivity(Intent, Bundle) or a related function. This allows
* you to specify a custom animation even when starting an activity from
* outside the context of the current top activity.
*
* @param enterAnim A resource ID of the animation resource to use for
* the incoming activity. Use 0 for no animation.
* @param exitAnim A resource ID of the animation resource to use for
* the outgoing activity. Use 0 for no animation.
*/
public void overridePendingTransition(int enterAnim, int exitAnim) {
try {
ActivityManagerNative.getDefault().overridePendingTransition(
mToken, getPackageName(), enterAnim, exitAnim);
} catch (RemoteException e) {
}
}
* Call immediately after one of the flavors of {@link #startActivity(Intent)}
* or {@link #finish} to specify an explicit transition animation to
* perform next.
*
* <p>As of {@link android.os.Build.VERSION_CODES#JELLY_BEAN} an alternative
* to using this with starting activities is to supply the desired animation
* information through a {@link ActivityOptions} bundle to
* {@link #startActivity(Intent, Bundle) or a related function. This allows
* you to specify a custom animation even when starting an activity from
* outside the context of the current top activity.
*
* @param enterAnim A resource ID of the animation resource to use for
* the incoming activity. Use 0 for no animation.
* @param exitAnim A resource ID of the animation resource to use for
* the outgoing activity. Use 0 for no animation.
*/
public void overridePendingTransition(int enterAnim, int exitAnim) {
try {
ActivityManagerNative.getDefault().overridePendingTransition(
mToken, getPackageName(), enterAnim, exitAnim);
} catch (RemoteException e) {
}
}
0 0
- Activity overridePendingTransition
- Activity.overridePendingTransition(int, int)
- Activity动画切换overridePendingTransition
- Activity切换动画overridePendingTransition
- Activity overridePendingTransition动画效果
- activity——overridePendingTransition
- Activity overridePendingTransition 切换动画
- Activity切换效果(overridePendingTransition)
- Android Activity切换动画overridePendingTransition
- Activity切换效果(overridePendingTransition)
- Activity切换效果(overridePendingTransition)
- Android Activity切换动画overridePendingTransition
- Android Activity切换动画overridePendingTransition
- Activity切换效果(overridePendingTransition)
- overridePendingTransition设置Activity切换动画
- 关于Activity跳转动画overridePendingTransition
- Activity切换之overridePendingTransition初探
- Activity切换之overridePendingTransition初探
- linux 下安装Beyond Compare
- C++ 虚函数表解析
- 【读书笔记】【delphi高手突破】TCanvas与Windows GDI
- C#操作CouchBase
- linux系统ps命令解析
- Activity overridePendingTransition
- ubuntu adduser,useradd命令
- jquery 对于radio的操作总结
- [澳门赌场]欢迎您!
- JavaScript的单线程性质以及定时器的工作原理
- 三维渲染引擎专题--各种数格式总结
- WIN7系统的桌面突然不好使了,右键没反应,桌面上所有的图标点击都没反应explorer
- wpf程序异常捕获,主线程捕获和线程捕获,全局性方法
- VS2010 MFC MessageBox _T