Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android中编辑文本_Android - Fatal编程技术网

在android中编辑文本

在android中编辑文本,android,Android,您好,我有一个编辑文本,用于获取有关用户的信息。我已将以下属性设置为编辑文本 <EditText android:id="@+id/profile_about" android:layout_below="@id/AboutYou" android:layout_centerInParent="true" android:layout_marginLeft="8dip" android:layout_margi

您好,我有一个编辑文本,用于获取有关用户的信息。我已将以下属性设置为编辑文本

<EditText
        android:id="@+id/profile_about"
        android:layout_below="@id/AboutYou"
        android:layout_centerInParent="true"
        android:layout_marginLeft="8dip"
        android:layout_marginBottom="10dip"
        android:layout_marginRight="18dip"
        android:gravity="top|left"
        android:inputType="textCapWords"
        android:textColor="#000000"
        android:background="@drawable/edittext"     

        android:layout_width="300dip" 
        android:layout_height="100dip"
        android:textSize="16sp"
    />  


问题是它只能水平滚动。输入某些字符后不能换行。有人能帮我吗?

尝试使用
android:singleLine=“false”
尝试使用
android:singleLine=“false”

android:singleLine=“false” 如果设置了此属性,则达到某个限制后的字符将自动转到下一行。。。 也试试这个 android:scrollHorizontal=“false”

android:singleLine=“false” 如果设置了此属性,则达到某个限制后的字符将自动转到下一行。。。 也试试这个
android:ScrollHorizontal=“false”

我用
android:inputType=“textCapWords”
替换了
android:inputType=“textmiline”textCapWords“
,它工作了。

我用
android:inputType=“textmiline”textCapWords“
替换了
android:inputType=“textCapWords”
,它工作了