ContactItem.qml Example File
bbmcontacts/assets/ContactItem.qml
 
    
    import bb.cascades 1.0
    
    Container {
        topPadding: 40
        leftPadding: 40
        rightPadding: 40
        Container {
            Container {
                layout: StackLayout {
                    orientation: LayoutOrientation.LeftToRight
                }
                Container {
                    layoutProperties: StackLayoutProperties {
                        spaceQuota: 1
                    }
                    
                    Label {
                        verticalAlignment: VerticalAlignment.Center
                        text: ListItemData.displayName
                        textStyle {
                            color: Color.White
                        }
                    }
                    
                    Label {
                        verticalAlignment: VerticalAlignment.Center
                        leftMargin: 50.0
                        multiline: true
                        text: ListItemData.personalMessage
                        textStyle {
                            color: Color.White
                            fontSize: FontSize.Small
                        }
                    }
                }
                
                ImageView {
                    verticalAlignment: VerticalAlignment.Center
                    image: ListItemData.avatar
                    scalingMethod: ScalingMethod.None
                    preferredHeight: 100
                    preferredWidth: 100
                }
            }
            Container {
                background: Color.White
                Divider {
                }
            }
        }
    }