java - Use fragments ans swipe views without extend fragmentsActivity -


my main activity have classic tabs, want implement swipable tabs in main actuvity, in every tutorial/guide i've found, each time main activity extends fragmentactivity :

public class mainactivity extends fragmentactivity implements actionbar.tablistener { 

but, have other things in activity, main activity extends activity, question : how add fragments, view pager , other methods, in activity extend activity ?

source http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/

to host fragments, activity needs fragmentmanager , needs extend fragmentactivity, 1 standard library, or 1 support library.

there no other choice.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -