Is there a way to add an image (i.e., an arrow) between two fragments in a ViewPager
while swapping the fragments? By default, the fragments are just sticking together, and at least I want some extra space between the fragment cards.
Any ideas?
Add Your View pager & Image in Frame Layout then
ViewPager.OnPageChangeListener's onPageScrolled method
try one of this to add margin between fragment
setPageMargin(int marginPixels) setPageMarginDrawable(Drawable) setPageMarginDrawable(int)
after that you can show hide your image with your logic.