Open In App

How to Add Resource File in Existing Android Project in Android Studio?

Improve
Improve
Like Article
Like
Save
Share
Report

Android resource file is a file that stores resources needed for the UI part of an android application. Like: Layout files, drawable files, etc. In the android application, it is very often that we need another resource file for another purpose in the existing application. There are many types of resource files Layout files, Drawables, Menus are some of them. In this article, we are going to learn how to these resources file when needed. 

Step By Step Implementation

Step 1: Go to the Res folder of the application

Navigate to the res folder in the app and left-click on it, like the below-given image

 

Step 2: Click on the new option

Follow the image below

 

Step 3: Select the android resources file 

Follow the image below

 

Step 4: Write the file name 

Follow the image below

 

Step 5: Choose the type of the resource

From the drop-down menu select the type of the resource and click ok, follow the image below.

 

Now you have successfully added an android resources file to the existing project.


Last Updated : 31 Aug, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads