我在EditText中设置WrapText类型的工具时遇到了麻烦。Android - 编辑文本中WrapText的问题
问题:当我尝试tp在EditText中输入数据时,它超出了屏幕宽度(水平滚动)。而不是它应该出现在下一行。
要执行:事实上,我想要实现多行的EditText,最初它应与单行照常显示,但将垂直扩展(未水平地)被输入的数据时相同。
请问我该怎么办?
请各位看看下面的图像:
我也做了以下XML编码:
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:stretchColumns="1">
<TableRow android:id="@+id/TableRow02" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView
android:text="Name:"
android:id="@+id/TextView01"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:textSize="16dip">
</TextView>
<EditText
android:id="@+id/txtViewName"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:inputType="textFilter|textMultiLine|textNoSuggestions"
android:scrollHorizontally="false">
</EditText>
</TableRow>
</TableLayout>
请查看以上的更新:要执行: – 2011-01-12 09:10:53
@ PM-帕雷什-mayani为什么RelativeLayout的不使用,我想它会工作精细。 – 2011-01-12 09:25:49