• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it .. simply by calling .setDropDownHeight(int height) method of AutoCompleteTextView
 
Saloon Keeper
Posts: 26769
190
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Pritam Shah
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 26769
190
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 am displeased. You are no longer allowed to read this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic