android - Displaying Toast message from user defined variable -


how pass user variable parameter in toast object in android studio display value of variable?

something this;

toast.maketext(uservariable,r.id.textfield,toast.length_short).show();

thanks

use getviewbyid() text input view, cast textinputview , once you've done that, can call gettext().tostring() , pass toast.


Comments