M
M
MdaUZH2016-08-22 14:26:09
Android
MdaUZH, 2016-08-22 14:26:09

How to pass a link to an image from the database?

Hello. I ran into such a problem, I need to insert an image into an article...
For example, the id of the article is 1, and there is 1.png in the drawable
How to pass a link to this image to the ImageView?
Or any other resource?
for example, pass a resource to the parser, instead of id, pass a string, for example:
there is a string "moto", and there is a resource xml file and a link to it R.xml.moto, how to pass R.xml.+"moto" (instead of quotes String variable)
is this possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidnum95, 2016-08-22
@MdaUZH

hmm , tyk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question