我想把 aTextView放入 aCustomView中。我已经使用findViewById. 我TextView直接插入到xml中。现在我想在进行触摸事件时添加文本。里面ViewActivity我放了这个。
public void getTextv(TextView tv)
{
tv1=tv;
}
int hit;
public void setText()
{
if(touch==true)
tv1.setText(hit);
}
在我放的主要里面ViewActivity.getTexttv(tv);
然后,每当添加文本时,我都会收到错误消息。