Skip to content

Commit

Permalink
更新demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglibao committed May 5, 2019
1 parent c08a85c commit 02cde57
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Example/FlexLib/TextViewVC.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ -(void)onAddImage
[cell addGestureRecognizer:tap];

[cell setLayoutAttrStrings:@[
@"width",@"20%",
@"aspectRatio",@"1",
@"margin",@"10",
@"width",@"60",
@"margin",@"2",
@"height",@"40",
@"alignItems",@"center",
@"justifyContent",@"center",
]];
Expand Down
2 changes: 1 addition & 1 deletion Example/FlexLib/res/TextViewVC.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<UIView layout="height:10"/>
<FlexContainerView name="_imgParent" layout="flexWrap:wrap,flexDirection:row,justifyContent:flex-start">

<FlexTouchView onPress="onAddImage" layout="width:20%,margin:10,aspectRatio:1,justifyContent:center,alignItems:center" attr="borderRadius:10,borderWidth:1,borderColor:#e5e5e5,underlayColor:#e5e5e5">
<FlexTouchView onPress="onAddImage" layout="width:60,margin:2,height:40,justifyContent:center,alignItems:center" attr="borderRadius:10,borderWidth:1,borderColor:#e5e5e5,underlayColor:#e5e5e5">
<UILabel attr="text:+,fontSize:20,color:#999999"/>
</FlexTouchView>
</FlexContainerView>
Expand Down
6 changes: 3 additions & 3 deletions Example/FlexSwiftDemo/TestTextviewVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class TestTextviewVC: FlexBaseVC {
cell.enableFlexLayout(true)
cell.addGestureRecognizer(tap)
cell.setLayoutAttrStrings([
"width","20%",
"aspectRatio","1",
"margin","10",
"width","60",
"margin","2",
"height","40",
"alignItems","center",
"justifyContent","center",
])
Expand Down
2 changes: 1 addition & 1 deletion Example/FlexSwiftDemo/res/TextViewVC.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<UIView layout="height:10"/>
<FlexContainerView name="_imgParent" layout="flexWrap:wrap,flexDirection:row,justifyContent:flex-start">

<FlexTouchView onPress="onAddImage" layout="width:20%,margin:10,aspectRatio:1,justifyContent:center,alignItems:center" attr="borderRadius:10,borderWidth:1,borderColor:#e5e5e5,underlayColor:#e5e5e5">
<FlexTouchView onPress="onAddImage" layout="width:60,margin:2,height:40,justifyContent:center,alignItems:center" attr="borderRadius:10,borderWidth:1,borderColor:#e5e5e5,underlayColor:#e5e5e5">
<UILabel attr="text:+,fontSize:20,color:#999999"/>
</FlexTouchView>
</FlexContainerView>
Expand Down

0 comments on commit 02cde57

Please sign in to comment.