Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

编译后为什么显示不完全呢? #13

Open
like5188 opened this issue Feb 27, 2019 · 0 comments
Open

编译后为什么显示不完全呢? #13

like5188 opened this issue Feb 27, 2019 · 0 comments

Comments

@like5188
Copy link

vvtest.xml如下:

<NImage
        layoutWidth="48rp"
        layoutHeight="48rp"
        layoutMarginLeft="34rp"
        layoutGravity="left|v_center"
        src="${imgUrl}"
        scaleType="center_crop"
/>
<NText
        layoutWidth="wrap_content"
        layoutHeight="wrap_content"
        layoutMarginLeft="94rp"
        text="${title}"
        layoutGravity="left|v_center"
        textSize="28rp"
        textColor="#555555"
/>
<NText
        layoutWidth="wrap_content"
        layoutHeight="wrap_content"
        layoutMarginRight="50rp"
        layoutGravity="right|v_center"
        textSize="28rp"
        text="${subtitle}"
        textColor="${subtitleColor}"/>
<NImage
        layoutWidth="14rp"
        layoutHeight="30rp"
        layoutMarginRight="28rp"
        layoutGravity="right|v_center"
        src="${arrowImgUrl}"
        scaleType="center_crop"
/>

<NLine
        layoutWidth="680rp"
        layoutHeight="1rp"
        orientation="H"
        layoutGravity="h_center|bottom"
        src="${lineImgUrl}"
        color="#999999"
/>

data.json如下:
[
{
"type": "container-scroll",
"style": {
"pageWidth": 300,
"hGap": 50,
"pageHeight": 100
},
"items": [
{
"imgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"arrowImgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"title": "标题1",
"subtitle": "subtitle1",
"type": "vvtest"
},
{
"imgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"arrowImgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"title": "标题2",
"subtitle": "subtitle2",
"type": "vvtest"
},
{
"imgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"arrowImgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"title": "标题3",
"subtitle": "subtitle3",
"type": "vvtest"
},
{
"imgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"arrowImgUrl": "https://gju2.alicdn.com/tps/i1/3316585763/O1CN01s5zdWd1sRV1Z56icV_!!0-item_pic.jpg_460x460Q90.jpg",
"title": "标题4",
"subtitle": "subtitle4",
"type": "vvtest"
}
]
}
]

最终效果就是只显示了 下面的指示器,上面的布局没有显示

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant