android - What is the best way to find out the number of Tabs in a TabActivity? -


i create tabs dynamically in tabactivity. there simple way ask number of existing tabs?

maybe bit of workaround, should able use: gettabhost().gettabwidget().gettabcount().

i tested in app , worked correctly.

see here more info: http://developer.android.com/reference/android/widget/tabwidget.html#gettabcount()


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -