StackedCardsView is an android library to create stacked cards like effect on normal ViewGroups.
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency:
implementation 'com.github.ruthwikkk:stackedcardsview:{latest_version}'
Find the latest version here
- Add it to your layout:
<com.ruthwikkk.widget.stackedcards.StackedCardsView
android:layout_width="150dp"
android:layout_height="120dp"
android:padding="10dp"
app:scv_scaleFactor="0.1"
app:scv_cardRadius="8dp"
app:scv_cardPosition="right">
</com.ruthwikkk.widget.stackedcards.StackedCardsView>