sdphil wrote: > I have a ListView, and I want to do something special with the first > item in the listview. > > So, I setup an adapter, an item in separate xml a java wrapper for the > item and I have a "render()" method. > > Inside my render method, I realized that I can't do something like > "findViewById(R.id.test)" because all the items in the listview have > the same id. How can I get just the first item?
getView() (or bindView()) knows the position. The first item is position 0. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

