[android-developers] Re: Restricting number of items AutoCompleteTextView displays.
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 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: > > > > 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 adapter = new ArrayAdapter(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 -~--~~~~--~~--~--~---
[android-developers] Re: Restricting number of items AutoCompleteTextView displays.
You cannot control this feature. On Sat, Feb 14, 2009 at 6:04 PM, Lewis 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: > > > > 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 adapter = new ArrayAdapter(this, >R.layout.drop, CONTACTS); > > > > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---