Android Question StdActionBar, ask when has more than 3 tabs

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I am using StdActionBar (ver 1.5) with 6 tabs. On Nexus 7 in portrait mode, the tabs became a drop down list. On my 5" phone, it looks normal( tab not became drop down list) Tab using NAVIGATION_MODE_TABS (Both using Jellybean)

Also tried on 4" phone with ICS, still looks normal.

I have a few questions :
1) is this a normal behavior ?
2) On Nexus 7, when page was sliding, but drop down list was not synchronized,
Tried to use this code, but no avail
Code: Copy
Sub VP_PageSelected (Position As Int)
    bar.SelectedIndex = vp.CurrentPage
End Sub
Tried change tab mode to NAVIGATION_MODE_LIST, but drop down list is not visible. Any solution to synchronized drop down and tabs.

Thanks in advance.
 
See this link about the different modes: https://code.google.com/p/android/issues/detail?id=24439

I've tested your code with a phone. I've added 10 tabs and wasn't able to reproduce the sync issue.

Add the following log and check the output:
Code: Copy
Sub VP_PageSelected (Position As Int)
   bar.SelectedIndex = vp.currentPage
   Log(bar.SelectedIndex & ", " & vp.CurrentPage)
End Sub
 
Upvote 0
On the phone, tabs doesn't turn into drop down menu, so never had problem on it.

On Nexus 7 Wifi in portrait mode, tabs turn into drop down menu and doesn't synchronize when page was sliding.

Here is the output from Log(bar.SelectedIndex & ", " & vp.CurrentPage) when sliding page

1,1 -> slide from tab 0 to tab 1
2,2 -> slide from tab 1 to tab 2

Drop down menu / list never synchronize.
 
Upvote 0
This is not good, I am planning to use only portrait mode in my app.

I don't mind tabs turn to drop down, as long as synchronized properly.

Guess I have to find another alternative for StdActionBar.
 
Last edited:
Upvote 0
Back
Top