Android Open Source - Swipeable-Cards Likes






From Project

Back to project page Swipeable-Cards.

License

The source code is released under:

Apache License

If you think the Android project Swipeable-Cards listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * AndTinder v0.1 for Android/* w  w w.j av a  2s . c o  m*/
 *
 * @Author: Enrique Lpez Maas <eenriquelopez@gmail.com>
 * http://www.lopez-manas.com
 *
 * TAndTinder 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.
 *
 * AndTinder is compatible with API Level 13 and upwards
 *
 * @copyright: Enrique Lpez Maas
 * @license: Apache License 2.0
 */

package com.andtinder.model;

public class Likes {
   public enum Like {
          None(0), Liked(1), Disliked(2);

          public final int value;

          private Like(int value) {
              this.value = value;
          }

          public static Like fromValue(int value) {
              for (Like style : Like.values()) {
                  if (style.value == value) {
                      return style;
                  }
              }
              return null;
          }
      }
}




Java Source Code List

com.andtinder.Utils.java
com.andtinder.demo.MainActivity.java
com.andtinder.model.CardModel.java
com.andtinder.model.Likes.java
com.andtinder.model.Orientations.java
com.andtinder.view.BaseCardStackAdapter.java
com.andtinder.view.CardContainer.java
com.andtinder.view.CardStackAdapter.java
com.andtinder.view.SimpleCardStackAdapter.java