Java Code Examples for android.view.Window#FEATURE_ACTION_BAR_OVERLAY

The following examples show how to use android.view.Window#FEATURE_ACTION_BAR_OVERLAY . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionBarSherlockCompat.java    From CSipSimple with GNU General Public License v3.0 6 votes vote down vote up
@Override
public boolean requestFeature(int featureId) {
    if (ActionBarSherlock.DEBUG) Log.d(TAG, "[requestFeature] featureId: " + featureId);

    if (mContentParent != null) {
        throw new AndroidRuntimeException("requestFeature() must be called before adding content");
    }

    switch (featureId) {
        case Window.FEATURE_ACTION_BAR:
        case Window.FEATURE_ACTION_BAR_OVERLAY:
        case Window.FEATURE_ACTION_MODE_OVERLAY:
        case Window.FEATURE_INDETERMINATE_PROGRESS:
        case Window.FEATURE_NO_TITLE:
        case Window.FEATURE_PROGRESS:
            mFeatures |= (1 << featureId);
            return true;

        default:
            return false;
    }
}
 
Example 2
Source File: ActionBarSherlockCompat.java    From android-apps with MIT License 6 votes vote down vote up
@Override
public boolean requestFeature(int featureId) {
    if (DEBUG) Log.d(TAG, "[requestFeature] featureId: " + featureId);

    if (mContentParent != null) {
        throw new AndroidRuntimeException("requestFeature() must be called before adding content");
    }

    switch (featureId) {
        case Window.FEATURE_ACTION_BAR:
        case Window.FEATURE_ACTION_BAR_OVERLAY:
        case Window.FEATURE_ACTION_MODE_OVERLAY:
        case Window.FEATURE_INDETERMINATE_PROGRESS:
        case Window.FEATURE_NO_TITLE:
        case Window.FEATURE_PROGRESS:
            mFeatures |= (1 << featureId);
            return true;

        default:
            return false;
    }
}
 
Example 3
Source File: ActionBarSherlockCompat.java    From zen4android with MIT License 6 votes vote down vote up
@Override
public boolean requestFeature(int featureId) {
    if (ActionBarSherlock.DEBUG) Log.d(TAG, "[requestFeature] featureId: " + featureId);

    if (mContentParent != null) {
        throw new AndroidRuntimeException("requestFeature() must be called before adding content");
    }

    switch (featureId) {
        case Window.FEATURE_ACTION_BAR:
        case Window.FEATURE_ACTION_BAR_OVERLAY:
        case Window.FEATURE_ACTION_MODE_OVERLAY:
        case Window.FEATURE_INDETERMINATE_PROGRESS:
        case Window.FEATURE_NO_TITLE:
        case Window.FEATURE_PROGRESS:
            mFeatures |= (1 << featureId);
            return true;

        default:
            return false;
    }
}
 
Example 4
Source File: ActionBarSherlockCompat.java    From zhangshangwuda with Apache License 2.0 6 votes vote down vote up
@Override
public boolean requestFeature(int featureId) {
    if (ActionBarSherlock.DEBUG) Log.d(TAG, "[requestFeature] featureId: " + featureId);

    if (mContentParent != null) {
        throw new AndroidRuntimeException("requestFeature() must be called before adding content");
    }

    switch (featureId) {
        case Window.FEATURE_ACTION_BAR:
        case Window.FEATURE_ACTION_BAR_OVERLAY:
        case Window.FEATURE_ACTION_MODE_OVERLAY:
        case Window.FEATURE_INDETERMINATE_PROGRESS:
        case Window.FEATURE_NO_TITLE:
        case Window.FEATURE_PROGRESS:
            mFeatures |= (1 << featureId);
            return true;

        default:
            return false;
    }
}
 
Example 5
Source File: ActionBarSherlockCompat.java    From Libraries-for-Android-Developers with MIT License 6 votes vote down vote up
@Override
public boolean requestFeature(int featureId) {
    if (ActionBarSherlock.DEBUG) Log.d(TAG, "[requestFeature] featureId: " + featureId);

    if (mContentParent != null) {
        throw new AndroidRuntimeException("requestFeature() must be called before adding content");
    }

    switch (featureId) {
        case Window.FEATURE_ACTION_BAR:
        case Window.FEATURE_ACTION_BAR_OVERLAY:
        case Window.FEATURE_ACTION_MODE_OVERLAY:
        case Window.FEATURE_INDETERMINATE_PROGRESS:
        case Window.FEATURE_NO_TITLE:
        case Window.FEATURE_PROGRESS:
            mFeatures |= (1 << featureId);
            return true;

        default:
            return false;
    }
}
 
Example 6
Source File: ActionBarImpl.java    From CSipSimple with GNU General Public License v3.0 5 votes vote down vote up
public ActionBarImpl(Activity activity, int features) {
    mActivity = activity;
    Window window = activity.getWindow();
    View decor = window.getDecorView();
    init(decor);

    //window.hasFeature() workaround for pre-3.0
    if ((features & (1 << Window.FEATURE_ACTION_BAR_OVERLAY)) == 0) {
        mContentView = (NineFrameLayout)decor.findViewById(android.R.id.content);
    }
}
 
Example 7
Source File: ActionBarImpl.java    From android-apps with MIT License 5 votes vote down vote up
public ActionBarImpl(Activity activity, int features) {
    mActivity = activity;
    Window window = activity.getWindow();
    View decor = window.getDecorView();
    init(decor);

    //window.hasFeature() workaround for pre-3.0
    if ((features & (1 << Window.FEATURE_ACTION_BAR_OVERLAY)) == 0) {
        mContentView = (NineFrameLayout)decor.findViewById(android.R.id.content);
    }
}
 
Example 8
Source File: ActionBarImpl.java    From zen4android with MIT License 5 votes vote down vote up
public ActionBarImpl(Activity activity, int features) {
    mActivity = activity;
    Window window = activity.getWindow();
    View decor = window.getDecorView();
    init(decor);

    //window.hasFeature() workaround for pre-3.0
    if ((features & (1 << Window.FEATURE_ACTION_BAR_OVERLAY)) == 0) {
        mContentView = (NineFrameLayout)decor.findViewById(android.R.id.content);
    }
}
 
Example 9
Source File: ActionBarImpl.java    From zhangshangwuda with Apache License 2.0 5 votes vote down vote up
public ActionBarImpl(Activity activity, int features) {
    mActivity = activity;
    Window window = activity.getWindow();
    View decor = window.getDecorView();
    init(decor);

    //window.hasFeature() workaround for pre-3.0
    if ((features & (1 << Window.FEATURE_ACTION_BAR_OVERLAY)) == 0) {
        mContentView = (NineFrameLayout)decor.findViewById(android.R.id.content);
    }
}
 
Example 10
Source File: ActionBarImpl.java    From Libraries-for-Android-Developers with MIT License 5 votes vote down vote up
public ActionBarImpl(Activity activity, int features) {
    mActivity = activity;
    Window window = activity.getWindow();
    View decor = window.getDecorView();
    init(decor);

    //window.hasFeature() workaround for pre-3.0
    if ((features & (1 << Window.FEATURE_ACTION_BAR_OVERLAY)) == 0) {
        mContentView = (NineFrameLayout)decor.findViewById(android.R.id.content);
    }
}