(findViewById(R.id.button2)).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(MainActivity.this,"点击了按钮2",Toast.LENGTH_LONG).show();
}
});
Android简单的提醒Toast
最新推荐文章于 2021-10-27 18:50:44 发布