Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 13
Registered: ‎03-30-2010
My Device: 5.0
My Carrier: NO

How does it work about "StandardListItem" ?

How does it work about  "StandardListItem"  ?

 

if my xml data as following :

<root>

 <item firstname="Bilal" lastname="Ahsan" quote="An Elegant and more thoughtfully designed function is compact and cryptic"/>
    <item firstname="Christopher" lastname="Alexander" quote="Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice."/>
</root>

 

And i try did that

 

 Container {
    ListView {
        dataModel: XmlDataModel {
            source: "models/ListTododata.xml"
        }
        listItemComponents : [
            ListItemComponent {
                type : "item"
                StandardListItem {
                    imageSource : "asset:///images/meetType.png"
                    title : ListItemData.firstname
                    description : ListItemData.quote
                }
            }
        ]

}

}

 

the result always got first attribute of node value on xml file or sometime got last attribute of node value.

Then the imagesource and description always not visible.

 

q.GIF