the main.xml code :
<?
xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/enterLayout"
android:visibility="visible" >
<Button
android:text
="CREATE TABLE"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:id
="@+id/create"
android:textStyle
="bold"
></
Button>
<
Button android:text="SHOW"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:id
="@+id/show"
android:textStyle
="bold"
android:layout_below
="@+id/create"
></
Button>
</
RelativeLayout>
<
RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/outputLayout"
android:visibility="gone"
>
<
Button
android:text
="ADD OBJECT"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:id
="@+id/addobj"
android:textStyle
="bold"></Button>
<Button
android:text
="DELETE OBJECT"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:textStyle
="bold"
android:id
="@+id/delete"
android:layout_below
="@+id/add"></Button>
<Button
android:text
="EDIT OBJECT"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:id
="@+id/edit"
android:textStyle
="bold"
android:layout_below
="@+id/delete"></Button>
</
RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/addLayout"
android:visibility="gone" >
<
TableLayout
android:id="@+id/table"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:stretchColumns="*"
android:background="#ff0000">
<TableRow
android:layout_margin="1dp">
<TextView
android:text="Name"
android:background="#000000"
android:layout_margin="1dp"
android:textSize="20sp"/>
<EditText
android:id="@+id/entry1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
/>
</
TableRow>
<
TableRow
android:layout_margin="1dp">
<TextView
android:text="FN"
android:background="#000000"
android:layout_margin="1dp"
android:textSize="20sp"/>
<EditText
android:id="@+id/entry2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
/>
</TableRow>
<
TableRow
android:layout_margin="1dp">
<TextView
android:text="Kurs"
android:background="#000000"
android:layout_margin="1dp"
android:textSize="20sp"/>
<EditText
android:id="@+id/entry3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background" />
</TableRow>
<
TableRow
android:layout_margin="1dp">
<TextView
android:text="Spezialnost"
android:background="#000000"
android:layout_margin="1dp"
android:textSize="20sp"/>
<EditText
android:id="@+id/entry4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"/>
</TableRow>
</TableLayout>
<Button
android:layout_below="@id/table"
android:id="@+id/add"
android:text="OK"
android:layout_width="200dip"
android:layout_height="80dip"
android:textStyle="bold"
android:layout_marginLeft="240dip">
</Button>
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/deleteLayout"
android:visibility="gone"
>
<TextView
android:text="Enter Fakultenet nomer:"
android:background="#000000"
android:layout_margin="1dp"
android:textSize="20sp"
android:id="@+id/text"/>
<EditText
android:id="@+id/fntext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:drawable/editbox_background"
android:layout_below="@+id/text" />
<
Button
android:text
="delobj"
android:layout_width
="fill_parent"
android:layout_height
="wrap_content"
android:id
="@+id/delobj"
android:textStyle
="bold"
android:layout_below
="@+id/fntext"></Button>
</
RelativeLayout>
</
RelativeLayout>