title: Android Word-Wrap EditText text
body: <p>I have been trying to get my EditText box to word wrap, but can't seem to do it.</p>
  
  <p>I have dealt with much more complicated issues while developing Android applications, and this seems like it should be a straightforward process.</p>
  
  <p>However, the issue remains, and I have a large text box that is only allowing me to enter text on one line, continuing straight across, scrolling horizontally as I enter text.</p>
  
  <p>Here is the XML code for the EditText object from my layout file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      android:id="@+id/myWidget48"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      xmlns:android="http://schemas.android.com/apk/res/android"
      &gt;
   &lt;ScrollView
      android:id="@+id/myScrollView"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      &gt;
      &lt;LinearLayout
          android:id="@+id/widget37"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
      &gt;
  
  &lt;EditText
          android:id="@+id/txtNotes"
          android:layout_width="300px"
          android:layout_height="120px"
          android:scrollbars="vertical"
          android:textSize="18sp"
          android:gravity="left"
          android:layout_marginTop="10dip"
          android:inputType="textCapSentences"
          &gt;
      &lt;/EditText&gt;
  &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>