为什么是
TextView test = (TextView) findViewById(R.id.testTextView);
test.getText();
Run Code Online (Sandbox Code Playgroud)
生成空指针异常?id是正确的,testTextView在我的XML布局文件中正确声明.
| 归档时间: |
|
| 查看次数: |
16084 次 |
| 最近记录: |