This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ImageUtils { | |
public static ImageUtils mInstant; | |
public static ImageUtils getInstant(){ | |
if(mInstant==null){ | |
mInstant = new ImageUtils(); | |
} | |
return mInstant; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Employe { | |
private String nom; | |
private int salaire; | |
Employe(String nom, int salaire) { | |
this.nom = nom; | |
this.salaire = salaire; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
}) | |
); |