Android Studio: Is it possible to call resources via variables?

前端 未结 0 1223
栀梦
栀梦 2021-02-18 23:26

I have 9 color resources in my colors.xml called colorRand01, colorRand02 .... colorRand09.

In my java code, I call

relativeLayout.setBackgroundResource(R.         


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