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
No description provided.
The text was updated successfully, but these errors were encountered:
大神 有看的吗
Sorry, something went wrong.
你可以看看我写的Demo的,由于从Adapter中获取到的position是不准的,所以是保存在list的每个Item中的
你好 我按照你上面说的写了,出现了一个问题,在当前卡片快滑动出去的时候,下一张卡片还是原来列表中的数据,当完全划出时,会闪一下变成新的布局。所以现在我想达到的效果是,当在滑动的过程中,下一个card显示的是另外一个布局,请问有办法吗 多布局的实现我写在一个布局中,通过控制显示隐藏来实现的。
var bean = datalist[position] var num = if (position == 0) { tempList?.indexOf(bean) } else { -1 }
if (num!= -1 &&num!=0 && num % 5 == 0) { holder.publisherAdView.visibility = View.VISIBLE holder.rl_content.visibility = View.GONE ... } else { holder.publisherAdView.visibility = View.GONE holder.rl_content.visibility = View.VISIBLE ..... holder?.img?.setRemoteImagePicass(bean.avatar, R.mipmap.holder) ... }
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: