/** * Private method used to set a default style to the {@value #TAG} */ private void setStyle(Style style) { this.setAnimations(style.animations); this.setTypefaceStyle(style.typefaceStyle); this.setTextColor(style.textColor); this.setBackground(style.background); if (this.mType == Type.BUTTON) { this.setDividerColor(style.dividerColor); this.setButtonTextColor(style.buttonTextColor); } }
superActivityToast.setTypefaceStyle(referenceHolder.mTypefaceStyle); superActivityToast.setDuration(referenceHolder.mDuration); superActivityToast.setTextColor(referenceHolder.mTextColor); superActivityToast.setTextSizeFloat(referenceHolder.mTextSize); superActivityToast.setIndeterminate(referenceHolder.mIsIndeterminate);