How to set the OffScreenPageLimit for ViewPager with a tab layout in MVVMCross.

I'm using a ViewPager with a tab layout. I want to set the OffScreenPageLimit for that.
Below is the code for binding ViewPager with my MVVM cross view pager.
public MvxBasePresentationAttribute PresentationAttribute() { return new MvxTabLayoutPresentationAttribute { ViewPagerResourceId = Resource.Id.view_pager }; }
and this is my XML
< android:id="@+id/view_pager" android:layout_width="match_parent" android:layout_height="match_parent" />

I tried to set it from XML as app:offscreenPageLimit="1", but that did not work for me.
Is there any possible solution?

Sign In or Register to comment.