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

/**设置数据集合*/ #14

Open
Trammels opened this issue Jul 24, 2019 · 0 comments
Open

/**设置数据集合*/ #14

Trammels opened this issue Jul 24, 2019 · 0 comments

Comments

@Trammels
Copy link

/*设置数据集合/
public void setDatas(List datas){
this.mDatas = datas;
if (DisplayUtils.notEmpty(mDatas)){
mViewFlipper.removeAllViews();
for (int i = 0; i < mDatas.size(); i++) {
TextView textView = new TextView(getContext());
setTextView(textView,i);

            mViewFlipper.addView(textView,i);//添加子view,并标识子view位置
        }
    }

}

这个逻辑是错误的,如果开始有数据,重新设置一个无数据的,这个就没有办法刷新,可能开始就没有考虑过这种情况吧

Originally posted by @Trammels in #4 (comment)

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