我正在制作一个应用程序,我想在其中更改字符串数组中 TextView 的文本。 为此,我需要制作 TextView 数组。该怎么做??谁能帮我解决这个问题
最佳答案
您可以像这样创建 TextView:
int textViewCount = 10;
TextView[] textViewArray = new TextView[textViewCount];
for(int i = 0; i < textViewCount; i++) {
textViewArray[i] = new TextView(this);
}
关于Android: TextView 数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7694824/