Reputation: 824
How to get drawable Id in Android Studio quickly. I know that I can use Resources class method:
public int getIdentifier (String name, String defType, String defPackage)
But is it possible to get drawable Id without coding if I only want to hardcode this id somewhere or put it to database?
Upvotes: 0
Views: 122
Reputation: 46
I don't recommend you think about saving the id to a database or hardcoding it. The ID may change after compilation.
Upvotes: 3