Tabs. The Fragment Way | Techbirds
package com.andy.fragments.tabs; import java.util.HashMap; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentTransaction; import android.view.View; import android.widget.TabHost; import android.widget.TabHost.TabContentFactory; import com.andy.R; /** * @author mwho * */ public class TabsFragmentActivity extends FragmentActivity implements TabHost.OnTabChangeListener { private TabHost mTabHost; private HashMap mapTabInfo = new HashMap(); private TabInfo mLastTab = null; private class TabInfo { private