Toast Error , xOffsets-yOffsets problem Toast Problem


Hello Friends I hope all will be well
Dear brothers i have been facing an error of offset in simple gravity toast
enter image description here


use setGravity method

Toast toast =  Toast.makeText(this, "Hello", Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);;

Answered By – SAVAN JADAV

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published