What is the purpose of each component of an Android project?

Asked

Viewed 494 times

0

I’m starting now in Android development, and I’m having doubts about the directories of Android Studio, I need to understand what serves each of them for the project.
I confess that I have never programmed in a language with so many directories(app, manifests, res, drawable, layout, values, minimap and etc), files(All XML) and classes(Class R for example).
I need to know what each file, class and directory is for, and Androidmanifest.xml? These were just examples, if possible help me with all the components of a project, I’m sure this is the question of many.

1 answer

3

app = The whole context of your application.

manifests = Your app’s core guidelines (here you’ll make global settings and the like).

res = Folder that contains layout, drawable and much more.

drawable = Normally the images should be placed inside, each image inside its folder, which is defined by the size of the image (1 image should have several sizes to fit on multiple screens).

layout = The body of your App, the XML of config of the screens are there.

values = Usually you have the folders, @Strings, @Colors, @Dimens and another one I don’t remember.

Strings = Must contain all the texts that will be visible in your A.pp (where the translation applies).

Colors = The name itself says it all, there you work the colors of everything.

Dimens = Where you can set default dimensions and apply in several places (applies to other folders as well).

But this is not the best way to know a development environment, not to mention that there is still A lot thing to be seen.

  • Thanks my friend! Very cool!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.