android:orientation - Set the Orientation on a Layout to Vertical

How to Set the Orientation on a Layout to Vertical

If the layout should be a row, use an orientation of vertical.
The view will be in a vertical fashion (like portrait format in printing).
Note: This will NOT work in RelativeLayout.

1. If you don't already have an Android project created, create an Android project.

2. Open the main.xml file.

3. Add the highlighted line below.

<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
>

4. Compile and run!