This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
镜像环境,GridLayoutHelper不满SpanCount的行数条目位置未镜像问题 #469
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
我们使用GridLayoutHelper在进行网格布局时,在镜像环境下,发现条目数据已经镜像了,满SpanCount的一行条目,位置也是镜像的,但一般最后一行不满SpanCount时,条目位置依旧是从左向右排列的,未达到镜像效果。此时,需要在child位置布局计算前,将child的index向右移动SpanCount-count(该行实际条目数)位,已达到位置镜像的效果。