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);
}
TestSetupAssetLayoutAnimations2.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:itsnat_droid
作者:
评论列表
文章目录