使用Pro Guard后动画不起作用

时间:2018-06-28 15:46:00

标签: android animation proguard objectanimator

我正在使用以下代码制作动画。使用Pro Guard后,动画无法正常工作。如果minifyEnabled false,则运行完美。帮帮我,谢谢您

ViewWeightAnimationWrapper animationWrapper1 = new ViewWeightAnimationWrapper(partone_ll);
            ObjectAnimator anim1 = ObjectAnimator.ofFloat(animationWrapper1,
                    "weight",
                    animationWrapper1.getWeight(),
                    1.8f);
            anim1.setDuration(1000);
            anim1.start();

0 个答案:

没有答案