ActivityDialog.qml Example File
pushCollector/10.0/pushCollector/assets/ActivityDialog.qml
import bb.cascades 1.0
Dialog {
property alias title: activityTitle.text
property alias message: activityMessage.text
Container {
id: activityDialogContainer
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
preferredWidth: 768
preferredHeight: 1280
layout: DockLayout {}
background: Color.create(0.0, 0.0, 0.0, 0.8)
Container {
preferredWidth: activityDialogContainer.preferredWidth - 60
preferredHeight: activityDialogContainer.preferredHeight - 200
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
Container {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
background: Color.White
Container {
horizontalAlignment: HorizontalAlignment.Fill
topPadding: 20
bottomPadding: 20
leftPadding: 20
background: Color.create("#087CC1")
Label {
id: activityTitle
textStyle{
color: Color.White
fontSize: FontSize.Large
}
}
}
Container {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill
topPadding: 10
bottomPadding: 20
ActivityIndicator {
id: registerIndicator
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Center
preferredWidth: 200
preferredHeight: 200
}
Label {
id: activityMessage
horizontalAlignment: HorizontalAlignment.Center
}
}
}
}
}
onOpened: {
registerIndicator.start();
}
onClosed: {
registerIndicator.stop();
}
}