|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity
android.support.v4.app.FragmentActivity
org.android.activityminer.app.util.BasicTabActivity
public abstract class BasicTabActivity
A basic tab activity implementation based on the FragmentTabsPager example from the android support libraries.
Field Summary | |
---|---|
private android.support.v4.app.FragmentTabHost |
tabHost
The tab host |
Fields inherited from class android.app.Activity |
---|
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK |
Fields inherited from interface android.content.ComponentCallbacks2 |
---|
TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN |
Constructor Summary | |
---|---|
BasicTabActivity()
Constructor |
Method Summary | |
---|---|
protected void |
addTab(String title,
Class<? extends android.support.v4.app.Fragment> cls)
Does create a tab with the own tab view layout |
protected void |
addTab(String title,
Class<? extends android.support.v4.app.Fragment> cls,
Bundle bundle)
Does create a tab with the own tab view layout |
protected void |
clearAllTabs()
Does remove all tabs from the tabhost |
protected void |
onCreate(Bundle savedInstanceState)
|
Methods inherited from class android.support.v4.app.FragmentActivity |
---|
dump, getLastCustomNonConfigurationInstance, getSupportFragmentManager, getSupportLoaderManager, onActivityResult, onAttachFragment, onBackPressed, onConfigurationChanged, onCreatePanelMenu, onCreateView, onDestroy, onKeyDown, onLowMemory, onMenuItemSelected, onNewIntent, onPanelClosed, onPause, onPostResume, onPrepareOptionsPanel, onPreparePanel, onResume, onResumeFragments, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance, onSaveInstanceState, onStart, onStop, startActivityForResult, startActivityFromFragment, supportInvalidateOptionsMenu |
Methods inherited from class android.view.ContextThemeWrapper |
---|
applyOverrideConfiguration, attachBaseContext, getResources, getTheme, setTheme |
Methods inherited from class android.content.Context |
---|
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private android.support.v4.app.FragmentTabHost tabHost
Constructor Detail |
---|
public BasicTabActivity()
Method Detail |
---|
protected void onCreate(Bundle savedInstanceState)
onCreate
in class android.support.v4.app.FragmentActivity
protected final void addTab(String title, Class<? extends android.support.v4.app.Fragment> cls, Bundle bundle)
title
- the tab titlecls
- the class for the tab contentbundle
- the bundle to pass to the fragment activityprotected final void addTab(String title, Class<? extends android.support.v4.app.Fragment> cls)
title
- the tab titlecls
- the class for the tab contentprotected final void clearAllTabs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |