Android RealViewSwitcher : How to start on second page?

Posted by DarcCode on Stack Overflow See other posts from Stack Overflow or by DarcCode
Published on 2012-04-13T08:01:15Z Indexed on 2012/09/07 9:38 UTC
Read the original article Hit count: 152

Filed under:
|
|

i'm using RealViewSwitcher I got from this site.

It works perfectly on my code, but I don't have any idea how to set the initial current screen to second or third screen.

the method setCurrentScreen(int) doesn't affect anything and if I change the for loop inside the onLayout() method from for (int i = 0; i < count; i++) {...} into for (int i = 1; i < count; i++){...} It does starts in page two, but you can't go to page one.

Any idea how to start on page two?

© Stack Overflow or respective owner

Related posts about android

Related posts about swipe