How to set OffScreenPageLimit when using pager adapter with MvxTabLayoutPresentationAttribute

So I'm using a ViewPager with a tab layout. I want to set the OffScreenPageLimit for that.
This 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.support.v4.view.ViewPager 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.