华为 WUAWEI ANE-AL00属性动画失效

属性动画失效


 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        final View textView = findViewById(R.id.tv_button);
        final ViewGroup parentLayout = findViewById(R.id.root_parent);
        final ViewGroup.LayoutParams layoutParams = textView.getLayoutParams();
        Log.d(TAG, layoutParams.height + "   ");

        textView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {


                textView.animate()
                        .setInterpolator(new LinearInterpolator())
                        .translationY(parentLayout.getHeight()/4)
                        .setDuration(3500)
                        .start();


            }
        });

}

oneplus 6T 中表现 textview 动画执行正常

第一次点击 logcat中

2020-02-22 11:14:23.372 17755-17755/com.example.mytest I/Surface: opservice is null false

WUAWEI ANE-AL00 中 该textview 动画效果消失 直接展示动画结束效果

2020-02-22 11:25:33.361 17291-17291/com.example.mytest D/AwareBitmapCacher: handleInit switch not opened pid=17291
2020-02-22 11:25:33.386 17291-17291/com.example.mytest W/Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
2020-02-22 11:25:33.521 17291-17291/com.example.mytest I/ViewRootImpl: jank_removeInvalidNode all the node in jank list is out of time

未完待续

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值