Android Open Source - BT4Android-trunk Action Provider Wrapper

From Project

Back to project page BT4Android-trunk.


The source code is released under:

Apache License

If you think the Android project BT4Android-trunk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.actionbarsherlock.internal.view;
/*  w  w  w  . j  ava2  s .c om*/
import com.actionbarsherlock.view.ActionProvider;
import android.view.View;

public class ActionProviderWrapper extends android.view.ActionProvider {
    private final ActionProvider mProvider;

    public ActionProviderWrapper(ActionProvider provider) {
        super(null/*TODO*/); //XXX this *should* be unused
        mProvider = provider;

    public ActionProvider unwrap() {
        return mProvider;

    public View onCreateActionView() {
        return mProvider.onCreateActionView();

    public boolean hasSubMenu() {
        return mProvider.hasSubMenu();

    public boolean onPerformDefaultAction() {
        return mProvider.onPerformDefaultAction();

    public void onPrepareSubMenu(android.view.SubMenu subMenu) {
        mProvider.onPrepareSubMenu(new SubMenuWrapper(subMenu));

Java Source Code List