Toast使用
Toast.makeText(MainActivity.this, "button 1 is pressed!", Toast.LENGTH_SHORT).show();
或者
Toast t = Toast.makeText(this, "程序即将退出", Toast.LENGTH_SHORT);
t.show();
Toast使用
Toast.makeText(MainActivity.this, "button 1 is pressed!", Toast.LENGTH_SHORT).show();
或者
Toast t = Toast.makeText(this, "程序即将退出", Toast.LENGTH_SHORT);
t.show();