user3200256
user3200256

Reputation: 1

Android PagerSlidingTabStrip and Fragment

I tried to implement PagerSlidingTabStrip

http://www.androidviews.net/2013/04/pager-sliding-tabstrip/

in Fragment in place FragmentActivity, but unsuccessful. Does anyone have experience with this? Thanks.

Upvotes: 0

Views: 1971

Answers (1)

mike20132013
mike20132013

Reputation: 5425

Why don't you try my other post and see if that matches with your question :

How to properly use fragments with ViewPager?

After setting the view pager, only thing you need to do is:

PageIndicatorLib mIndicator = (PageIndicatorLib) findViewById(R.id.simplecircle);
        mIndicator.setViewPager(myPager);

Here, assume that the PagerIndicatorLib is the library project you will be using for the indicator stuff. Like I mentioned in the comment.

Upvotes: 1

Related Questions