相关疑难解决方法(0)

Android findViewbyId带有变体字符串

TextView textView1= (TextView) dialog.findViewById(R.id.textView1);
Run Code Online (Sandbox Code Playgroud)

我想创建这样的东西:

for (int i=0; i<100; i++) {
   TextView textView= (TextView) dialog.findViewById(R.id.textView+i);
}
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

莱斯利

android

10
推荐指数
1
解决办法
7274
查看次数

标签 统计

android ×1