zoukankan      html  css  js  c++  java
  • 【Android】ScaleAnimation 详解

    ScaleAnimation类是Android系统中的尺寸变化动画类,用于控制View对象的尺寸变化,该类继承于Animation类。ScaleAnimation类中的很多方法都与Animation类一致,该类中最常用的方法便是ScaleAnimation构造方法。

    【基本语法】public ScaleAnimation (float fromX, float toX, float fromY, float toY, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue)

    参数说明

    fromX:起始X坐标上的伸缩尺寸。

    toX:结束X坐标上的伸缩尺寸。

    fromY:起始Y坐标上的伸缩尺寸。

    toY:结束Y坐标上的伸缩尺寸。

    pivotXType:X轴的伸缩模式,可以取值为ABSOLUTE、RELATIVE_TO_SELF、RELATIVE_TO_PARENT。

    pivotXValue:X坐标的伸缩值。

    pivotYType:Y轴的伸缩模式,可以取值为ABSOLUTE、RELATIVE_TO_SELF、RELATIVE_TO_PARENT。

    pivotYValue:Y坐标的伸缩值。

    有三种默认值:

    RELATIVE_TO_PARENT 相对于父控件

    RELATIVE_TO_SELF 相对于符自己

    RELATIVE_TO_ABSOLUTE 绝对坐标

  • 相关阅读:
    HIFU控制器的显示板
    风扇控制板
    直流源控制板
    HIFU的心脏
    强劲的全桥驱动
    脑电模块
    另一个12导联心电模块
    数据处理,pandas方面遇到的问题
    6.13 django
    python 零基础学习之路-06 常用模块
  • 原文地址:https://www.cnblogs.com/rayray/p/3382539.html
Copyright © 2011-2022 走看看