Skip to content

Instantly share code, notes, and snippets.

View mishamoovex's full-sized avatar
👨‍💻
Working from home

Mykhailo Vasylenko mishamoovex

👨‍💻
Working from home
View GitHub Profile
@mishamoovex
mishamoovex / ItemClickSupport.java
Created January 28, 2019 14:47 — forked from nesquena/ItemClickSupport.java
Click handling for RecyclerView
/*
Source: http://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/
USAGE:
ItemClickSupport.addTo(mRecyclerView).setOnItemClickListener(new ItemClickSupport.OnItemClickListener() {
@Override
public void onItemClicked(RecyclerView recyclerView, int position, View v) {
// do it
}
});
@mishamoovex
mishamoovex / !simple paged list for jetpack compose
Created September 30, 2022 10:58 — forked from FishHawk/!simple paged list for jetpack compose
If your project does not have a deep dependency on the paging3 library, I recommend implementing a simple paging library yourself to avoid all the weird features of paging3. The paging library needs the view layer and the model layer to work together. It doesn't make sense to encapsulate these together.
!simple paged list for jetpack compose