I have a List view in bb 10 App, where i need to show data read from server. I am able to do that.but the problem here is ,It is taking some delay to read the data from server and show it on List view. Now i want to notify the user with meaning full text "Please wait ..." in Activity Indicator until the data is shown and disappear the Activity Indicator As soon as data is shown in List view.
Container {
objectName: "root"
id: root
ActivityIndicator {
id: myIndicator
preferredWidth: 500
}
Button {
text: "Start"
onClicked: {
if (! myIndicator.running) {
// Start the activity here.
myIndicator.start();
text = "Stop";
} else {
// Stop it here
root.activityDone();
text = "Start"
}
}
}
// This function is called when the activity is done.
function activityDone() {
myIndicator.stop();
}
}
I found a small example like this...How can i show test like "Please wait" and make it Disappear once the data is shown in list view.
Thank you!!!