alibaba / vlayout

Project vlayout is a powerfull LayoutManager extension for RecyclerView, it provides a group of layouts for RecyclerView. Make it able to handle a complicate situation when grid, list and other layouts in the same recyclerview.
http://tangram.pingguohe.net/
MIT License
10.8k stars 1.8k forks source link

镜像环境,GridLayoutHelper不满SpanCount的行数条目位置未镜像问题 #469

Open wkp111 opened 5 years ago

wkp111 commented 5 years ago

我们使用GridLayoutHelper在进行网格布局时,在镜像环境下,发现条目数据已经镜像了,满SpanCount的一行条目,位置也是镜像的,但一般最后一行不满SpanCount时,条目位置依旧是从左向右排列的,未达到镜像效果。此时,需要在child位置布局计算前,将child的index向右移动SpanCount-count(该行实际条目数)位,已达到位置镜像的效果。

CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Your Name seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Your Name seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.