What is the structure of JAVA Eclipse's Android file?

Source: Internet
Author: User

The default res directory contains the layout and picture files required for the interface, and the image is divided into hdpi,ldpi,mdpi, which is for different devices (high/medium/low resolution images)

?

The bin directory is similar to the debug or release directory of VS, and when compiled by F11, the APK file is generated

?

SRC is the source code directory

?

Copy the picture to res folder, and then refresh the folder, you can find that logo.jpg has gone in, and then drag and drop a ImageView control on the interface, set the image as the logo, you can see the effect

?

You can see that the effect is consistent.

?

If it is not a picture resource, the sound resource, you must create a new folder in the Res directory, named Raw (can not be another name, or the resources will not be found later), after the refresh has been midi.mid this sound file. If you want to use it, R.raw.midi will find it. R is the global resource class name for Java, which automatically prompts raw to find the sound file.

?

Androidmanifest.xml files are used to set permissions, generally not used

?

?

What is the structure of JAVA Eclipse's Android file?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.