I am trying to set the size of my image using getLayoutParams().height/width, but the problem is, all my numbers are store in values folder. I know I can just set getLayoutParams().height= 500; but I want to use the numbers in the values.xml instead. Is there any other way to do it? I tried getLayoutParams().height=R.integer.ImageWidth but didn’t work.
<integer name="ImageWidth">501</integer>
<integer name="ImageHeight">200</integer>
Ok, haven’t tried this myself, but this might work.