Enables the `LAYER_TYPE_SOFTWARE` for the view holding this icon,
to enable correct shadowLayer drawing

@param view the view holding this `IconicsDrawable`
@return The current IconicsDrawable for chaining.
@see View#setLayerType(int, Paint)
420871
@NonNull
    public IconicsDrawable enableShadowSupport(@NonNull View view) {
        view.setLayerType(LAYER_TYPE_SOFTWARE, null);
        return this;
    }
1339077
public static void apply(@NonNull View view) {
        if (view.isInEditMode()) {
            return;
        }

        final AssetManager assets = view.getContext().getAssets();
        if (view instanceof TextView) {
            setTypeface((TextView) view, getFontFromTag(assets, view, false));
        } else if (view instanceof ViewGroup) {
            applyAllRecursively((ViewGroup) view, assets);
        }
    }
921198
@Override
    public final Scene add(final Layer layer)
    {
        if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED))
        {
            layer.removeFromParent();

            layer.setPixelSize(getWidth(), getHeight());

            getElement().appendChild(layer.getElement());

            super.add(layer);

            layer.batch();
        }
        return this;
    }
1361132
public static void setDrawableTint(@NonNull Drawable drawable, @ColorInt int color) {
        DrawableCompat.setTint(DrawableCompat.wrap(drawable.mutate()), color);
    }
846152
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public void animate(View view) {
        if (!expanded) {
            mIv.setImageDrawable(mSearchToBar);
            mSearchToBar.start();
            mIv.animate().translationX(0f).setDuration(mDuration).setInterpolator(mInterp);
            //text.animate().alpha(1f).setStartDelay(duration - 100).setDuration(100).setInterpolator(interp);
        } else {
            mIv.setImageDrawable(mBarToSearch);
            mBarToSearch.start();
            mIv.animate().translationX(mOffset).setDuration(mDuration).setInterpolator(mInterp);
            //text.setAlpha(0f);
        }
        expanded = !expanded;
    }
613245
public void setIconAllowOverlap( Boolean value) {
    PropertyValue propertyValue = iconAllowOverlap(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_ALLOW_OVERLAP, propertyValue);
    layer.setProperties(propertyValue);
  }
373339
public void setChromeShadowColor(int color) {
    if (chromeShadowColor != color) {
      viewBorderPaint.setShadowLayer(1, -1, 1, color);
      chromeShadowColor = color;
      invalidate();
    }
  }
695260
@NonNull
    public IconicsDrawable drawBackgroundContour(boolean drawBackgroundContour) {
        if (mDrawBackgroundContour != drawBackgroundContour) {
            mDrawBackgroundContour = drawBackgroundContour;

            mIconPadding += (mDrawBackgroundContour ? 1 : -1) * mBackgroundContourWidth * 2;

            invalidateSelf();
        }
        return this;
    }
705886
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setIcon(Drawable icon) {
    messageView.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
    return this;
  }
546821
@Override
    public void paint(Graphics g, Shape allocation)
    {
        if (view != null)
        {
            view.paint(g, allocation);
        }
    }
973356
public void setFailureImage(Drawable drawable, ScalingUtils.ScaleType scaleType) {
    setChildDrawableAtIndex(FAILURE_IMAGE_INDEX, drawable);
    getScaleTypeDrawableAtIndex(FAILURE_IMAGE_INDEX).setScaleType(scaleType);
  }
748019
@Nullable
    public static String setVariantForView(@NonNull View view, @NonNull AttributeSet attrs) {
        String previousVariant;
        final TypedArray styledAttributes = view.getContext().getTheme()
                .obtainStyledAttributes(attrs, R.styleable.View, 0, 0);
        try {
            previousVariant = setVariantForView(view, styledAttributes
                    .getString(R.styleable.View_variant));
        } finally {
            styledAttributes.recycle();
        }

        return previousVariant;
    }
694522
public static void addViewToFrame(final JInternalFrame internalFrame, final View<?, ?> view)
	{
		internalFrame.add(view.getComponent(), BorderLayout.CENTER);
		internalFrame.pack();
	}
1139078
private void enableDisableView(View view, boolean enabled) {
        view.setEnabled(enabled);
        view.setFocusable(enabled);
        if (view instanceof ViewGroup) {
            ViewGroup group = (ViewGroup) view;

            for (int idx = 0; idx < group.getChildCount(); idx++) {
                enableDisableView(group.getChildAt(idx), enabled);
            }
        }
    }
631767
private void createImageAndGraphics(int layer) {
		layeredImage[layer] = new BufferedImage(tileWidth, tileHeight,
				BufferedImage.TYPE_INT_ARGB);
		layeredGraphics[layer] = layeredImage[layer].createGraphics();
		layeredGraphics[layer].setRenderingHint(
				RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);
	}
283892
public boolean setTypeface(GVRContext gvrContext, String font) {
        return setTypeface(gvrContext, font, fontStyleTypes.PLAIN);
    }
294917
public void setClearView(View view) {
        mClearView = view;
        if (view != null) {
            view.setVisibility(mOpened ? VISIBLE : INVISIBLE);
            view.setOnClickListener(mOnClickListenerClearView);
        }
    }