It would be nice to create a custom toast like this,
TextView textview = new TextView(context); textview.setText(text); textview.setBackgroundColor(Color.GRAY); textview.setTextColor(Color.BLUE); textview.setPadding(10,10,10,10); Toast toast = new Toast(context); toast.setView(textview); toast.setDuration(Toast.LENGTH_LONG); toast.setGravity(Gravity.BOTTOM, 0, 0); toast.show();
This way you can place your Toast wherever you want using Gravity
source share