What kind of functionality is this ?

Is it FragmentPagerAdapter ? Is there any predefined styles/functionality to achieve just the same for API 10 ? Show me an example please.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s a
PagerTitleStripwhich is used with aViewPager(so yes, your thought onFragmentPagerAdapteris correct if you want to useFragments— which you should, but I was lazy when I used it). Simply add thePagerTitleStripas a child of yourViewPagerlike this:And in your
PagerAdapterthat you write, be sure to override thegetPageTitle()method. Android should handle everything else for you, although you’ll have to style it manually if you want a custom font as shown, and the font color and background as shown.It is included in the support library (right-click your project in Eclipse, choose Android Tools > Add Compatibility Package) and is compatible all the way back to API Level 4, so you will have no issues using it for API Level 10. The JakeWharton library being linked is overkill if you simply need the swiping title functionality — his was developed before Google added the
PagerTitleStripto the compatibility library — but does have some additional styles that you can use if so needed.