demo:update demo

This commit is contained in:
pengfei.zhou 2020-03-03 11:59:27 +08:00 committed by osborn
parent ff84738e03
commit 2927ad5679

View File

@ -89,12 +89,17 @@ class MovieVH extends ViewHolder {
this.gallery = hlayout( this.gallery = hlayout(
[], [],
{ {
layoutConfig: layoutConfig().most().configWidth(LayoutSpec.FIT), layoutConfig: layoutConfig().fit(),
space: 100, space: 20,
padding: {
top: 20,
left: 20,
right: 20,
bottom: 20,
}
}), }),
{ {
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.JUST), layoutConfig: layoutConfig().most().configHeight(LayoutSpec.FIT),
height: 200,
backgroundColor: Color.parse("#eeeeee"), backgroundColor: Color.parse("#eeeeee"),
}) })
], ],
@ -122,8 +127,8 @@ class MovieVM extends ViewModel<MovieModel, MovieVH>{
[ [
image({ image({
layoutConfig: layoutConfig().just(), layoutConfig: layoutConfig().just(),
width: 100, width: 270 / 2,
height: 100, height: 400 / 2,
imageUrl: e.images.large imageUrl: e.images.large
}) })
], ],