This is a simple question. I Have this toast that is vertically centered, which appears in the middle of the screen.
Toast toast = Toast.makeText(ctx,"My Toast", Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
I think you're misunderstanding the meaning of vertical positioning. It means along the y axis – not x. To center it horizontally, and have it at the bottom of the screen – try the following:
toast.setGravity(Gravity.CENTER_HORIZONTAL|Gravity.BOTTOM, 0, 0);