Вы не можете связать их так, как вы, так как это агрегирование.Согласно вашему XML-представлению это вложенный список, это означает, что вам необходимо иметь вложенные данные для привязки.
Например: вложенные данные
{
'items': [
{
'message': "ss",
'date': "2020-12-12",
'time': "12:00",
'items1': [
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" }
]
},
{
'message': "ss",
'date': "2020-12-12",
'time': "5:00",
'items1': [
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" }
]
},
{
'message': "fff",
'date': "2020-12-12",
'time': "8:00",
'items1': [
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" },
{ 'description': "description", 'key': "2141" }
]
}
]
}
Приведенные выше данные отлично работают для вложенного списка, а также необходимо упомянуть свойство templateShareable: true
<List headerText="Events" items="{path: '/items'}" >
<items>
<CustomListItem type="Navigation">
<HBox>
<VBox>
<Label text="{message}"/>
<Text text="{date}"></Text>
<Text text="{time}"></Text>
<List items="{path:'items1', templateShareable: true}">
<items>
<StandardListItem title="{description}" description="{key}"/>
</items>
</List>
</VBox>
</HBox>
</CustomListItem>
</items>
</List>
Примечание. Используйте форматирование в соответствии с вашими требованиями.