Swipecards
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content.
A Tinder-like cards effect as of August 2014. You can swipe left or right to like or dislike the content. The library creates a similar effect to Tinder's swipable cards with Fling animation.
It handles greatly asynchronous loading of adapter's data and uses the same layout parameters as FrameLayout (you may use android:layout_gravity in your layout xml file).
Installation
Go ahead find the latest version on [Gradle please] cowboy!
Be sure to add the @aar
suffix.
dependencies {
compile 'com.lorentzos.swipecards:library:X.X.X@aar'
}
Example
The example is quite straightforward and documented in comments.
You may find it under the relevant directory.
//implement the onFlingListener
public class MyActivity extends Activity {
...
@Override
protected void onCreate(Bundle savedInstanceState) {
...
//add the view via xml or programmatically
SwipeFlingAdapterView flingContainer = (SwipeFlingAdapterView) findViewById(R.id.frame);
al = new ArrayList<String>();
al.add("php");
al.add("c");
al.add("python");
al.add("java");
//choose your favorite adapter
##GitHub
<div class="github-widget" data-repo="Diolor/Swipecards"></div>