PizzeriaItem.qml Example File
callapizza/assets/PizzeriaItem.qml
 
    
    import bb.cascades 1.0
    Container {
        property alias title: titleLabel.text
        property alias description: descriptionLabel.text
        leftPadding: 30
        topPadding: 30
        Label {
            id: titleLabel
            textStyle {
                base: SystemDefaults.TextStyles.TitleText
                color: Color.DarkGray
            }
        }
        Container {
            layout: StackLayout {
                orientation: LayoutOrientation.LeftToRight
            }
            rightPadding: 80
            Label {
                id: descriptionLabel
                layoutProperties: StackLayoutProperties {
                    spaceQuota: 1
                }
                textStyle {
                    base: SystemDefaults.TextStyles.BodyText
                    color: Color.DarkGray
                    textAlign: TextAlign.Right
                }
            }
            ImageView {
                imageSource: "asset:///images/phone_icon.png"
            }
        }
        ImageView {
            imageSource: "asset:///images/separator_line.png"
        }
    }