Skip to content

Commit

Permalink
例子中增加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenglibao committed Feb 2, 2019
1 parent a635c6e commit 526fabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example/FlexLib/res/TestXmlView.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- -->
<!-- 最外层的名字必须与组件的类名保持一致, 在xml中使用时设置的layout和attr属性会覆盖本xml中最外层的layout和attr -->
<TestXmlView layout="flex:1,margin:10" attr="bgColor:green,borderColor:red,borderWidth:1,borderRadius:5">
<UILabel attr="fontSize:16,color:#333333,linesNum:0,text:这是一个基于FlexXmlBaseView的组件,只能使用在xml中,可以减少视图层级"/>
<FlexContainerView name="_attachParent" layout="marginTop:5,marginBottom:5,alignItems:center"/>
Expand Down

0 comments on commit 526fabb

Please sign in to comment.