Lewis,

the source for the AutoCompleteTextView is available, make your own
class with a limit on the popup size.
I'm doing that in my app. It's quite a nuisance to not being able to
restrict the popup.

Michael

On Feb 14, 9:04 pm, Lewis <lewisandrewba...@googlemail.com> wrote:
> I have an AutoCompleteTextView working correctly. I want to limit the
> amount of items which show in the drop down menu which appears (in
> order to stop the menu appearing over other screen items). I cannot
> find the attribute I have to change for this anywhere. My
> AutoCompleteTextView is bound to a custom TextView defined as follows:
>
> <drop.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:R.style.Widget_ListView_DropDown"
>         android:paddingTop="2dip"
>         android:paddingBottom="3dip"
>         android:textColor="#000"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content" />
>
>  ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
>                 R.layout.drop, CONTACTS);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to