Skip to content
A native library providing a Tinder-like cards effect. A card can be constructed using an image and displayed with animation effects, dismiss-to-like and dismiss-to-unlike, and use different sorting mechanisms.
Branch: develop
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
AndTinderDemo Updated versions Aug 10, 2017
gradle/wrapper Updated all libraries, Gradle plugin and using new Google Maven Jul 12, 2017
.gitignore [0.3] Version 0.3 fixing some bugs and updating to the latest Gradle … Feb 14, 2015
LICENSE Update Mar 10, 2015
build.gradle Added gradle files and art May 13, 2014
gradlew Solved problem with animation blinking at the end May 14, 2014
gradlew.bat Added gradle files and art May 13, 2014
jacoco.gradle Pull request #61, updated tools, deactivated testCoverage Feb 21, 2016

Swipeable cards: Tinder-like cards library for Android

Swipeable-cards is a native library for Android that provide a Tinder card like effect. A card can be constructed using an image and displayed with animation effects, dismiss-to-like and dismiss-to-unlike, and use different sorting mechanisms.

The library is compatible for Android versions 3.0 (API Level 11) and upwards.

A library and a sample application are provided with the code.

Example Image Example Image


Download the library with git and import it into your project (right now there is only Gradle support, so you need to import it writing in your build.gradle the following:

compile project(':AndTinder')

and in your settings.gradle

include 'AndTinder'

You can also download it via MavenCentral and Gradle:

dependencies {
   compile 'com.github.kikoso:SwipeableCards:1.1-RELEASE@aar'

When you have included the library in your project, you need to proceeed as follows. First, create a container to store the cards.

     android:layout_height="fill_parent" />

From your Activity, inflate into a CardContainer the container you declared in your XML

mCardContainer = (CardContainer) findViewById(;

The card container can sort the cards either ordered or disordered:


Now you need to create your cards. The procedure is quite simple: you just need to create an object CardView and provide the image resource you want to add:

CardModel card = new CardModel("Title1", "Description goes here", r.getDrawable(R.drawable.picture1);

Additionally, you can set up a Delegate to be notified when the image is being liked or disliked:

card.setOnCardDimissedListener(new CardModel.OnCardDismissedListener() {
     public void onLike() {
          Log.d("Swipeable Card", "I liked it");

     public void onDislike() {
          Log.d("Swipeable Card", "I did not liked it");

Or when it is clicked:

card.setOnClickListener(new CardModel.OnClickListener() {
     public void OnClickListener() {
          Log.i("Swipeable Cards","I am pressing the card");

Finally, use an adapter to link the cards and the container:

SimpleCardStackAdapter adapter = new SimpleCardStackAdapter(this);
adapter.add(new CardModel("Title1", "Description goes here", r.getDrawable(R.drawable.picture1)));

Version history

  • 14.02.2015: Version 0.3: Fixed bugs with the cards locations and updated to the latest build tools
  • 4.06.2014: Published the version 0.2 with several improvements thanks to Dr-Emann
  • 13.05.2014: Published the first version 0.1

Next steps

There are many things that can be done with this library.

  • Allow custom templates
  • Extend image personalization options
  • Recreate the container when it has been emptied

If you want to colaborate with the project or have any idea to be implemented feel free to submit a pull request or to write an issue!

Also, if you have used AndTinder on your app and you let me know, I can link it from here :)


Enrique López Mañas -


Copyright 2014 Enrique López Mañas

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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
Follow me on Twitter Follow me on Google+ Follow me on LinkedIn
You can’t perform that action at this time.