Methods Summary |
---|
abstract void | addContentView(android.view.View v, ViewGroup.LayoutParams lp)
|
static android.support.v7.app.ActionBarActivityDelegate | createDelegate(ActionBarActivity activity)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
return new ActionBarActivityDelegateHC(activity);
} else {
return new ActionBarActivityDelegateBase(activity);
}
|
abstract ActionBar | createSupportActionBar()
|
abstract android.view.View | createView(java.lang.String name, android.content.Context context, android.util.AttributeSet attrs)
|
final void | destroy()
mIsDestroyed = true;
|
abstract boolean | dispatchKeyEvent(android.view.KeyEvent event)
|
protected final android.content.Context | getActionBarThemedContext()
Context context = null;
// If we have an action bar, let it return a themed context
ActionBar ab = getSupportActionBar();
if (ab != null) {
context = ab.getThemedContext();
}
if (context == null) {
context = mActivity;
}
return context;
|
final ActionBarDrawerToggle.Delegate | getDrawerToggleDelegate()
return new ActionBarDrawableToggleImpl();
|
abstract int | getHomeAsUpIndicatorAttrId()
|
android.view.MenuInflater | getMenuInflater()
if (mMenuInflater == null) {
mMenuInflater = new SupportMenuInflater(getActionBarThemedContext());
}
return mMenuInflater;
|
final ActionBar | getSupportActionBar()
// The Action Bar should be lazily created as hasActionBar
// could change after onCreate
if (mHasActionBar) {
if (mActionBar == null) {
mActionBar = createSupportActionBar();
}
}
return mActionBar;
|
final java.lang.String | getUiOptionsFromMetadata()
try {
PackageManager pm = mActivity.getPackageManager();
ActivityInfo info = pm.getActivityInfo(mActivity.getComponentName(),
PackageManager.GET_META_DATA);
String uiOptions = null;
if (info.metaData != null) {
uiOptions = info.metaData.getString(METADATA_UI_OPTIONS);
}
return uiOptions;
} catch (PackageManager.NameNotFoundException e) {
Log.e(TAG, "getUiOptionsFromMetadata: Activity '" + mActivity.getClass()
.getSimpleName() + "' not in manifest");
return null;
}
|
final android.support.v7.app.ActionBarDrawerToggle.Delegate | getV7DrawerToggleDelegate()
return new ActionBarDrawableToggleImpl();
|
final android.support.v7.internal.app.WindowCallback | getWindowCallback()
return mWindowCallback;
|
final boolean | isDestroyed()
return mIsDestroyed;
|
abstract boolean | onBackPressed()
|
abstract void | onConfigurationChanged(android.content.res.Configuration newConfig)
|
abstract void | onContentChanged()
|
void | onCreate(android.os.Bundle savedInstanceState)
TypedArray a = mActivity.obtainStyledAttributes(R.styleable.Theme);
if (!a.hasValue(R.styleable.Theme_windowActionBar)) {
a.recycle();
throw new IllegalStateException(
"You need to use a Theme.AppCompat theme (or descendant) with this activity.");
}
if (a.getBoolean(R.styleable.Theme_windowActionBar, false)) {
mHasActionBar = true;
}
if (a.getBoolean(R.styleable.Theme_windowActionBarOverlay, false)) {
mOverlayActionBar = true;
}
if (a.getBoolean(R.styleable.Theme_windowActionModeOverlay, false)) {
mOverlayActionMode = true;
}
mIsFloating = a.getBoolean(R.styleable.Theme_android_windowIsFloating, false);
a.recycle();
|
abstract boolean | onCreatePanelMenu(int featureId, android.view.Menu menu)
|
abstract boolean | onKeyShortcut(int keyCode, android.view.KeyEvent event)
|
abstract boolean | onMenuOpened(int featureId, android.view.Menu menu)
|
abstract void | onPanelClosed(int featureId, android.view.Menu menu)
|
abstract void | onPostCreate(android.os.Bundle savedInstanceState)
|
abstract void | onPostResume()
|
boolean | onPrepareOptionsPanel(android.view.View view, android.view.Menu menu)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
// Call straight through to onPrepareOptionsMenu, bypassing super.onPreparePanel().
// This is because Activity.onPreparePanel() on <v4.1 calls menu.hasVisibleItems(),
// which interferes with the initially invisible items.
return mActivity.onPrepareOptionsMenu(menu);
}
return mActivity.superOnPrepareOptionsPanel(view, menu);
|
abstract boolean | onPreparePanel(int featureId, android.view.View view, android.view.Menu menu)
|
abstract void | onStop()
|
abstract void | onTitleChanged(java.lang.CharSequence title)
|
final ActionBar | peekSupportActionBar()
return mActionBar;
|
abstract void | setContentView(android.view.View v)
|
abstract void | setContentView(int resId)
|
abstract void | setContentView(android.view.View v, ViewGroup.LayoutParams lp)
|
protected final void | setSupportActionBar(ActionBar actionBar)
mActionBar = actionBar;
|
abstract void | setSupportActionBar(android.support.v7.widget.Toolbar toolbar)
|
abstract void | setSupportProgress(int progress)
|
abstract void | setSupportProgressBarIndeterminate(boolean indeterminate)
|
abstract void | setSupportProgressBarIndeterminateVisibility(boolean visible)
|
abstract void | setSupportProgressBarVisibility(boolean visible)
|
final void | setWindowCallback(android.support.v7.internal.app.WindowCallback callback)
if (callback == null) {
throw new IllegalArgumentException("callback can not be null");
}
mWindowCallback = callback;
|
abstract android.support.v7.view.ActionMode | startSupportActionMode(ActionMode.Callback callback)
|
abstract android.support.v7.view.ActionMode | startSupportActionModeFromWindow(ActionMode.Callback callback)
|
abstract void | supportInvalidateOptionsMenu()
|
abstract boolean | supportRequestWindowFeature(int featureId)
|