Take a look at the demos available for 
ActionBarSherlock<http://actionbarsherlock.com/samples.html>. 
It may not be exactly the same if you aren't using that lib, but he tries 
to get very close to the normal experience. Anyway, from what I've seen 
(I'm using a Nav List in my ActionBar), you get one main type of navigation 
that is assigned to the ActionBar, whether it's tabs or a navigation list. 
Other buttons assigned to the ActionBar can be used for navigation, but 
will need to be implemented separately. I haven't used tabs myself (not 
attached to the ActionBar anyway), but from what it looks like, if you set 
it up correctly, the tabs will show up either in-line or stacked depending 
on whether or not there's space. I would download the demo's that I linked 
and follow along with the app that 
implements<https://market.android.com/details?id=com.actionbarsherlock.sample.demos>all
 of those demos.

The alternative would be to do what you did and build the tabs separately. 
I did this for my Reddit 
Mail<https://market.android.com/details?id=com.feigdev>app without issue. If I 
were to re-do that app, I would probably use the 
ActionBar to handle it, mainly because I now have a pretty good idea of how 
those work.

-John

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

On Wednesday, February 29, 2012 10:07:42 AM UTC-5, Mark Winchester wrote:
>
> I'm having trouble with the ActionBar and tabs, trying to get the look and 
> feel that I've got in mind.  I want an action bar, at the top, with a 
> couple of Spinners, TextViews, and a button.  Underneath that, I'd like a 
> row of Tabs, and below that the actual content.  The top portion of my 
> ActionBar is coded up, working, and looking how I want it.  I'm struggling 
> with the tab portion, though.  I started out trying to add a TabHost, 
> TabWidget, etc. to the layout, which would appear under the ActionBar.  It 
> seems that all of that functionality is deprecated, and we're supposed to 
> be using the ActionBar for the tabs.  If I can achieve the look that I'm 
> going for, I haven't found a way to do it.  Anybody got any examples of 
> what I'm looking for?  I appreciate any help.
>
> -Mark
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to