Skip to content

Instantly share code, notes, and snippets.

@jesdga95
jesdga95 / SwipeDismissListViewTouchListener.java
Last active December 20, 2015 02:39
This bug caused notifyDataSetChanged() not to call getView() when called from onItemClick(). The fix was to check if user is swiping before animating / dismissing. This also fixed the high sensitivity on tap (some items would get dismissed when tapping)
/*
* Copyright 2012 Roman Nurik
* This code has been modified. Portions copyright (C) 2013, Jesús D. Gulfo.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@gonzalo123
gonzalo123 / gist:868939
Created March 14, 2011 09:31
push existing repository to github
cd existing_git_repo
git remote add origin git@github.com:[user]/[reponame].git
git push -u origin master