zebra list

This commit is contained in:
Jeena 2015-02-03 21:41:37 +01:00
parent 218f556a98
commit 19e5a02d6e
4 changed files with 89 additions and 67 deletions

View file

@ -31,13 +31,17 @@ ScrollView {
spacing: 1
model: item.server.posts
delegate: Component {
PostListItem {}
}
delegate: PostListItem {}
highlight: Rectangle {
color: "lightblue"
opacity: 0.5
highlightFollowsCurrentItem: false
highlight: Component {
Rectangle {
width: listView.currentItem.width
height: listView.currentItem.height
color: "lightblue"
opacity: 0.5
y: listView.currentItem.y
}
}
onCurrentItemChanged: {