• 2022-06-06
    在Java代码中,找到id为btn1的Button控件对象,赋值给引用btn,并且设置该控件的点击监听器,当点击时,将textView 控件的内容清空。补全代码:...TextView textView = findViewById(R.id.tv1);______ btn = findViewById(R.______ .btn1);btn.______ (new View.OnClickListener() { @Override public void onClick(View view) { ______ .setText(""); } });