/** * Copyright 2010 Mark Wyszomierski */ package com.joelapenna.foursquared.util; import android.view.View; import android.widget.TabHost; import android.widget.TabHost.TabSpec; /** * Acts as an interface to the TabSpec class for setting the content view. * The level 3 SDK doesn't support setting a View for the content sections * of the tab, so we can only use the big native tab style. The level 4 * SDK and up support specifying a custom view for the tab. * * @date March 9, 2010 * @author Mark Wyszomierski (markww@gmail.com), foursquare. */ public class TabsUtil4 { private TabsUtil4() { } public static void setTabIndicator(TabSpec spec, View view) { spec.setIndicator(view); } public static int getTabCount(TabHost tabHost) { return tabHost.getTabWidget().getTabCount(); } }