Skip to content

Commit 9d96243

Browse files
authored
Merge pull request #549 from LeoAndo/feature/issue_548_update_readme
Update README because Incorrect sample code(for Java) #548
2 parents 611c755 + b08a5e0 commit 9d96243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ flexboxLayout.setFlexDirection(FlexDirection.ROW);
6969

7070
View view = flexboxLayout.getChildAt(0);
7171
FlexboxLayout.LayoutParams lp = (FlexboxLayout.LayoutParams) view.getLayoutParams();
72-
lp.order = -1;
73-
lp.flexGrow = 2;
72+
lp.setOrder(-1);
73+
lp.setFlexGrow(2);
7474
view.setLayoutParams(lp);
7575
```
7676

0 commit comments

Comments
 (0)