I want to be able to resize viewpager items when aspect ratio is enabled and clipToPadding is true. For example if an item maintains an aspect ratio (4:3) of its own it should resize to fit into the viewpager (16:9) in this case.
I have included a diff with changes. This is somewhat similar to my last PR for wrap_content, but instead of an item resizing to take padding into account, the item will simply be increasing the viewpager padding so that it will fit fully into the viewpager.
I want to be able to resize viewpager items when aspect ratio is enabled and clipToPadding is true. For example if an item maintains an aspect ratio (4:3) of its own it should resize to fit into the viewpager (16:9) in this case.
I have included a diff with changes. This is somewhat similar to my last PR for wrap_content, but instead of an item resizing to take padding into account, the item will simply be increasing the viewpager padding so that it will fit fully into the viewpager.
https://github.com/siralam/LoopingViewPager/compare/master...dfbarone:loopingviewpager_onmeasure_aspectratio_padding?expand=1