我想用我创建的图像替换文本描述,所以不是这样:
<listItemLockup>
<title>TITLE</title>
<decorationLabel>7</decorationLabel>
<relatedContent>
<grid>
<section>
<lockup ......
</lockup>
</section>
</grid>
</relatedContent>
</listItemLockup>
我试过这个:
<listItemLockup>
<decorationImage src="Path to image here" />
<decorationLabel>7</decorationLabel>
<relatedContent>
<grid>
<section>
<lockup ......
</lockup>
</section>
</grid>
</relatedContent>
</listItemLockup>
这行不通。我只是误解了listItemLockup中图像的使用,还是遗漏了其他内容?
根据Apple Tv标记语言参考,您可以在listItemLockup
中添加<img>
组件,因此它将是:
<listItemLockup>
<img src="Path to the image" width="20" height="20"/>
<decorationLabel>7</decorationLabel>
<relatedContent>
<grid>
<section>
<lockup ......
</lockup>
</section>
</grid>
</relatedContent>
</listItemLockup>