This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: 17140
    
  27

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?


An IDE is no substitute for an Intelligent Developer.
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: 17140
    
  27

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 ?
 
It's not a secret anymore!