From JSON database use string for dimens?

Dec 21 2017 6:01 AM
I am utilizing a JSON database.
 
In it, I like to have strings.
 
In the event that I store something like "singleImage_marginTop" as a string in the JSON document, I can get the string, yet how might I change over it into something that I could use here?
 
image.setPadding(R.dimen.(the_string_to_be_used_here));

Answers (1)