Toast.makeText(MainActivity.this,"要显示的消息",Toast.LENGTH_SHORT).show(); 转载于:https://www.cnblogs.com/gachal/p/4300607.html