What else need for onClick's events?
See original GitHub issueHello David, I have some problem’s with onClick events…
-
Created activity and implements
FlexibleAdapter.OnItemClickListener
,FlexibleAdapter.OnItemLongClickListener
. -
Created adapter like this:
public class Adapter extends FlexibleAdapter<AbstractFlexibleItem> {
public Adapter(@Nullable List<AbstractFlexibleItem> items, @Nullable Object listeners) {
super(items, listeners, true);
}
}
- Created simple Item object extending
AbstractFlexibleItem<Item.ViewHolder> ...
- Created instance of this adapter with empty items list like:
new Adapter(emptylist, this);
- Added some items
Try to fire onClick events, tapping items on the screen… Nothing 😦
What’s wrong?
Thank for help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
onclick Event - W3Schools
The onclick event occurs when the user clicks on an HTML element. See Also: The ondblclick Event · The onmousedown Event · The...
Read more >HTML Button onclick – JavaScript Click Event Tutorial
The onclick event executes a certain functionality when a button is clicked. This could be when a user submits a form, when you...
Read more >How to Use the JavaScript onClick Event: A Step-by-Step Guide
This attribute is called onClick. This attribute's value is the code you want to run when the element is clicked.
Read more >Element: click event - Web APIs | MDN
An element receives a click event when a pointing device button (such as a mouse's primary mouse button) is both pressed and released...
Read more >JavaScript onclick event - javatpoint
The onclick event generally occurs when the user clicks on an element. It allows the programmer to execute a JavaScript's function when an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found my mistake. In onBindViewHolder:
Thank for fast answers. Close issue.
@rusxakep, can you show me the ViewHolder and the Item classes?