I have a sentence, user has to put his data into sentence (one word).
I tried to use for it LinearLayout with TextView (beginning of the sentence), EditText with ems=5(here user should put his data), then TextView(end of the sentence) (See the code below). But in this realization it doesn't look appropriate, when we use long sentence and it moves part of it to the next line.
On emulator it looks like:
|Blablabla ________ blablabla| | blabla. | It puts the end of the sentence under the second TextView. But I need that the second line starts from the beginning of new line, like:
|Blablabla ________ blablabla| |blabla. | I tried to use the solution from Git-Hub: flow-text but got that kind of result: 
How can I solve this problem? Thanks for watching this post!
XML:
<LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="4dp" android:layout_marginTop="4dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="15dp" android:paddingRight="5dp" android:textSize="20sp" android:text="@string/firstPart_1" android:id="@+id/textView1"/> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/name" android:textSize="20sp" android:inputType="textCapSentences" android:paddingTop="2dp" android:paddingBottom="6dp" android:ems="7"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="15dp" android:paddingRight="5dp" android:textSize="20sp" android:text="@string/firstPart_2" android:id="@+id/textView2"/> </LinearLayout> XML (flow-text):
<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" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <ScrollView android:layout_width="match_parent" android:layout_height="0dip" android:layout_weight="1" > <uk.co.deanwild.flowtextview.FlowTextView android:id="@+id/ftv" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="5dp" android:textSize="20sp" android:text="блабла" android:id="@+id/textView1"/> <EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/name" android:textSize="20sp" android:inputType="textCapSentences" android:ems="5"/> </LinearLayout> </uk.co.deanwild.flowtextview.FlowTextView> </ScrollView>