Home > Mobile >  RecyclerView clicking the item only part of the work
RecyclerView clicking the item only part of the work

Time:10-07


To monitor the view, but only click on the image part of the monitoring effect,

CodePudding user response:

You can have a try, it is not to enter the click event, still did not perform the function of in the click event,

CodePudding user response:

How itemview assignment, other controls can click, to intercept the events,

CodePudding user response:

OnItemClicklistener is null, do you have a set?

CodePudding user response:

Directly to the item the outermost layers of the layout is an id, show the layout Settings click event

CodePudding user response:

After breaking points or log, see if we click execute his writing logic, this kind of problem is usually caused by some aspects of negligence,

CodePudding user response:

1, had better be in onClick (view) to judge the listener; 2, the layout code posted look

CodePudding user response:

OnItemClickListener!=null this sentence in the onClick event, code execution order
  • Related