Android View Pager that shows the next child’s hint

I want to set up an original View pager that shows the next child’s hint .. see image below:

enter image description here

I tried to create my own ViewPager, which extends the original View Pager, but I could not get it to work.

I would really appreciate it if you could point me to any tutorial or library that does this or something similar.

Thanks.

+4
source share
1 answer

Try expanding pager adapter -
Override the getPageWidth method.

  @Override public float getPageWidth(int position) { return 0.8f; // 1f means 100 percent } 
+6
source

Source: https://habr.com/ru/post/1501619/


All Articles