The setOrientation method of LinearLayout will not accept the argument VERTICAL, contrary to the following from the android reference
public void setOrientation (int orientation) Since: API Level 1 Should the layout be a column or a row. Related XML Attributes * android:orientation Parameters orientation Pass HORIZONTAL or VERTICAL. Default value is HORIZONTAL.
I have tried, unsuccessfully, using import android.widget.LinearLayout.*
By hacking around I was able to find that 1 is vertical, which works fine, but this is a bug that should be fixed.