Topic: Disabling Next Button on Last Image

So it seems that even if you set the LOOP variable to false, a user can still go back to the first image by clicking the Next arrow. My client wants me to disable this - is there a way to Disable the Next arrow for the last image?

Re: Disabling Next Button on Last Image

Add this code at the end of the StageManager.ShowImage() function:

if (index == mImageCount-1) {
    mNextBtn.setEnabled(false);
}else{
    mNextBtn.setEnabled(true);
}
Felix Turner
SimpleViewer Support Team.

Re: Disabling Next Button on Last Image

awesome.  works perfectly - thanks!

Re: Disabling Next Button on Last Image

I just modified this too but the next button doesn't come back after scrolling to the left again...
Do i have to add this code also to the dostep function?

if (index == mImageCount-1) {
  mNextBtn.setEnabled(false);
  }else{
  mNextBtn.setEnabled(true);
}