Skip to content Skip to sidebar Skip to footer

Using Viewpager With Actionscontentview

So I'm using ActionsContentView My goal is to implement a ViewPager element within it. Utilizing just one other view. Has anybody done this with this project? The author says it's

Solution 1:

Thanks for using ActionsContentView library.

To update content of fragment at ViewPager, please try replace updateContent method body with next code:

publicvoidupdateContent(Uri uri) {
    if (uri == null)
        return;

    finalWebViewFragmentwebViewFragment= (WebViewFragment)
            pageAdapter.getItem(MyPagerAdapter.WEBVIEW_FRAGMENT_POSITION);
    webViewFragment.setUrl(uri.toString());
    webViewFragment.reload();
    currentUri = uri;
}

I got web view to load content into main frame of ViewPager after that.

Post a Comment for "Using Viewpager With Actionscontentview"