TestSetupAssetLayoutAnimations2.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:itsnat_droid 作者:
private static void initInterpolatorAnticipateOvershootTest(TestActivity act, View rootView,InflatedLayout layout)
{
    TextView textView = getTextView(rootView,R.id.antOverInterpolatorTestId1);
    Animation animation = getAnimation(act,layout);

    AnticipateOvershootInterpolator interpolator = (AnticipateOvershootInterpolator)getInterpolator(
            R.anim.test_interpolator_anticipateovershoot_compiled,
            "@assets:anim/res/anim/test_interpolator_anticipateovershoot_asset.xml",act,layout);

    animation.setInterpolator(interpolator);
    textView.startAnimation(animation);

    Assert.assertEquals((Float)TestUtil.getField(interpolator,AnticipateOvershootInterpolator.class,"mTension"),3.0f * 2.0f);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号