在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”
,它工作了