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
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
/** * 设置数据适配器 * @param adapter */ public void setAdapter(FlowAdapter adapter) { mAdapter = adapter; if (mAdapter.getCount() != 0) { for (int i = 0; i < mAdapter.getCount(); i ++) { View view = mAdapter.getView(i); addView(view); } requestLayout(); } }
addView的时候报错呢,我在下面初始化了一个list,有影响吗
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
/**
* 设置数据适配器
* @param adapter
*/
public void setAdapter(FlowAdapter adapter) {
mAdapter = adapter;
if (mAdapter.getCount() != 0) {
for (int i = 0; i < mAdapter.getCount(); i ++) {
View view = mAdapter.getView(i);
addView(view);
}
requestLayout();
}
}
addView的时候报错呢,我在下面初始化了一个list,有影响吗
The text was updated successfully, but these errors were encountered: