pligosv
pligosv

Reputation: 663

Show all drawable content in Android Studio

In my project I have got a lot of drawable content, and when I need to add new images to drawable I can put a same resource because I forget I have it already.

It is not about preview on XML file, this works well.

Any features in Android Studio to preview all my drawable contents without double-click on every resource? It can save lots of time.

I didn't find anything at Preferences, maybe some plugin or did I miss something?

enter image description here

Upvotes: 20

Views: 8481

Answers (6)

Levon Petrosyan
Levon Petrosyan

Reputation: 9625

Starting from Android Studio 3.4, you can use Resource Manager, a new tool window for importing, creating, managing, and applying resources to your app's layouts. You can open the tool window by selecting

View > Tool Windows > Resource Manager from the menu bar.

enter image description here

Upvotes: 25

Izzy Stannett
Izzy Stannett

Reputation: 252

Note/ when using 'Show Image Thumbnails' (as @Akhil Tawari suggested) in "Android" view as opposed to "Project" view, for image thumbnails of all drawables right click the "res" folder and not the drawables folder/s.

Upvotes: 0

Akhil Tiwari
Akhil Tiwari

Reputation: 264

Right click on drawable folder and click 'Show Image Thumbnails'.

enter image description here

Upvotes: 8

Kirill Karmazin
Kirill Karmazin

Reputation: 6736

Consider using Android Drawable Preview plugin. It shows content of the images instead of default icons when you expand drawables.

It even renders vector xml drawables!

Like this:

enter image description here

To install it: go to File > Settings > Plugins > search for Android Drawable Preview and click to find in repos. Install it and restart Android Studio.

Cheers!

Upvotes: 3

Iulian Popescu
Iulian Popescu

Reputation: 2643

I'm using Android Drawable Viewer that can be installed from Plugins in AndroidStudio. After installing and restarting Android Studio, you will find a tab on the right side of the editor where you can find the viewer.

enter image description here

Click on that tab and you'll be asked to select the root folder for drawables. Do it, and after, everything will look like this: enter image description here

Upvotes: 4

JordanH
JordanH

Reputation: 190

You can right click on the folder and click open in files. This will allow you to open up the project folder in which you can more easily add and delete images and other files.

Upvotes: -1

Related Questions