I am having an issue with the layouts in Blackberry 10 Cascades.
I have a qml file, with the following content inside:
content: Container {
Container {
id: topBar
objectName: "topBar"
layout: DockLayout {}
ImageButton {
id: back
objectName: "back"
defaultImageSource: "asset:///images/back.png"
onClicked: app.goBack()
minHeight: 100
minWidth: 100
maxHeight: 100
maxWidth: 100
horizontalAlignment: HorizontalAlignment.Left
}
Label {
id: heading
objectName: "heading"
textStyle { fontSize: FontSize.Large }
horizontalAlignment: HorizontalAlignment.Center
}
ImageButton {
id: add
objectName: "add"
defaultImageSource: "asset:///images/add.png"
onClicked: app.add()
minHeight: 100
minWidth: 100
maxHeight: 100
maxWidth: 100
horizontalAlignment: HorizontalAlignment.Right
}
ActivityIndicator {
id: activityIndicator
objectName: "activityIndicator"
minHeight: 100
minWidth: 100
maxHeight: 100
maxWidth: 100
horizontalAlignment: HorizontalAlignment.Right
}
}
}
I am trying to get the back button to be on the left. The heading to be in the center, and the add button and the activity indicator to be on the right (I want the activity indicator to be on the very right, but when it is not showing - I want the add button to be on the very right).
I can't figure out why tho, these objects are all showing up on top of each other though (in the same spot).