drop down menu - Android Spinner: is there absolutely no neat way to avoid displaying the selected item twice? -


i searched everywhere, behavior i'm trying implement simple, duplicate of question asked more 2 years ago no real answer (android spinner dont draw selected item)

basically, have spinner acts drop down list containing 3 items x,y,z. when select x, should see y , z in list(plus x selected on top), instead x plus x,y,z.

why bad design user perspective? because when user clicks spinner, view looks (x,y,z images btw :) ) :

x

x

y

z

the fix thought of check on every select event , remove selected list of items, far neat solution, need optimize performance in app.

any ideas?

after spent more 4 hours trying solve problem in every possible way realized had passed same me , build library solve that.

thankfully right , found awesome library: https://github.com/lesilva/betterspinner

it builds spinner above autocompletetextview, kind hacky, works lot better android spinner.

with library, can build custom adapter , setvisibility(view.gone) in view don't want show in dropdown. bizarre reason, setvisibility(view.gone) , getlayoutparams().height = 0 don't hide item in spinner dropdown.

hope solves problem, solved mine :)


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -