This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int last = pics_array.length - 1; | |
// this method gets called when the forward button got clicked (for testing) | |
public void go (View view) { | |
index++; | |
if(index > last)//out of bounds | |
index = 0;//jump to beginning | |
default_Pic.setImageResource(pics_array[index]); | |
} | |