Android - Layouts

Objective #1: Understand the basics of a layout

public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView.(R.layout.main_layout);
}

<NameOfLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">

               
Objective #2: Understand how to create a FrameLayout

Objective #3: Learn the basics of a TableLayout

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:stretchColumns="1">
                  <TableRow>

Objective #4: Learn how to successfully use a LinearLayout

 <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">


Objective #5: Understand the consequences of an AbsoluteLayout

Objective #6: Successfully use a RelativeLayout

android:layout_below="@id/object"

Objective #7: Understand some of the attributes