Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • I get error on getCustomView method. what is R.id.tremps_spinner_row and R.id.tremps_spinner_text Commented May 6, 2015 at 18:10
  • Check my answer again, I've edited it. spinner_row is the layout for a spinner item. spinner_text is the TextView inside spinner_row layout Commented May 8, 2015 at 18:57
  • I would have to add the whole custom adapter code separately? Commented Feb 14, 2017 at 13:31
  • IMHO it would be cleaner to keep a reference to textViewResourceId when you pass it to the constructor, instead of referencing it again in the getCustomView method. Commented Jan 20, 2018 at 22:05
  • I am having issue in this, I am unable to select my first option from dropdown, even when its visible, onItemSelected gets activated, after I click 2nd option Commented Jun 15, 2018 at 12:28