Android Open Source - attendance-viewer Action Provider Wrapper

From Project

Back to project page attendance-viewer.


The source code is released under:

MIT License

If you think the Android project attendance-viewer 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  ww .  jav  a2s .  co m*/
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