FileDocCategorySizeDatePackage
ActionBarActivityDelegateHC.javaAPI DocAndroid 5.1 API2528Thu Mar 12 22:22:56 GMT 2015android.support.v7.app

ActionBarActivityDelegateHC

public class ActionBarActivityDelegateHC extends ActionBarActivityDelegateBase implements NativeActionModeAwareLayout.OnActionModeForChildListener

Fields Summary
private android.support.v7.internal.widget.NativeActionModeAwareLayout
mNativeActionModeAwareLayout
Constructors Summary
ActionBarActivityDelegateHC(ActionBarActivity activity)

        super(activity);
    
Methods Summary
voidonSubDecorInstalled()

        // NativeActionModeAwareLayout is used to notify us when a native Action Mode is started
        mNativeActionModeAwareLayout = (NativeActionModeAwareLayout) mActivity
                .findViewById(android.R.id.content);

        // Can be null when using FEATURE_ACTION_BAR_OVERLAY
        if (mNativeActionModeAwareLayout != null) {
            mNativeActionModeAwareLayout.setActionModeForChildListener(this);
        }
    
public android.view.ActionModestartActionModeForChild(android.view.View originalView, ActionMode.Callback callback)

        Context context = originalView.getContext();

        // Try and start a support action mode, wrapping the callback
        final android.support.v7.view.ActionMode supportActionMode = startSupportActionMode(
                new SupportActionModeWrapper.CallbackWrapper(context, callback));

        if (supportActionMode != null) {
            // If we received a support action mode, wrap and return it
            return new SupportActionModeWrapper(mActivity, supportActionMode);
        }
        return null;