1
Reply

From JSON database use string for dimens?

Sivanagamahesh Gorijala

Sivanagamahesh Gorijala

Dec 21 2017 6:01 AM
235
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)