GUI-preview and buttons together
<p>I need to have a video preview(on a Surface) and a TextView and a few buttons(at the bottom of the screen)</p>

<p>Currently, my preview's height is large but it's narrow and at the far left at the screen and the TextView is not visible.</p>

<p>The buttons are placed at the bottom as I require.</p>

<p>How do I make the preview's width large as well and the TextView visible?</p>

<p>Here is my layout:</p>

<pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
&gt;
&lt;TextView  
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Android Recorder"
/&gt;
&lt;SurfaceView android:id="@+id/camsurface"       
 android:layout_width="fill_parent" 
 android:layout_height="0px"
 android:layout_weight="1" /&gt;

 &lt;TextView  
 android:id="@+id/recording_time"
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text=" 00:00"
/&gt;
 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
&gt;

&lt;Button android:id="@+id/btn_settings" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Settings"/&gt;

 &lt;Button android:id="@+id/btn_record" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Record" /&gt; 
</code></pre>

<p>    </p>

<p></p>
