cycling view

Hi,

I would like to automatically cycle view...

Something like that :  view1  --> 'timer' --> view2 ---> 'timer' --> view1

I was thinking of 2 options : on a time event :

* have each view a "subview" and call switchtoview

* have only one view, and have different drawing methods.

What would be the best ?

  • I do it with a single view, a timer, and a "pageNum" variable.

    Even "X" second I change pageNum, and the then call WatchUi.requestUpdate() to display the proper page.

    For 3 pages, something like this, say every 10 seconds

    pageNum=(pageNum+1)%3;

    and in onUpdate()

    if(pageNum==0) {}

    else if(pageNum==1)  {}

    else {}