com.actionbarsherlock.app
Class SherlockActivity

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.view.ContextThemeWrapper
              extended by android.app.Activity
                  extended by com.actionbarsherlock.app.SherlockActivity
All Implemented Interfaces:
android.content.ComponentCallbacks, android.content.ComponentCallbacks2, android.view.KeyEvent.Callback, android.view.LayoutInflater.Factory, android.view.LayoutInflater.Factory2, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback, ActionBarSherlock.OnActionModeFinishedListener, ActionBarSherlock.OnActionModeStartedListener, ActionBarSherlock.OnCreatePanelMenuListener, ActionBarSherlock.OnMenuItemSelectedListener, ActionBarSherlock.OnPreparePanelListener
Direct Known Subclasses:
ActionBarSherlockSample

public abstract class SherlockActivity
extends android.app.Activity
implements ActionBarSherlock.OnCreatePanelMenuListener, ActionBarSherlock.OnPreparePanelListener, ActionBarSherlock.OnMenuItemSelectedListener, ActionBarSherlock.OnActionModeStartedListener, ActionBarSherlock.OnActionModeFinishedListener


Field Summary
 
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 class android.content.Context
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_ROUTER_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
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
SherlockActivity()
           
 
Method Summary
 void addContentView(android.view.View view, android.view.ViewGroup.LayoutParams params)
           
 void closeOptionsMenu()
           
 boolean dispatchKeyEvent(android.view.KeyEvent event)
           
 android.view.View findViewById(int id)
           
protected  ActionBarSherlock getSherlock()
           
 ActionBar getSupportActionBar()
           
 MenuInflater getSupportMenuInflater()
           
 void invalidateOptionsMenu()
           
 void onActionModeFinished(ActionMode mode)
           
 void onActionModeStarted(ActionMode mode)
           
 void onConfigurationChanged(android.content.res.Configuration newConfig)
           
 boolean onCreateOptionsMenu(android.view.Menu menu)
           
 boolean onCreateOptionsMenu(Menu menu)
           
 boolean onCreatePanelMenu(int featureId, Menu menu)
           
protected  void onDestroy()
           
 boolean onMenuItemSelected(int featureId, MenuItem item)
           
 boolean onMenuOpened(int featureId, android.view.Menu menu)
           
 boolean onOptionsItemSelected(android.view.MenuItem item)
           
 boolean onOptionsItemSelected(MenuItem item)
           
 void onPanelClosed(int featureId, android.view.Menu menu)
           
protected  void onPause()
           
protected  void onPostCreate(android.os.Bundle savedInstanceState)
           
protected  void onPostResume()
           
 boolean onPrepareOptionsMenu(android.view.Menu menu)
           
 boolean onPrepareOptionsMenu(Menu menu)
           
 boolean onPreparePanel(int featureId, android.view.View view, Menu menu)
           
protected  void onRestoreInstanceState(android.os.Bundle savedInstanceState)
           
protected  void onSaveInstanceState(android.os.Bundle outState)
           
protected  void onStop()
           
protected  void onTitleChanged(CharSequence title, int color)
           
 void openOptionsMenu()
           
 void requestWindowFeature(long featureId)
           
 void setContentView(int layoutResId)
           
 void setContentView(android.view.View view)
           
 void setContentView(android.view.View view, android.view.ViewGroup.LayoutParams params)
           
 void setSupportProgress(int progress)
           
 void setSupportProgressBarIndeterminate(boolean indeterminate)
           
 void setSupportProgressBarIndeterminateVisibility(boolean visible)
           
 void setSupportProgressBarVisibility(boolean visible)
           
 void setSupportSecondaryProgress(int secondaryProgress)
           
 ActionMode startActionMode(ActionMode.Callback callback)
           
 void supportInvalidateOptionsMenu()
           
 
Methods inherited from class android.app.Activity
closeContextMenu, createPendingResult, dismissDialog, dispatchGenericMotionEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dump, finish, finishActivity, finishActivityFromChild, finishAffinity, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMenuInflater, getParent, getParentActivityIntent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, isChangingConfigurations, isChild, isFinishing, isTaskRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onActivityResult, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onBackPressed, onChildTitleChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onCreateView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLowMemory, onMenuItemSelected, onNavigateUp, onNavigateUpFromChild, onNewIntent, onOptionsMenuClosed, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPreparePanel, onRestart, onResume, onRetainNonConfigurationInstance, onSearchRequested, onStart, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, overridePendingTransition, recreate, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setIntent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, shouldUpRecreateTask, showDialog, showDialog, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityForResult, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
 
Methods inherited from class android.view.ContextThemeWrapper
attachBaseContext, getTheme, setTheme
 
Methods inherited from class android.content.ContextWrapper
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
 
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
 

Constructor Detail

SherlockActivity

public SherlockActivity()
Method Detail

getSherlock

protected final ActionBarSherlock getSherlock()

getSupportActionBar

public ActionBar getSupportActionBar()

startActionMode

public ActionMode startActionMode(ActionMode.Callback callback)

onActionModeStarted

public void onActionModeStarted(ActionMode mode)
Specified by:
onActionModeStarted in interface ActionBarSherlock.OnActionModeStartedListener

onActionModeFinished

public void onActionModeFinished(ActionMode mode)
Specified by:
onActionModeFinished in interface ActionBarSherlock.OnActionModeFinishedListener

onConfigurationChanged

public void onConfigurationChanged(android.content.res.Configuration newConfig)
Specified by:
onConfigurationChanged in interface android.content.ComponentCallbacks
Overrides:
onConfigurationChanged in class android.app.Activity

onPostResume

protected void onPostResume()
Overrides:
onPostResume in class android.app.Activity

onPause

protected void onPause()
Overrides:
onPause in class android.app.Activity

onStop

protected void onStop()
Overrides:
onStop in class android.app.Activity

onDestroy

protected void onDestroy()
Overrides:
onDestroy in class android.app.Activity

onPostCreate

protected void onPostCreate(android.os.Bundle savedInstanceState)
Overrides:
onPostCreate in class android.app.Activity

onTitleChanged

protected void onTitleChanged(CharSequence title,
                              int color)
Overrides:
onTitleChanged in class android.app.Activity

onMenuOpened

public final boolean onMenuOpened(int featureId,
                                  android.view.Menu menu)
Specified by:
onMenuOpened in interface android.view.Window.Callback
Overrides:
onMenuOpened in class android.app.Activity

onPanelClosed

public void onPanelClosed(int featureId,
                          android.view.Menu menu)
Specified by:
onPanelClosed in interface android.view.Window.Callback
Overrides:
onPanelClosed in class android.app.Activity

dispatchKeyEvent

public boolean dispatchKeyEvent(android.view.KeyEvent event)
Specified by:
dispatchKeyEvent in interface android.view.Window.Callback
Overrides:
dispatchKeyEvent in class android.app.Activity

onSaveInstanceState

protected void onSaveInstanceState(android.os.Bundle outState)
Overrides:
onSaveInstanceState in class android.app.Activity

onRestoreInstanceState

protected void onRestoreInstanceState(android.os.Bundle savedInstanceState)
Overrides:
onRestoreInstanceState in class android.app.Activity

getSupportMenuInflater

public MenuInflater getSupportMenuInflater()

invalidateOptionsMenu

public void invalidateOptionsMenu()
Overrides:
invalidateOptionsMenu in class android.app.Activity

supportInvalidateOptionsMenu

public void supportInvalidateOptionsMenu()

onCreateOptionsMenu

public final boolean onCreateOptionsMenu(android.view.Menu menu)
Overrides:
onCreateOptionsMenu in class android.app.Activity

onPrepareOptionsMenu

public final boolean onPrepareOptionsMenu(android.view.Menu menu)
Overrides:
onPrepareOptionsMenu in class android.app.Activity

onOptionsItemSelected

public final boolean onOptionsItemSelected(android.view.MenuItem item)
Overrides:
onOptionsItemSelected in class android.app.Activity

openOptionsMenu

public void openOptionsMenu()
Overrides:
openOptionsMenu in class android.app.Activity

closeOptionsMenu

public void closeOptionsMenu()
Overrides:
closeOptionsMenu in class android.app.Activity

onCreatePanelMenu

public boolean onCreatePanelMenu(int featureId,
                                 Menu menu)
Specified by:
onCreatePanelMenu in interface ActionBarSherlock.OnCreatePanelMenuListener

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)

onPreparePanel

public boolean onPreparePanel(int featureId,
                              android.view.View view,
                              Menu menu)
Specified by:
onPreparePanel in interface ActionBarSherlock.OnPreparePanelListener

onPrepareOptionsMenu

public boolean onPrepareOptionsMenu(Menu menu)

onMenuItemSelected

public boolean onMenuItemSelected(int featureId,
                                  MenuItem item)
Specified by:
onMenuItemSelected in interface ActionBarSherlock.OnMenuItemSelectedListener

onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)

addContentView

public void addContentView(android.view.View view,
                           android.view.ViewGroup.LayoutParams params)
Overrides:
addContentView in class android.app.Activity

setContentView

public void setContentView(int layoutResId)
Overrides:
setContentView in class android.app.Activity

setContentView

public void setContentView(android.view.View view,
                           android.view.ViewGroup.LayoutParams params)
Overrides:
setContentView in class android.app.Activity

setContentView

public void setContentView(android.view.View view)
Overrides:
setContentView in class android.app.Activity

requestWindowFeature

public void requestWindowFeature(long featureId)

findViewById

public android.view.View findViewById(int id)
Overrides:
findViewById in class android.app.Activity

setSupportProgress

public void setSupportProgress(int progress)

setSupportProgressBarIndeterminate

public void setSupportProgressBarIndeterminate(boolean indeterminate)

setSupportProgressBarIndeterminateVisibility

public void setSupportProgressBarIndeterminateVisibility(boolean visible)

setSupportProgressBarVisibility

public void setSupportProgressBarVisibility(boolean visible)

setSupportSecondaryProgress

public void setSupportSecondaryProgress(int secondaryProgress)


Copyright © 2012-2013. All Rights Reserved.