android - Perform an action on spinner opening -


my problem following : @ moment have spinner called "projects" populating in code, reasons need add title using adapter :

adapter.add("choose project"); 

now remove (via adapter.remove, not problem) when spinner in activity clicked (when it's opening), method able find onitemselected, not i'm looking for.

is there such thing onopenlistener or onclicklistener spinner execute code when spinner opened, , not when item selected ??

thank

this because trying call inside listener probably anonymous class. assuming activity's class name myactivity use myactivity.this.someactivitymethod someactivitymethod method want execute.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -