Skip to content

Instantly share code, notes, and snippets.

View jewom's full-sized avatar
🦕
Focusing

Jérôme CLAMENT-SANZ jewom

🦕
Focusing
View GitHub Profile
public class ImageUtils {
public static ImageUtils mInstant;
public static ImageUtils getInstant(){
if(mInstant==null){
mInstant = new ImageUtils();
}
return mInstant;
}
@jewom
jewom / Employe.java
Created November 14, 2017 13:35
Heritages en Java
class Employe {
private String nom;
private int salaire;
Employe(String nom, int salaire) {
this.nom = nom;
this.salaire = salaire;
}
@jewom
jewom / How to use RecyclerItemTouchListener
Last active September 26, 2017 13:43
RecyclerItemTouchListener
recyclerView.addOnItemTouchListener( new RecyclerItemTouchListener(getApplicationContext(), recyclerView ,new RecyclerItemTouchListener.OnItemClickListener() {
@Override public void onItemClick(View view, int position) {
Toast.makeText(getApplicationContext(), "OnItemTouch ", Toast.LENGTH_SHORT).show();
}
@Override public void onLongItemClick(View view, int position) {
Toast.makeText(getApplicationContext(), "OnItemTouch LONG", Toast.LENGTH_SHORT).show();
}
})
);