频道栏目
IT货架 > > 正文
Android 屏幕切换动画
网友分享于:Jan 1, 1970 8:00:00 AM    来源: IT货架   

标签:des   android   style   blog   class   code   

public void overridePendingTransition (int enterAnim, int exitAnim)

  Call immediately after one of the flavors of startActivity(Intent) or finish() to specify an explicit transition animation to perform next.

As of JELLY_BEAN an alternative to using this with starting activities is to supply the desired animation information through a ActivityOptions 

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.

 

1.左右滑动

bubuko.com,布布扣

1.1 右进左出

right_in.xml

left_out.xml

1.2左进右出

left_in.xml

right_out.xml

 

2.上下滑动也一样

bubuko.com,布布扣

3.关于设置动画值

http://developer.android.com/guide/topics/resources/animation-resource.html#Twee

 

<translate>

A vertical and/or horizontal motion. Supports the following attributes in any of the following three formats:

values from -100 to 100 ending with "%", indicating a percentage relative to itself;

values from -100 to 100 ending in "%p", indicating a percentage relative to its parent;

a float value with no suffix, indicating an absolute value.

Android 屏幕切换动画,布布扣,bubuko.com

Android 屏幕切换动画

标签:des   android   style   blog   class   code   

广告服务联系QQ:1134687142 | 网站地图

版权所有: IT货架- 内容来自互联网,仅供用于技术学习,请遵循相关法律法规. 京ICP备11030978号-1