Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.MenuItem;

public class Main {
    public static void setActionView(final MenuItem item, final Integer layout) {
        if (item == null) {
            return;
        }

        if (layout == null) {
            item.setActionView(null);
        } else {
            item.setActionView(layout);
        }
    }
}