【发布时间】:2013-01-17 20:16:22
【问题描述】:
我无法强制 AutoCompleteTextView 下拉元素将文本换成三行或更多行。
如你所见:
第一张图片(下拉元素)中的文字消失了,但我不希望它换行。
已编辑:这是我的下拉项的 xml 代码
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
style="?android:attr/dropDownItemStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="false"
android:lines="4"
android:minLines="4"
android:textSize="10sp"/>
我该怎么做?
【问题讨论】:
-
你试过改变 minLines 属性吗?
-
设置 android:layout_height ="wrap_content"
-
@Mehul1000 我试图设置 android:layout_height ="wrap_content" 但它不起作用...窗台只有一行
标签: android autocompletetextview