Created
March 10, 2015 08:38
-
-
Save muratcanbur/6bbf86c2b41eb8ab0ed7 to your computer and use it in GitHub Desktop.
This file contains 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 void remove(PhotoCard card) { | |
int position = getItemPosition(card); | |
if (position != -1) { | |
mPhotoCards.remove(position); | |
notifyItemRemoved(position); | |
} | |
} | |
public void add(PhotoCard card, int position) { | |
mPhotoCards.add(position, card); | |
notifyItemInserted(position); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment