我想在android中支持AutoCompleteTextView
。如何将视图数据的内容包装到屏幕的宽度?
使用此功能,您可以在“dp”中设置最小宽度和最大宽度
android:layout_width="match_parent"
android:maxWidth=""
android:mixWidth=""
试试这个代码..你可以给dp定义宽度和高度。
<AutoCompleteTextView
android:id="@+id/autoCompleteTextView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10" />