I have two EditTexts
side by side in my application.
This is what they look like with 1 line of input
Currently when I type multiple lines of input in one EditText
grows but the other stays the same height - as seen here
I want the EditTexts
to match in height. When one grows the other matches it's height - as seen here
Not sure how to achieve this effect. I don't want to fill in the other EditText
with new lines. I want the actual View
to grow.
This is my current layout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="10dp"
android:weightSum="6"
android:orientation="horizontal">
<EditText
android:id="@+id/left"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:inputType="textMultiLine"
android:gravity="top|start"/>
<EditText
android:id="@+id/right"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="3"
android:inputType="textMultiLine"
android:gravity="top|start"/>
</LinearLayout>