Skip to content
New issue

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

根据内容给控件设置背景色切换的问题 #78

Open
luhuanxml opened this issue Apr 13, 2019 · 0 comments
Open

根据内容给控件设置背景色切换的问题 #78

luhuanxml opened this issue Apr 13, 2019 · 0 comments

Comments

@luhuanxml
Copy link

//textView = (TextView) getChildAt((getDisplayedChild()+1) % 3);
TextView textView = (TextView) getCurrentView();
这里如果让离开动画有效的时候,设置背景色,在两个颜色的切换中会有头一个颜色错误的情况,比如我有10条数据,前五条为红色,后五条为绿色,当我是用getDisplayedChild()+1的时候动画虽然是正常的,但是会出现第五条数据为绿色的情况,然后后面第十条数据为绿色。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant