0

I have an EditText field that I would like to have wrap text.

enter image description here

As you can see from the example above the text "Some place , 200 Dayton Ave Suite 200, Redbank, CA 37404 " gets cut off. It isn't behind the button. The EditText field stops where the map button starts. I can scroll to the right and see all the text. I would just like it to wrap two or 3 lines.

Here is my layout file:

<LinearLayout
        android:id="@+id/layoutDestination"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <ProgressBar
            android:id="@+id/pbEditDestination"
            style="?android:attr/progressBarStyleLarge"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="gone"/>

        <EditText
            android:id="@+id/editDestination"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="5"
            android:background="@color/COLOR_LIGHT_GREY"
            android:ems="10"
            android:gravity="top|left"
            android:inputType="textMultiLine"
            android:lines="4"
            android:maxLines="8"
            android:minLines="4"
            android:nextFocusLeft="@id/editDestination"
            android:nextFocusUp="@id/editDestination"
            android:scrollHorizontally="false"
            android:scrollbars="vertical"/>


        <Button
            android:id="@+id/btnMapDestination"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="@color/COLOR_BLUE"
            android:text="MAP"
            android:textColor="@color/COLOR_WHITE"
            android:textStyle="bold"/>
    </LinearLayout>
user-44651
  • 3,924
  • 6
  • 41
  • 87

0 Answers0