How to Add Images in Android Studio

Table of contents:

How to Add Images in Android Studio
How to Add Images in Android Studio

Video: How to Add Images in Android Studio

Video: How to Add Images in Android Studio
Video: Fix, Clean And Repair Windows 10/8/7 Registry [Tutorial] 2024, May
Anonim

This wikiHow teaches you the basic steps for adding images to the Android Studio program on your PC. Android Studio is Google's official program used to develop applications for Android devices. While it's not strictly necessary to develop Android apps, it does have a variety of tools to make the app development process easier.

Step

Add Images in Android Studio Step 1
Add Images in Android Studio Step 1

Step 1. Run Android Studio

A pop-up window with various options will be displayed.

  • You can find the Android Studio icon on the desktop or by clicking the “Start” menu button

    Windowsstart
    Windowsstart

    and type in the keyword Android Studio ” on the search bar. This app icon looks like a compass above a green circle.

  • If you don't have Android Studio installed, you can download it for free from https://developer.android.com/studio#downloads and select Download Android Studio. You can also select Download Options for other options, such as Mac or Linux versions. Agree to the terms of service to download the app. Follow the instructions displayed on the screen to complete the initial setup of the program.
Add Images in Android Studio Step 2
Add Images in Android Studio Step 2

Step 2. Select Start a new Android Studio project

  • Click Open an existing Android Studio project to edit an existing/saved project.
  • If you want to start a new project:

    • Select the device type first by clicking one of the tabs at the top of the pop-up window, then specify the type of application activity.
    • Click " Next " to continue.
    • Name the project, select a programming language, and specify the minimum required API level.
Add Images in Android Studio Step 3
Add Images in Android Studio Step 3

Step 3. Click the project name at the far left of the window

Add Images in Android Studio Step 4
Add Images in Android Studio Step 4

Step 4. Select arrow

Android7dropdown
Android7dropdown

next to the project name and click Android.

Add Images in Android Studio Step 5
Add Images in Android Studio Step 5

Step 5. Expand the drop-down menu arrow icon

Android7dropdown
Android7dropdown

beside Apps.

Add Images in Android Studio Step 6
Add Images in Android Studio Step 6

Step 6. Expand the drop-down menu arrow icon

Android7dropdown
Android7dropdown

beside res.

Add Images in Android Studio Step 7
Add Images in Android Studio Step 7

Step 7. Click the drawables folder

The folder you need to select is the “ drawable " in folders " res ”.

Add Images in Android Studio Step 8
Add Images in Android Studio Step 8

Step 8. Drag the image files to the drawables folder in Android Studio

Pop-up menus " Move " will be shown.

  • You can also copy and paste the image files into the “ drawable ”, instead of dragging and dropping files.
  • To search for image files, click the Explorer icon

    Windowswindows7_explorer
    Windowswindows7_explorer

    on the taskbar or “Start” menu icon

    Windowsstart
    Windowsstart

    to access Explorer. Use an Explorer window to locate the folder that contains the image you want.

Add Images in Android Studio Step 9
Add Images in Android Studio Step 9

Step 9. Select OK on the pop-up window

You can double-check that the directory shown is correct by looking for the option “ drawable ” at the end of the list or listing.

Add Images in Android Studio Step 10
Add Images in Android Studio Step 10

Step 10. Double click the image name below the drawable

Now you have successfully added an image to your project in Android Studio.

Recommended: