• android viewconfiguration


    简介: ViewConfiguration 是系统中关于视图的各种特性的常量记录对象。其中包含各种基础数据

    ViewConfiguration中的值一般是在编写高级控件是才会用到。由于常量非常多,部分常量光看说明无法知道其真实作用,这是一个慢慢收集记录的过程,在实际运用中遇到新的常量我会慢慢添加。

    //在可滑动的控件中用于区别单击子控件和滑动操作的一个伐值。

    mTouchSlop = configuration.getScaledTouchSlop();

    //用于设置最小加速率和最大速率
    mMinimumVelocity = configuration.getScaledMinimumFlingVelocity();
    mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();

    //滚动距离
    mOverscrollDistance = configuration.getScaledOverscrollDistance();

    //fling距离
    mOverflingDistance = configuration.getScaledOverflingDistance();

    //摩擦力,用来计算减速度

    ViewConfiguration.getScrollFriction()

    mDeceleration = computeDeceleration(ViewConfiguration.getScrollFriction());

    computeDeceleration 公式

     return SensorManager.GRAVITY_EARTH   // g (m/s^2)
                          * 39.37f               // inch/meter
                          * mPpi                 // pixels per inch
                          * friction;

  • 相关阅读:
    OSCP Learning Notes Buffer Overflows(3)
    OSCP Learning Notes Buffer Overflows(5)
    OSCP Learning Notes Exploit(3)
    OSCP Learning Notes Exploit(4)
    OSCP Learning Notes Exploit(1)
    OSCP Learning Notes Netcat
    OSCP Learning Notes Buffer Overflows(4)
    OSCP Learning Notes Buffer Overflows(1)
    OSCP Learning Notes Exploit(2)
    C++格式化输出 Learner
  • 原文地址:https://www.cnblogs.com/itpepe/p/4771712.html
Copyright © 2020-2023  润新知