Skip to content

Commit 544a040

Browse files
author
zhangxutong
committed
第一版
1 parent 1efbc6a commit 544a040

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.idea/libraries/recyclerview_v7_24_2_1.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/mcxtzhang/flowlayoutmanager/FlowLayoutManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private int fill(RecyclerView.Recycler recycler, RecyclerView.State state, int d
191191
break;
192192
} else {
193193
View child = recycler.getViewForPosition(i);
194-
addView(child, 0);
194+
addView(child, 0);//将View添加至RecyclerView中,childIndex为1,但是View的位置还是由layout的位置决定
195195
measureChildWithMargins(child, 0, 0);
196196

197197
layoutDecoratedWithMargins(child, rect.left, rect.top - mVerticalOffset, rect.right, rect.bottom - mVerticalOffset);

0 commit comments

Comments
 (0)