Home > Mobile >  Fragments of the setOnItemClickListener is invalid
Fragments of the setOnItemClickListener is invalid

Time:09-29

Beginners, self-taught, trouble to clarify, you need to code can reply to me (Java background)

CodePudding user response:

Next time, remember to provide the log prints, or bad analysis, a listview, simple you write so complicated, can offer a few ideas: events were intercepted, event is not triggered, uninitialized variables

CodePudding user response:

refer to the second floor angelsmiling response:
remember to provide the log print next time, otherwise, bad analysis, a listview, simple you write so complicated, can offer a few ideas: events were intercepted, event is not triggered, an uninitialized variable


Handler I also don't understand, also dare not ask, run method is to display the network inside the picture
Himself wrote a class to inherit SimpleAdapter, rewrote the getview method to solve this problem now
As part of the code

CodePudding user response:

Your new is wrong, the ListView with the onItem, not with AdapterView. OnItem

CodePudding user response:

You don't put the setOnItemClickListener in processing the message within a method
  • Related