SelectableListComponent.qml Example File
listdecorators/assets/SelectableListComponent.qml
import bb.cascades 1.0
ListItemComponent {
type: "selectable"
Container {
id: item
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Center
topPadding: 2.5
bottomPadding: 2.5
leftPadding: 5
rightPadding: 5
Container {
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
background: Color.create(ListItemData.selected)
verticalAlignment: VerticalAlignment.Center
horizontalAlignment: HorizontalAlignment.Fill
CoverArt {
}
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Center
text: ListItemData.title
textStyle {
base: SystemDefaults.TextStyles.PrimaryText
}
}
}
}
}