From 2927ad5679a7cae95027883d809c940012dffdf1 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 3 Mar 2020 11:59:27 +0800 Subject: [PATCH] demo:update demo --- doric-demo/src/ScrolledSliderDemo.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/doric-demo/src/ScrolledSliderDemo.ts b/doric-demo/src/ScrolledSliderDemo.ts index 1387d716..219174f5 100644 --- a/doric-demo/src/ScrolledSliderDemo.ts +++ b/doric-demo/src/ScrolledSliderDemo.ts @@ -89,12 +89,17 @@ class MovieVH extends ViewHolder { this.gallery = hlayout( [], { - layoutConfig: layoutConfig().most().configWidth(LayoutSpec.FIT), - space: 100, + layoutConfig: layoutConfig().fit(), + space: 20, + padding: { + top: 20, + left: 20, + right: 20, + bottom: 20, + } }), { - layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST), - height: 200, + layoutConfig: layoutConfig().most().configHeight(LayoutSpec.FIT), backgroundColor: Color.parse("#eeeeee"), }) ], @@ -122,8 +127,8 @@ class MovieVM extends ViewModel{ [ image({ layoutConfig: layoutConfig().just(), - width: 100, - height: 100, + width: 270 / 2, + height: 400 / 2, imageUrl: e.images.large }) ],