transition在xml中的属性

transition属性:

android:duration Amount of time (in milliseconds) that the transition should run.
android:interpolator Interpolator to be used in the animations spawned by this transition.
android:matchOrder The match order to use for the transition.
android:startDelay Delay in milliseconds before the transition starts.


ChangeBounds 继承自transition
This transition captures the layout bounds of target views before and after the scene change and animates those changes during the transition.

在scene改变之前和之后捕捉目标视图的layout 边界


A ChangeBounds transition can be described in a resource file by using the tag changeBounds, 

using its attributes of ChangeBounds along with the other standard attributes of Transition.

特有属性:
android:resizeClip Resize the view by adjusting the clipBounds rather than changing the dimensions of the view itself.


ChangeTransform 继承自transition

This Transition captures scale and rotation for Views before and after the scene change and animates those changes during the transition. 

A change in parent is handled as well by capturing the transforms from the parent before and after the scene change and animating those during the transition.

在这个转场的过程中,在scene改变之前和之后捕捉视图的缩放和旋转,并且在此过度动画期间使这些变化更栩栩如生(更炫更酷更流畅)

这种变化如果在父类中被处理,就通过父类去捕捉这种改变在scene改变之前和之后,并且在此过度动画期间使这些变化更栩栩如生(更炫更酷更流畅)。


特有属性:

android:reparent Tells ChangeTransform to track parent changes.
android:reparentWithOverlay A parent change should use an overlay or affect the transform of the transitionining View.


ChangeClipBounds    没有自己特有的属性

ChangeClipBounds captures the getClipBounds() before and after the scene change and animates those changes during the transition.


ChangeImageTransform  没有自己特有的属性
This Transition captures an ImageView's matrix before and after the scene change and animates it during the transition.

In combination with ChangeBounds, ChangeImageTransform allows ImageViews that change size, shape, or ImageView.ScaleType to animate contents smoothly.

在scene改变之后和之后捕捉ImageView的矩阵

组合使用ChangeBounds, ChangeImageTransform,允许Imageviews 改变自己的大小,形状及ScaleType,使这些内容更顺滑流畅。

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


下面是ValueAnimation和ObjectAnimation中的 propertyName

1,translationX and translationY: These properties control where the View is located as a delta from its left and top coordinates which are set by its layout container.


2,rotation, rotationX, androtationY: These properties control the rotation in 2D (rotation property) and 3D around the pivot point.


3,scaleX and scaleY: These properties control the 2D scaling of a View around its pivot point.


     pivotX and pivotY: These properties control the location of the pivot point, around which the rotation and scaling transforms occur. By default, the pivot point is located at the center of the object.


    x and y: These are simple utility properties to describe the final location of the View in its container, as a sum of the left and top values and translationX and translationY values.


4,alpha: Represents the alpha transparency on the View. This value is 1 (opaque) by default, with a value of 0 representing full transparency (not visible).












  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值