Я пытался перевести окно EditText в перенос слов, но не могу этого сделать.
Я имел дело с гораздо более сложными проблемами при разработке приложений для Android, и кажется, что это должен быть простой процесс.
Однако проблема остается, и у меня есть большое текстовое поле, которое позволяет мне вводить текст только в одну строку, продолжая прямо по горизонтали, прокручивая по горизонтали при вводе текста.
Вот код XML для объекта EditText из моего файла макета.
<?xml version="1.0" encoding="utf-8"?>
<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"
>
<ScrollView
android:id="@+id/myScrollView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
>
<LinearLayout
android:id="@+id/widget37"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<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"
>
</EditText>
</LinearLayout>
</ScrollView>
</LinearLayout>