Skip to content

Instantly share code, notes, and snippets.

View amank22's full-sized avatar
💻
Working

Aman Kapoor amank22

💻
Working
View GitHub Profile
@amank22
amank22 / CardStackView
Created December 1, 2017 11:36
A ViewGroup that can have children stacked as card on one above. You can move only to next card with each card removing from stack. Can be used where some steps are needed in particular order.
import android.content.Context;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPropertyAnimatorListenerAdapter;
import android.support.v4.view.animation.FastOutSlowInInterpolator;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;