I'm finding a lot of conflicting information as to the best approach for adding tabs below an ActionBar in ActionBarActivity (sub class of FragmentActivity, from the support libs). I'd like them to look visually similar to the tabs in the Play Store app (ie, position them just below the action bar).
Can you tell me what is the best approach to implementing this, ensuring compatibility with the support libs? Looks like as of Lollipop. some of the approaches have been deprecated.
Thanks!
You should take a look at the Android official sample of the SlidingTabBasic. It basically implements what Google Play store had. The design is a bit outdated compare to the latest Material Design, but it's easy enough to make modification to update the look and feel.
This is the post Android Developer had on Google+: https://plus.google.com/+AndroidDevelopers/posts/X8fg63wK6S8