title: Android layout issue:unaccounted line displayed
body: <p>I am trying to make a linear layout with one EditText,two TextView, and a GridView as its child elements.</p>
  
  <p>Following is my code:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity"&gt;
  
  &lt;EditText android:id="@+id/input"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="right"
      android:textSize="30sp"
      android:layout_marginTop="20dp"
      android:layout_marginLeft="5dp"/&gt;
  
  
  &lt;TextView android:id="@+id/output"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="right"
      android:textSize="25sp"
      android:layout_marginTop="20dp"
      android:layout_marginLeft="5dp"/&gt;
  
  &lt;TextView android:id="@+id/output_words"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="right"
      android:textSize="25sp"
      android:layout_marginTop="20dp"
      android:layout_marginLeft="5dp"/&gt;
  
  
  &lt;GridView
      android:id="@+id/gridview"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:horizontalSpacing="5dp"
      android:verticalSpacing="5dp"
      android:numColumns="5"
      android:stretchMode="columnWidth"
      android:gravity="center"
      android:columnWidth="50dp"
      android:layout_marginTop="20dp"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>But when I run the application in a real device,I can also see a line.I don't understand what is causing the line to appear.</p>
  
  <p><a href="https://i.stack.imgur.com/iru9k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iru9k.png" alt="enter image description here"></a></p>
  
  <p>Any input would be of great help.</p>