/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to * the patch's padding. */ public void setPatch (NinePatch patch) { this.patch = patch; setMinWidth(patch.getTotalWidth()); setMinHeight(patch.getTotalHeight()); setTopHeight(patch.getPadTop()); setRightWidth(patch.getPadRight()); setBottomHeight(patch.getPadBottom()); setLeftWidth(patch.getPadLeft()); }
/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to * the patch's padding. */ public void setPatch (NinePatch patch) { this.patch = patch; setMinWidth(patch.getTotalWidth()); setMinHeight(patch.getTotalHeight()); setTopHeight(patch.getPadTop()); setRightWidth(patch.getPadRight()); setBottomHeight(patch.getPadBottom()); setLeftWidth(patch.getPadLeft()); }
private void addPaddings(NinePatchDrawable ninePatchDrawable, float left, float right, float bottom, float top) { ninePatchDrawable.setLeftWidth(left * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setRightWidth(right * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setBottomHeight(bottom * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setTopHeight(top * resolutionHelper.getPositionMultiplier()); }
private void addPaddings(NinePatchDrawable ninePatchDrawable, float left, float right, float bottom, float top) { ninePatchDrawable.setLeftWidth(left * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setRightWidth(right * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setBottomHeight(bottom * resolutionHelper.getPositionMultiplier()); ninePatchDrawable.setTopHeight(top * resolutionHelper.getPositionMultiplier()); } }
/** Sets this drawable's ninepatch and set the min width, min height, top height, right width, bottom height, and left width to * the patch's padding. */ public void setPatch (NinePatch patch) { this.patch = patch; setMinWidth(patch.getTotalWidth()); setMinHeight(patch.getTotalHeight()); setTopHeight(patch.getPadTop()); setRightWidth(patch.getPadRight()); setBottomHeight(patch.getPadBottom()); setLeftWidth(patch.getPadLeft()); }