How do I pass a String to the findViewById using a variable (R.id.MyVariable)?

后端 未结 0 1895
臣服心动
臣服心动 2020-12-18 15:03
tapCounterRight = 1;

String ID = "rightElement_" + String.valueOf(tapCounterRight); textView = (TextView) findViewById(R.id.rightElement_1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题