This repository was archived by the owner on Jul 14, 2021. It is now read-only.
镜像环境,GridLayoutHelper不满SpanCount的行数条目位置未镜像问题#469
Open
wkp111 wants to merge 1 commit intoalibaba:masterfrom
Open
镜像环境,GridLayoutHelper不满SpanCount的行数条目位置未镜像问题#469wkp111 wants to merge 1 commit intoalibaba:masterfrom
wkp111 wants to merge 1 commit intoalibaba:masterfrom
Conversation
|
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. |
1 similar comment
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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(该行实际条目数)位,已达到位置镜像的效果。