Skip to content

Instantly share code, notes, and snippets.

View beraldofilippo's full-sized avatar
🚀

Filippo Beraldo beraldofilippo

🚀
View GitHub Profile
@beraldofilippo
beraldofilippo / ItemClickSupport.java
Last active March 7, 2021 16:41
RecyclerView single and double click listener on items of a RecyclerView.
/**
* Created by Hugo Visser.
* Please see http://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/
*
* Modified by Filippo Beraldo:
* - Added OnDoubleClickListener in place of the standard OnClickListener.
*/
public class ItemClickSupport {
private final RecyclerView mRecyclerView;