• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Reference for the 'Layout'

narke

Lurker
Hi,

I am first to this. Since I see a layout id can be passed to setContentView() method of Activity object, so I guess a layout is subclass of View. But the strange thing is that I did find the class reference for the Layout in the API reference section. Could someone please point me to the right location? And, also the class R.layout looks hard to understand to me.

Thanks in advance.
-narke
 
A Layout is a subclass of ViewGroup, which is a subclass of a View. Therefore a Layout is actually a View.

R.layout defines some standard layouts that you can use in your application. It is used with Lists and Spinners.
 
Thanks for the confirmation. Can you also please how do I find the Layout class reference in the API reference documentation on the Android development web?

Many thanks!
-narke
 
Back
Top Bottom