
I am trying to implement ActionBar Sherlock with Tabs below that as shown in the above wire-frame.
Should i use TabActivity ? – since i saw that it is deprecated. Which is the best way to achieve the same.
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.
I implemented this functionality with a
SherlockFragmentActivityas tabview container and withSherlockFragmentas tabs. Here is a sketch (I omitted the usual Android activity stuff):This is the tabview activity with two tabs:
And this is the
TabFragmentthat holds a tab’s content:And finally this is the
TabListenerthat handles tab switches: