Toast居中

2020-07-20  本文已影响0人  zhongjh

Toast toast = Toast.makeText(this, "居中位置的Toast", Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();

上一篇下一篇

猜你喜欢

热点阅读