animatorset

Trying to reset values from Property Animator to be used in recycler view

天大地大妈咪最大 提交于 2019-12-25 08:48:14
问题 Been doing some animation inside of a row in RecyclerView (not the row itself. Imagine expanding text) and there are times when the animation leaks to other recycled views which should not have that animation in them. Since I use property animation the scale action resizes the inner view and the leak can be seen in 2 aspects: 1) The animation will go on (This I could overcome with some guards) 2) The view has been resized and stopped in its tracks and so it will be reflected in the recycled

Animator/AnimatorSet issue on some devices

五迷三道 提交于 2019-12-13 13:34:24
问题 I have made some tests with the ObjectAnimator class on some devices and everything is OK except for one device : Huawei P8 Lite 2017. On this device, the View "disappears" when the animation starts and "appears" at the end. The issue appears only when I'm using AnimatorSet/Animator (Java code or XML), but animations which use the old Animation class (TranslateAnimation, AlphaAnimation...) are working well. Here is the list of devices where there is no issue : Nexus 5 Nexus 5X Nexus 9 HTC One