Rock Rach
Rock Rach

Reputation: 39

Why android programming choose symbol R

I am beginning to learn how to make an android app. And I am very curious about one thing of android programming. Why symbol R is chosen? why not other symbol? can we change it to other one we want? is there any special about symbol R?

Cheer :)

Upvotes: 0

Views: 110

Answers (2)

poss
poss

Reputation: 1789

It's a shortcut for Resources.

developer.android.com

Upvotes: -1

Jon
Jon

Reputation: 3502

I believe that R stands for "Resources". They shortened it to "R" so that you don't have to type all those characters every single time.

It is a handle to the various resources such as images, text, ect in your application. It allows you to easily utilize these resources from within the application.

I don't know of any way to change it and I would advise against trying. This is a standard Android pattern, so you should just learn to use it. Fighting it is only going to cause you problems in the long run.

All of the Android guides out there will explain R. Read the documentation and you'll see that it is really pretty simple.

This link explains how it works: http://developer.android.com/guide/topics/resources/providing-resources.html

Upvotes: 3

Related Questions