title: Android: Ensuring EditText boxes fit horizontally across screen?
body: <p>I am trying to allign <strong>3 EditText boxes</strong> across the screen horizontally in my activity so that the user is able to enter data.</p>
  
  <p>Currently the code that I am implementing doesnt allow the 3 boxes to fit on the screen. Only 1 box and half of the other are visible </p>
  
  <p>How can I adjust my current code so that all 3 Edittext boxes are <strong>visible</strong> to the user?</p>
  
  <p>Note: The button and textView at the bottom of the layout are also currently <strong>not</strong> visible, eventhough they should be under the 3 horizontally alligned Edittext boxes.</p>
  
  <p><strong>Current XML Layout:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/tvSearchDate"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text=" Enter Date to search..."
          android:textSize="15dp" /&gt;
  
      &lt;LinearLayout 
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal" &gt;
  
  
  
       &lt;EditText
          android:id="@+id/etEnterSpecificyear"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:hint="" &gt;
      &lt;/EditText&gt;
  
       &lt;TextView
          android:layout_width="3dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          /&gt;
  
      &lt;EditText
          android:id="@+id/etEnterSpecificMonth"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:hint="" &gt;
      &lt;/EditText&gt;
  
      &lt;TextView
          android:layout_width="3dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          /&gt;
  
       &lt;EditText
          android:id="@+id/etEnterSpecificDay"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:hint="" &gt;
      &lt;/EditText&gt;
  
       &lt;/LinearLayout&gt;
  
      &lt;Button
          android:id="@+id/btnSearchDate"
          android:layout_width="85dp"
          android:layout_height="50dp"
          android:layout_gravity="center"
          android:text="Submit" 
          /&gt;
  
      &lt;TextView
          android:id="@+id/tvSearchResultsDate"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:ellipsize="marquee"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:marqueeRepeatLimit="marquee_forever"
          android:maxLines="30"
          android:minLines="5"
          android:scrollbars="vertical"
          android:text=" Results..."
          android:textSize="15dp" /&gt;
  
  
  
  &lt;/LinearLayout&gt;
  </code></pre>