cyrilmottier/GreenDroid — Issue #78: PagedView - setCurrentpage method missing
Author: amsiddh
Created: 2011-11-25 18:45:44+00:00
State: open

Hi Cyril,

I am trying to set the currentPage in PagedViewActivity by using the "setActivePage" method, it only sets the dot position but it doesn’t jumps to that position, it stays at page position 0.

I have tried following:
1) At the end onCreate method of PagedViewActivity i have added this: it only changes the dot position.
//setActivePage(pagedView.getCurrentPage());
setActivePage(4);

2) In PageView I added this method
public void setCurrentPage(int currentPage) {
mCurrentPage = currentPage;
}

and called at the end of onCreate method of PagedViewActivity or at any event to set current page
pagedView.setCurrentPage(4);

The 2 option is worked for me. You can just check at your end and update your build.

Thanks,
Siddh