Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy resources between projects?

There is a drawable resource called notif.png (containing 12 png files) that's needed in an other project. CTRL+C, CTRL+V doesn't work.

like image 927
Tamás Bolvári Avatar asked Sep 25 '16 15:09

Tamás Bolvári


People also ask

How do you share resources between projects?

Open your project. Choose Resource > Resource Pool > Share Resources. Click Use own resources, and then click OK. Save both project files.

How do I copy a project to another project?

Select the project name to open project details. Above the project name, select the three dots (...) and then choose Copy project.


2 Answers

Switch to "Project" view in the file tree instead of "Android" view in both projects. Then you should be able to copy and paste, and it will convert packages as well.

Screenshot of project view:

enter image description here

like image 62
timclancy Avatar answered Oct 13 '22 04:10

timclancy


  1. Locate src folder for the project on yout machine: your-project-name\app\src\main\res.

  2. You can find notif.png in subfolders: drawable, drawable hdpi, etc.

  3. Open other project's res folder & copy those files to correct subfolders.

like image 2
APP Bird Avatar answered Oct 13 '22 04:10

APP Bird