From 02cde57bff4ffb9c25610e55c0cd82fb4706c4b4 Mon Sep 17 00:00:00 2001 From: zhenglibao Date: Sun, 5 May 2019 16:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Example/FlexLib/TextViewVC.m | 6 +++--- Example/FlexLib/res/TextViewVC.xml | 2 +- Example/FlexSwiftDemo/TestTextviewVC.swift | 6 +++--- Example/FlexSwiftDemo/res/TextViewVC.xml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Example/FlexLib/TextViewVC.m b/Example/FlexLib/TextViewVC.m index 11b8539..2714dcc 100644 --- a/Example/FlexLib/TextViewVC.m +++ b/Example/FlexLib/TextViewVC.m @@ -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", ]]; diff --git a/Example/FlexLib/res/TextViewVC.xml b/Example/FlexLib/res/TextViewVC.xml index f9bd9bf..2c671b9 100644 --- a/Example/FlexLib/res/TextViewVC.xml +++ b/Example/FlexLib/res/TextViewVC.xml @@ -68,7 +68,7 @@ - + diff --git a/Example/FlexSwiftDemo/TestTextviewVC.swift b/Example/FlexSwiftDemo/TestTextviewVC.swift index 0f898ed..d38927f 100644 --- a/Example/FlexSwiftDemo/TestTextviewVC.swift +++ b/Example/FlexSwiftDemo/TestTextviewVC.swift @@ -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", ]) diff --git a/Example/FlexSwiftDemo/res/TextViewVC.xml b/Example/FlexSwiftDemo/res/TextViewVC.xml index 20dc381..8546456 100644 --- a/Example/FlexSwiftDemo/res/TextViewVC.xml +++ b/Example/FlexSwiftDemo/res/TextViewVC.xml @@ -68,7 +68,7 @@ - +