Ivan
Ivan

Reputation: 361

Android - Resources - How to identify drawable by uri?

I have looking on a few decompiled app and don't understand how to locate image in resources by uri. For example, I have uri:

android:icon="@drawable/icon"

So what I need to do? Open res folder and look in each folder beginning from drawable to find icon.png? Thanks

Upvotes: 1

Views: 208

Answers (2)

Viral Patel
Viral Patel

Reputation: 33408

Yes, you look in the res/drawable folder with a file name matching exactly the text following @drawable/. In this case icon.

The extension could be any image format - jpg, png, bmp etc.

Upvotes: 1

Saurabh Vardani
Saurabh Vardani

Reputation: 1861

You have to just press ctrl button along with just do left click from the mouse on the android:icon="@drawable/icon" and then android studio will identify it for you. or manually you can follow the steps suggested by @AndroidMechanic

Upvotes: 0

Related Questions