Monday, April 9, 2012

[android-developers] TabWidget with a gap in the middle

Due to a special design I need a TabWidget with a four tabs and a gap in the middle, i.e. two tabs to the left, then a 31dp space and then two tabs to the right.

I've thought about adding a dummy tab, but that doesn't work with ViewPager for swiping from the second to the third tab. I've also considered using one of the divider children, but those were removed in recent versions.

Seems like I have to sub-class TabWidget and insert an extra view somehow. Is this worth a try or is there any better solution?

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

No comments:

Post a Comment