We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原因是动画还没初始化就触发了onTextChanged()方法,导致 mAnimator_gone.end();空指针。 解决方法:在 mAnimator_gone.end();之前判空就行,补上代码 /** * 结束所有动画 */ private void endAnaimator(){ if (mAnimator_gone == null||mAnimator_visible == null){ return; } if (mAnimator_gone.isRunning()){ mAnimator_gone.end(); } if (mAnimator_visible.isRunning()){ mAnimator_visible.end(); } }
其实这并不是什么严重的bug,真正使用是并不会出现,只是我测试的时候在XML上赋了值,姑且提个issues。最后,感谢楼主的代码!刚开始用,后续看看体验如何。 还有就是楼主有时间可以更新下代码,适配下androidx!!0.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
原因是动画还没初始化就触发了onTextChanged()方法,导致 mAnimator_gone.end();空指针。
解决方法:在 mAnimator_gone.end();之前判空就行,补上代码
/**
* 结束所有动画
*/
private void endAnaimator(){
if (mAnimator_gone == null||mAnimator_visible == null){
return;
}
if (mAnimator_gone.isRunning()){
mAnimator_gone.end();
}
if (mAnimator_visible.isRunning()){
mAnimator_visible.end();
}
}
其实这并不是什么严重的bug,真正使用是并不会出现,只是我测试的时候在XML上赋了值,姑且提个issues。最后,感谢楼主的代码!刚开始用,后续看看体验如何。
还有就是楼主有时间可以更新下代码,适配下androidx!!0.0
The text was updated successfully, but these errors were encountered: