@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中java
2020-02-22 11:14:23.372 17755-17755/com.example.mytest I/Surface: opservice is null false
WUAWEI ANE-AL00 中 该textview 动画效果消失 直接展现动画结束效果node
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
未完待续android