set the icon offset for X from resource

@return The current IconicsDrawable for chaining.
966476
@NonNull
    public IconicsDrawable iconOffsetXRes(@DimenRes int sizeResId) {
        return iconOffsetXPx(mContext.getResources().getDimensionPixelSize(sizeResId));
    }
630782
public Object getIcon(int iIconType)
    {
        if (m_rgIcons == null)
            return null;
        return m_rgIcons[iIconType - CalendarConstants.START_ICON];
    }
693663
public static boolean setIcon(MarkerOptions markerOptions, IconRow icon, float density) {
        return setIcon(markerOptions, icon, density, null);
    }
705886
@NonNull
  @SuppressWarnings("WeakerAccess")
  public SnackbarWrapper setIcon(Drawable icon) {
    messageView.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
    return this;
  }
1209510
@Override
    public Image getIcon(int iconType) {
        Pair<String, Image> pair = iconInformation.get(iconType);
        String imagePath = pair.first;
        Image imageOrNull = pair.second;
        if ((imageOrNull == null) && (imagePath != null)) {
            imageOrNull = loadImage(imagePath);
        }
        return imageOrNull;
    }
877741
public static void styleEditable(@NonNull Context ctx,
                                     @Nullable HashMap<String, ITypeface> fonts,
                                     @NonNull Editable textSpanned,
                                     @Nullable List<CharacterStyle> styles,
                                     @Nullable HashMap<String, List<CharacterStyle>> stylesFor) {
        fonts = init(ctx, fonts);

        //find all icons which should be replaced with the iconFont
        List<StyleContainer> styleContainers = IconicsUtils.findIconsFromEditable(textSpanned, fonts);

        //set all the icons and styles
        IconicsUtils.applyStyles(ctx, textSpanned, styleContainers, styles, stylesFor);
    }
185313
protected Icon getHeaderRendererIcon(boolean bCurrentOrder) {
        // Get current classloader
        ClassLoader cl = this.getClass().getClassLoader();
        // Create icons
        try   {
            if (ASCENDING_ICON == null)
            {
                ASCENDING_ICON  = new ImageIcon(cl.getResource("images/buttons/" + ASCENDING_ICON_NAME + ".gif"));
                DESCENDING_ICON  = new ImageIcon(cl.getResource("images/buttons/" + DESCENDING_ICON_NAME + ".gif"));
            }
            return bCurrentOrder ? ASCENDING_ICON : DESCENDING_ICON;
        } catch (Exception ex)  {
        }
        return null;
    }
778675
private Icon getSynthIcon(AbstractButton b, int synthConstant) {
        return style.getIcon(getContext(b, synthConstant), getPropertyPrefix() + "icon");
    }
434187
public void setIconPadding( Float value) {
    PropertyValue propertyValue = iconPadding(value);
    constantPropertyUsageMap.put(PROPERTY_ICON_PADDING, propertyValue);
    layer.setProperties(propertyValue);
  }
253046
@NonNull
    public IconicsDrawable backgroundContourWidthPx(@Dimension(unit = PX) int sizePx) {
        mBackgroundContourWidth = sizePx;
        mBackgroundContourBrush.getPaint().setStrokeWidth(sizePx);
        drawBackgroundContour(true);

        invalidateSelf();
        return this;
    }
223181
@Override
	public void setIconForMenu(IconLocationType iconForMenu)
	{
		if (null != iconForMenu)
		{
			myUserInterfaceAction.setIconForMenu(iconForMenu);
			ImageIcon _icon = retrieveIcon(getIconForMenu());
			putValue(Action.SMALL_ICON, _icon);
		}
	}
206848
@NonNull
    public IconicsDrawable icon(@NonNull IIcon icon) {
        mIcon = icon;
        mPlainIcon = null;
        ITypeface typeface = icon.getTypeface();
        mIconBrush.getPaint().setTypeface(typeface.getTypeface(mContext));

        invalidateSelf();
        return this;
    }
967892
public Icon getIcon (String iconSet, int index)
    {
        try {
            // see if the tileset is already loaded
            TileSet set = _icons.get(iconSet);

            // load it up if not
            if (set == null) {
                String path = _config.getProperty(iconSet + PATH_SUFFIX);
                if (StringUtil.isBlank(path)) {
                    throw new Exception("No path specified for icon set");
                }

                String metstr = _config.getProperty(iconSet + METRICS_SUFFIX);
                if (StringUtil.isBlank(metstr)) {
                    throw new Exception("No metrics specified for icon set");
                }

                int[] metrics = StringUtil.parseIntArray(metstr);
                if (metrics == null || metrics.length != 2) {
                    throw new Exception("Invalid icon set metrics " +
                                        "[metrics=" + metstr + "]");
                }

                // load up the tileset
                if (_rsrcSet == null) {
                    set = _tilemgr.loadTileSet(
                        path, metrics[0], metrics[1]);
                } else {
                    set = _tilemgr.loadTileSet(
                        _rsrcSet, path, metrics[0], metrics[1]);
                }

                // cache it
                _icons.put(iconSet, set);
            }

            // fetch the appropriate image and create an image icon
            return new TileIcon(set.getTile(index));

        } catch (Exception e) {
            log.warning("Unable to load icon [iconSet=" + iconSet +
                        ", index=" + index + ", error=" + e + "].");
        }

        // return an error icon
        return new ImageIcon(ImageUtil.createErrorImage(32, 32));
    }
1129113
@NonNull
    public IconicsDrawable icon(@NonNull Character icon) {
        return iconText(icon.toString(), null);
    }
1196353
void setDrawable(@Nullable IconicsAnimatedDrawable drawable) {
        mDrawable = null;
        onDrawableDetached();

        if (drawable != null) {
            mDrawable = drawable;
            onDrawableAttached();

            if (mIsStartImmediately || mIsStartRequested) {
                start();
            }
        } else {
            mAnimator.cancel();
        }
    }
647654
public void setIconAwesome(String _iconAwesome) {
		AddResourcesListener.setNeedsFontsAwesome(this);
		getStateHelper().put(PropertyKeys.iconAwesome, _iconAwesome);
	}
467652
@NonNull
    public IconicsDrawable paddingPx(@Dimension(unit = PX) int sizePx) {
        if (mIconPadding != sizePx) {
            mIconPadding = sizePx;
            if (mDrawContour) {
                mIconPadding += mContourWidth;
            }
            if (mDrawBackgroundContour) {
                mIconPadding += mBackgroundContourWidth;
            }

            invalidateSelf();
        }
        return this;
    }