I'm building an app that uses tabs with a viewpager and fragments. However, when the user selects an actionbar item, it should show a fragment inside the View where the tabs are displayed.
I tried adding an extra item to the viewpager(For the extra fragment to be displayed), and setting the selected item in the viewpager to the extra fragment when the action item is clicked, it did show the extra fragment, but the last tab remains active below that fragment. Is there any other way to show an arbitrary fragment within the area for the tabs?