Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

diferrence between R & android.R class [duplicate]

Tags:

android

Can anyone explain from this question; whats the difference of 'R' between

R.id.myListView

&

android.R.layout.simple_list_item_1

Isn't these 2 'R' the same class?

* Some people has down voted this question. I need to ask them the reason. If you answered the duplicate question & then down voted me it would have made sense. Neither answered my question nor the duplicate one!!! I mean whats the point of down voting some one without even helping? isn't this site supposed to be for help for programmers!! Weird!! **

like image 410
Shaon Hasan Avatar asked Jun 08 '13 06:06

Shaon Hasan


People also ask

What is the difference between () and [] in R?

Parentheses are for functions, brackets are for indicating the position of items in a vector or matrix. (Here, items with numbers like x1 are user-supplied variables.)

What do \r do?

R can be used to do a variety of tasks — store data, analyze data, and create statistical models. Since data analysis and data mining are processes that require a variety of applications and ways to communicate, R is a perfect language to learn.

Why \r is used in Python?

Python's statistical packages are less powerful. R's statistical packages are highly powerful. Python is mainly used when the data analysis needs to be integrated with web applications. R is generally used when the data analysis task requires standalone computation(analysis) and processing.

Is there a difference between R and RStudio?

R the application is installed on your computer and uses your personal computer resources to process R programming language. RStudio integrates with R as an IDE (Integrated Development Environment) to provide further functionality. RStudio combines a source code editor, build automation tools and a debugger.


1 Answers

R.layout.*, R.id.*,in fact any R.something without the android.- part in front of it refers to some resource in your resources folders, e.g. drawables, strings, layouts, ids of widgets etc. android.R.* refers to standard android items that come shipped with your SDK

like image 144
thomi Avatar answered Oct 19 '22 04:10

thomi