在添加
TextView myTextView=(TextView)this.findViewById(R.id.myTextView);
Button myButton=(Button)this.findViewById(R.id.myButton);
时,发生了"textview cannot be resolved to a type“错误,后在开头加入
import android.widget.Button;
import android.widget.TextView;
即解决
shift+ctrl+o
转载请注明原文地址: https://ibbs.8miu.com/read-2229405.html