On 06/12/2010 07:33 PM, tim wrote: > I found out all the items inside ListView has the same ID value. Is > this expected if it's using ListAdapter to populate data?
Yes. > Same thing with Spinner as well. Are these expected? Yes. If you want to get at the widget inside a specific row (e.g., for bindView() in a custom Adapter), call findViewById() on the row View, not the Activity or the ListView/Spinner. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en