0

R and R.drawable are two different classes within the Android framework, both of which inherit from Object. They seem very similar to me; what's different about them?

1
  • This question is discussed on meta Commented Oct 2, 2015 at 7:23

1 Answer 1

3

Android.R is a set of built in constants provided by the android SDK. The R class represents the resources in the Android.R xml file.

The R.drawable class contains resources which can be drawn on to the screen. E.g. Bitmaps, NinePatchDrawble etc...

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.