After tab added to actionBar then setNavigationmode for tab

Tab tabDemo=mTabsAdapter.addTab(bar.newTab().setText("ABC"),.Abc.class, *
null*,"Abc");

.

.

.

bar.setNavigationMode(ActionBar.Navigation_mode_tabs);

it shows tabs in tabbed view mode.

it works for me.



**
**





On Wed, Jul 25, 2012 at 10:57 AM, up2mandori <[email protected]> wrote:

> I saw the sample code below.
> However, this code has to question.
> If the drop-down tab to be changed to reselect the listener does not work.
> If I choose the tab you want to be updated.
> We'll be waiting for quick response.
>
> On Friday, January 13, 2012 8:32:14 PM UTC+9, Sudeep wrote:
>>
>> Hi Guys,
>>
>> I have a query related to Action bar in ICS.
>>
>> As we all know Action bar supports both mode , 1. Navigation Tabs 2.
>> Drop-down Navigation.
>>
>> I have an Activity with Action bar and added Navigation Tabs such that
>> each Tab text is lengthy. (say TAB1...., TAB2...., TAB3....,
>> TAB4..... etc...) So the view i will be seeing in the portrait mode
>> will be as shown in snapshot_portrait.png which is attached with this
>> email. If the Tab doesn't fit in Portrait mode, the desired tab can be
>> reached by fling action.
>>
>> Now changing the orientation, the Tabbed view changes to a drop down
>> if all the tabs doesnt fit the entire landscape view width.
>>
>> I wanted to have the same Tabbed views in landscape mode too where
>> fling action can slide the tabs..
>>
>> Please can anybody let me know how can i achieve this.
>>
>> Appreciate your quick reply.
>>
>> Thanks...
>>
>>  --
> 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

-- 
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