您好我观看了Nexus 7的评论,并尝试在QML中实现类似的应用菜单(所有应用都列在其中)。任何人都可以指引我朝着正确的方向前进吗?
当前代码:
Grid{
id:gridPanel;
rows:__itemsPerPage;
flow:Flow.TopToBottom;
onXChanged:{
if(x > 0)
x = 0;
}
Behavior on x {
id:listAnimation enabled: false;
animation: SequentialAnimation {
running: parent.enabled;
NumberAnimation {
target: gridPanel;
property: "x";
duration: 300
}
NumberAnimation {
target: gridPanel;
property: "scale";
to: 0.3;
duration: 500;
}
PauseAnimation {
duration: 200
}
NumberAnimation {
target: gridPanel;
property: "scale";
to: 1;
duration: 500;
}
}
}
}