0
嗨我试图改变另一个XML的textview的内容。 Unfortunaly它不工作,我的代码看起来是这样的:Android更改textview的内容
View inflatedView = getLayoutInflater().inflate(R.layout.fragment_main, null);
TextView testView= (TextView) inflatedView.findViewById(R.id.section_label);
TextView test = (TextView) inflatedView.findViewById((R.id.testext));
testView.setText("adasd");
test.setText("adjhsajdH");
有谁知道一个解决方案。
这哪里是代码完全是在听众 –
其在if语句 –
你能后的完整代码,并有你,如果检查如果语句正常工作 –