As far as I've understood, an Activity contains a set of Views, where the "current" view is set with setContentView. This View can then contain other views itself. Is this correct? What I don't understand is, what's the difference between a layout, for instance LinearLayout, and a View? Or is a LinearLayout just a subclass of View? Secondly, I can't really get my head around this XML thing. Suppose I have a XML file like this
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" android:orientation="vertical">
- </LinearLayout>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
When this is "compiled" what is the result. Does the XML-file represents a View (with views in it)? In that case, what kind of View?





