I want to display letters on screen and enable swiping with `ViewPager`, however, the first letter starts at position first+1. 

I have an array of drawables like this

```
private static int[] images = {R.drawable.a,R.drawable.b,R.drawable.c,R.drawable.d};
public static int position = 0;

```

And based on the position, I set the image to be shown in `ImageView` 

```
letter.setImageDrawable(getResources().getDrawable(images[position]));

```

The `getPosition` code

```
@Override
public Fragment getItem(int position) {
    LetterViewFragment.position = position;
    return new LetterViewFragment();
}

```

Now the initial view shows the **second** image as initial view, and when I swipe right, I see the **second** image again. But if I swipe back from **third** image back to first, I see the first image. 

I've found similar questions that had the same problem like [this one](https://stackoverflow.com/questions/24839913/fragments-in-viewpager-wrong-index)
but there's no answer.

Thanks!