JohnPersano/Supertoasts — pull request #3 by samyboy89 (2013-07-02 16:12:08+00:00)
Title: Added padding - Both inside and outside

Added these functions:

setPadding(int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)
getPadding()
setOutsideVerticalPadding(float outsideVerticalPadding)
setOutsideHorizontalPadding(float outsideHorizontalPadding)
getOutsideHorizontalPadding()
getOutsideVerticalPadding()

and these lines of code:
params.verticalMargin = outsideVerticalPadding;
params.horizontalMargin = outsideHorizontalPadding;

toastView.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);

Example code:

mSuperToast.setGravity(Gravity.RIGHT);
mSuperToast.setPadding(10, 10, 10, 10);
mSuperToast.setOutsideVerticalPadding(0.2f);
mSuperToast.setOutsideHorizontalPadding(0.1f);

This will make the toast appear bottom right on a tablet for example