【发布时间】:2011-08-05 13:36:16
【问题描述】:
我在使用 android.R.layout.simple_dropdown_item_1line 时有奇怪的行为
MultiAutoCompleteTextView.
我使用的代码是:
contactId = (MultiAutoCompleteTextView) findViewById(R.id.contactId);
contactAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line,readContacts());
contactId.setAdapter(contactAdapter);
contactId.setThreshold(1);
我的布局文件包含:
<MultiAutoCompleteTextView
android:id="@+id/contactId"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="To"
android:layout_margin="3dip">
</MultiAutoCompleteTextView>
我的模拟器在multiAutoCompleteTextView 上显示白色背景,透明
contactList 里面有信息。
为什么我会有这种奇怪的行为?我正在使用 Android 2.2 进行开发。
【问题讨论】:
-
再次升级您当前的 Android 2.2
标签: android android-layout android-emulator android-2.2-froyo