Skip to content

Instantly share code, notes, and snippets.

@yishai-glide
Last active July 19, 2016 09:32
Show Gist options
  • Save yishai-glide/7959a13e258c994b70e373acf2a785c6 to your computer and use it in GitHub Desktop.
Save yishai-glide/7959a13e258c994b70e373acf2a785c6 to your computer and use it in GitHub Desktop.
public void addItem(ergebnisseListView item, int location) {
if(location > 0 && location < listData.size()) {
listData.add(item, location);
} else {
listData.add(item);
}
notifyDatasetChanged();
}
public void addItem(ergebnisseListView item) {
addItem(item, -1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment