ContactPage.qml Example File
bbmcontacts/assets/ContactPage.qml
import bb.cascades 1.0
import com.example.contact 1.0
Page {
property Contact contact
ContactScrollView {
Container {
layout: DockLayout {
}
ImageView {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
imageSource: "asset:///images/background_blurred.png"
}
Container {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
topPadding: 20
leftPadding: 20
rightPadding: 20
Container {
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
ImageView {
preferredHeight: 300
preferredWidth: 300
image: contact ? contact.avatar : null
}
}
Divider {
}
Container {
minHeight: 50
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
ImageView {
verticalAlignment: VerticalAlignment.Center
imageSource: "images/busy.png"
visible: contact ? contact.busy : false
}
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
text: contact ? contact.displayName : "n/a"
textStyle {
color: Color.White
fontWeight: FontWeight.Bold
}
}
}
Field {
title: qsTr("status message")
value: contact ? contact.statusMessage : "n/a"
}
Field {
title: qsTr("personal message")
value: contact ? contact.personalMessage : "n/a"
}
Field {
title: qsTr("pp id")
value: contact ? contact.ppid : "n/a"
}
Field {
title: qsTr("app version")
value: contact ? contact.appVersion : "n/a"
}
Field {
title: qsTr("handle")
value: contact ? contact.handle : "n/a"
}
Field {
title: qsTr("platform version")
value: contact ? contact.platformVersion : "n/a"
}
}
}
}
}