Setting up Android XML drawable preview in Cursor

Hi everyone

im really a beginner on cursor and coding, i used android studio and it was easy to see the xml file of my drawable image with preview+code

im searching desesperately on cursor a was to display those files…but impossible…

any idea? how can i do ?

I don’t really know, but I would ask Opus 4.6 for instructions and if it says no, then ask it to create plugin for it.

hum…i never created plugin..but ok why not..but ddont want to spend time for that
wanna know if someone already use it..
but how everyone is doing to view those files then ?

The task sounds like small simple thing, should be no issue for Opus 4.6 to create plugin on almost one go. Give it try, if you have credits.

sure, but i would prefer to use something that people already use…i dont want to code, debug etc..
i cant understand what people use to preview those file, thats all, i want to understand and learn :blush:

I get it. I have found many times Cursor lacks common project type support, and it doesn’t seem to be much of priority for them. Maybe open the android studio and do things there. That is what I had to do with MAUI.

Anyway, I did ask opus how difficult such extension would be. It did bring out that such editor needs to support not only raster images, but also SVG which makes it more difficult.

So if you would do it, I advice using Cursor’s cloud agent, which can do extremely complex tasks by dividing them to smaller ones rather than in Cursor IDE.

thanks for tryng to help me :blush: i appreciate
as i told u, i just wanna to know how to use that feature, that is for me very very basics…but apparently nobody is using that :thinking:

so i will contiue to open android studio…and spent much more ram with 2 app opened….really stupid things

Hey, thanks for the request.

Cursor is built on VS Code, so it doesn’t have the native Android XML drawable preview that Android Studio has. That split preview and code view is tightly tied to Android Studio’s rendering system, and there’s nothing similar in the VS Code world.

But there’s a better option than keeping two apps open. Cursor has a JetBrains integration that runs right inside Android Studio. You get Cursor’s AI agent, including file edits, terminal commands, codebase indexing, and model selection, without leaving Android Studio.

Setup:

  • Android Studio 2025.1+ with the AI Assistant plugin enabled
  • Open the AI Chat panel (right sidebar or View > Tool Windows > AI Chat)
  • In the agent provider list, pick “Add Agent from Registry”, then search for “Cursor”
  • Sign in with your Cursor Pro account

This way you keep the native drawable preview and get Cursor’s AI features in one place. No extra RAM from running two apps.

Let me know if you hit any issues setting it up.

maybe i forgot to tell you im on arm64 proc, i can use onky the ml-llm-253.30387.90.zip version…
my android studio version is Build #AI-253.30387.90.2532.14935130, built on February 25, 2026
is it compatible ? or i need the 261 version ?
@deanrie

Android Studio Build #AI-253 is on the 2025.1 (Narwhal) branch, so it’s compatible. The minimum requirement is 2025.1+, and you already meet that.

arm64 isn’t a problem either. The AI Assistant plugin and ACP work on any architecture where the IDE itself runs.

Try installing it step by step using the instructions from my previous post. If the Cursor agents don’t show up in the list, or if you get connection errors, let me know and we’ll figure it out.

since 30 min im trying..i can have this ai chat but i dont have this “add agent from registry”
using ai to find solution but i cant find^^

Ah, sorry for the wrong instructions in my earlier posts. Android Studio is built on JetBrains, so I assumed ACP integration would work the same way as in IntelliJ IDEA. Turns out it doesn’t.

Android Studio uses Google’s own AI plugin (Gemini) instead of the standard JetBrains AI Assistant, and the ACP registry just isn’t there. Even manually installing JetBrains AI Assistant doesn’t help.

Google is aware of the request. More details are in this Reddit thread: Reddit - The heart of the internet

so means :
i cant use cursor to see xml drawable ?
i cant use android studio to use cursor plan

so i need to use both program for now ? im correct?

Yes, unfortunately that’s exactly where things are right now. To sum it up:

  • Cursor (based on VS Code) doesn’t have built-in, native rendering for XML drawables like Android Studio does
  • Android Studio doesn’t support ACP/Cursor integration

So for now, the most common workflow is to keep both apps open side by side. That said, I found a working way to preview drawables right in Cursor:

Install the Android SVG Previewer extension. It’s made specifically for Android Vector Drawable XML files.

Install steps:

  1. Go to GitHub Releases and download the .vsix file
  2. In Cursor, open the Extensions panel with Cmd/Ctrl + Shift + X
  3. Click the ... menu at the top, then select Install from VSIX…
  4. Pick the .vsix file you downloaded

The extension shows a live preview with zoom controls. It’s not as feature-rich as Android Studio, but it’s good enough for quick checks without switching apps.

If Google adds ACP registry support to Android Studio in the future, full integration with Cursor should work the same way it does today in IntelliJ IDEA.

Let me know if this helped and if it worked for you.

are you really using cursor or android studio ? or maybe i dont have the same version of cursor…
but on extension tab, there is no “…” and no way to install .vsix
i have seen this method so many time on internet but its for android studio…or explain me how to..
i tried to use a powershell method to install also but its not working and i cant see any drawable..
thanks for guiding me more

The ... menu should be in the top-right corner of the Extensions panel, but it can be easy to miss depending on the layout. There’s a more reliable way though:

  • Open the Command Palette with Cmd + Shift + P (or Ctrl + Shift + P on Windows/Linux)
  • Type Extensions: Install from VSIX...
  • Select the command and choose the .vsix file you downloaded

Let me know if either of these works.

im on windows..i dont have that at all
no “…” and no vsix

Got it, thanks. I see you don’t have that.

Instead, try using the Command Palette:

  1. Press Ctrl + Shift + P on your keyboard
  2. Type: Extensions: Install from VSIX

This should work even if you can’t see the ... menu. The Command Palette is always available.

Did you already try this from my previous post? If the command doesn’t show up when you type it, please tell me your exact Cursor version (Help > About).

yep i could find, its installed now
and finally…. it’s working :wink:
great thanks for ur help !
you should ask cursor dev team to implement this function lol :blush:

thanks !

1 Like