<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/main_layout"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:orientation="vertical" >

<RelativeLayout 
   android:background="#ffeeeeee"
   android:layout_width="match_parent"
   android:layout_height="match_parent" 
   android:orientation="vertical" >

   <ImageView
      android:id="@+id/imageView1"
      android:layout_width="200dp"
      android:layout_height="200dp"
      android:layout_centerInParent="true"
      android:src="@drawable/ic_mic" />

   <ProgressBar
      android:id="@+id/progressBar1" 
      style="@android:attr/progressBarStyleHorizontal"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/toggleButton1"
      android:layout_marginTop="25dp"
      android:paddingLeft="10dp"
      android:paddingRight="10dp" />

   <TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/progressBar1"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="25dp" />

   <ToggleButton
      android:id="@+id/toggleButton1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="75dp"
      android:text="ToggleButton" />

</RelativeLayout>

</LinearLayout>

