package android.support.design.widget;

import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewCompat;

public final class TabLayoutUtils {
    public static TabLayout.Tab setBackground(@NonNull final TabLayout.Tab tab, @Nullable final Drawable background) {
        ViewCompat.setBackground(tab.mView, background);
        return tab;
    }
}

@@ -444,11 +444,187 @@
 b;%0A    %7D
+%0A%0A    public static TabLayout.Tab setVisibility(@NonNull final TabLayout.Tab tab, final int visibility) %7B%0A        tab.mView.setVisibility(visibility);%0A        return tab;%0A    %7D
 %0A%7D%0A

add method to set tab visibility