toast.gravity(Gravity.CENTER/BOTTOM/TOP,xlocation,ylocation)
the first parameter is the basic location of our dialog box,and then the x coordinate and y coordinate of the dialog box is to amend its location.
the value of x&y actually can be changed from negative to positive.
zero means that the dialog box is in the center,and if the value is positive,it can show us that the box is on the right side(for y,if x,up),and the negative is another side.
but if the basic location is BOTTOM or TOP and the correction value make the box out of bounds(if add the value),the result is that the dialog box is in the edge of the screen.
the first parameter is the basic location of our dialog box,and then the x coordinate and y coordinate of the dialog box is to amend its location.
the value of x&y actually can be changed from negative to positive.
zero means that the dialog box is in the center,and if the value is positive,it can show us that the box is on the right side(for y,if x,up),and the negative is another side.
but if the basic location is BOTTOM or TOP and the correction value make the box out of bounds(if add the value),the result is that the dialog box is in the edge of the screen.