I'm running into a weird issues with Android's ViewPager from the support library.
I have my ViewPager set to show a small part of the next fragment. It works and all, except sometimes the left view doesn't resize the way it's supposed to and therefore overlaps with the next fragment. This happens to me approximately 40% of the time I run the app, with the exact same code so it's random...
What I Want
What I Sometimes Get
I'm not sure if it matters but I used this solution to fix my ViewPager's wrap_content height and I used this solution to get my ViewPager to scale fragments down to 90% width. Basically just this for scaling:
@Override
public float getPageWidth(int position) {
return 0.9f;
}
How would I need to go about fixing this very annoying bug? Any help is appreciated, thanks.