0

so I have used a function to create drawable from imagepath, and I get: android.graphics.drawable.bitmapdrawable@numbers

How do I use it? can it be used as ID? for example with normal drawable I would write like: findViewById(R.drawable.name); can I use same here?

findViewById(android.graphics.drawable.bitmapdrawable@numbers);

Thank you.

Vlad Mir
  • 5
  • 4

1 Answers1

0

you cannot use findViewById(R.drawable.name), you have to use R.id.someId

pskink
  • 23,874
  • 6
  • 66
  • 77