File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to limit the number of dropdown items visible at a time on screen in AutoCompleteTextView ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to limit the number of dropdown items visible at a time on screen in AutoCompleteTextView ?" Watch "How to limit the number of dropdown items visible at a time on screen in AutoCompleteTextView ?" New topic
Author

How to limit the number of dropdown items visible at a time on screen in AutoCompleteTextView ?

Pritam Shah
Greenhorn

Joined: Jul 13, 2009
Posts: 25
I am using AutoCompleteTextView and want to limit the number of dropdown items visible at a time on screen. Currently it fills up the screen but can i limit it to say 2 items with a scroll bar for displaying more.
Pritam Shah
Greenhorn

Joined: Jul 13, 2009
Posts: 25
Got it .. simply by calling .setDropDownHeight(int height) method of AutoCompleteTextView
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16055
    
  21

Yes, but can anyone point me to a place where I can make that dropdown list out of items that match a datamodel using an alternative filter, as opposed to the default which starts matching at the beginning of each item's string?


Customer surveys are for companies who didn't pay proper attention to begin with.
Pritam Shah
Greenhorn

Joined: Jul 13, 2009
Posts: 25
Tim Holloway wrote:Yes, but can anyone point me to a place where I can make that dropdown list out of items that match a datamodel using an alternative filter, as opposed to the default which starts matching at the beginning of each item's string?


Did a simple search and found this , may help you :
http://forum.xda-developers.com/showthread.php?p=5595790
http://sacoskun.blogspot.com/2008/08/autocompletetextview-with-simpleadapter.html
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16055
    
  21

Pritam Shah wrote:
Tim Holloway wrote:Yes, but can anyone point me to a place where I can make that dropdown list out of items that match a datamodel using an alternative filter, as opposed to the default which starts matching at the beginning of each item's string?


Did a simple search and found this , may help you :
http://forum.xda-developers.com/showthread.php?p=5595790
http://sacoskun.blogspot.com/2008/08/autocompletetextview-with-simpleadapter.html


Unfortunately, I'd already done the same search back in February and got the same result. It didn't help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to limit the number of dropdown items visible at a time on screen in AutoCompleteTextView ?