Configuring default settings via singleton

#16 · open · 0 comments

View on GitHub ↗

usernotnull

I love how this library replicates Toasty, but one thing it's lacking is the same configuration of each success, error, etc… In Toasty you can do this with: ``` Toasty.Config.getInstance() .setErrorColor(@ColorInt int errorColor) // optional .setInfoColor(@ColorInt int infoColor) // optional .setSuccessColor(@ColorInt int successColor) // optional .setWarningColor(@ColorInt int warningColor) // optional .setTextColor(@ColorInt int textColor) // optional .tintIcon(boolean tintIcon) // optional (apply textColor also to the icon) .setToastTypeface(@NonNull Typeface typeface) // optional .setTextSize(int sizeInSp) // optional .apply(); // required ``` Can it be done here?

Comments