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
/** * 子item布局的UI设置 * * @param holder * @param groupIndex * @param childIndex / @SuppressLint({"SetTextI18n", "ResourceType"}) @OverRide protected void onBindChildViewHolder(ChildHolder holder, int groupIndex, int childIndex) { RowsBeanX childBean = groupList.get(groupIndex); holder.errornumber.setText(childBean.errQuestionInfoList.get(childIndex).errCount + "道"); holder.questionname.setText(childBean.errQuestionInfoList.get(childIndex).normalContent); /* * 最原始的版本 */ if (childIndex == 0) { holder.stringview.setVisibility(View.VISIBLE); } else { holder.stringview.setVisibility(View.GONE); } // 当前的位置 if (childIndex == childBean.errQuestionInfoList.size()-1) { Log.i("子item位置", ":子item位置" + childIndex); holder.childbackground.setBackgroundResource(R.drawable.openhome_childlast_shape); // 设置边框下部分圆滑 } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
/**
* 子item布局的UI设置
*
* @param holder
* @param groupIndex
* @param childIndex
/
@SuppressLint({"SetTextI18n", "ResourceType"})
@OverRide
protected void onBindChildViewHolder(ChildHolder holder, int groupIndex, int childIndex) {
RowsBeanX childBean = groupList.get(groupIndex);
holder.errornumber.setText(childBean.errQuestionInfoList.get(childIndex).errCount + "道");
holder.questionname.setText(childBean.errQuestionInfoList.get(childIndex).normalContent);
/*
* 最原始的版本
*/
if (childIndex == 0) {
holder.stringview.setVisibility(View.VISIBLE);
} else {
holder.stringview.setVisibility(View.GONE);
}
// 当前的位置
if (childIndex == childBean.errQuestionInfoList.size()-1) {
Log.i("子item位置", ":子item位置" + childIndex);
holder.childbackground.setBackgroundResource(R.drawable.openhome_childlast_shape); // 设置边框下部分圆滑
}
}
The text was updated successfully, but these errors were encountered: