Loading...

StackCardLayoutManager - Movement of New Card Type UI for Android

 Card view layouts have been around for years and have gained a lot of popularity. This card view allows developers to have content inside a card-shaped container. Not only this design makes the user interface better but also makes the user experience better. Different card designs and layouts make it possible to make the card more engaging and better. So, we have brought a stacked card layout manager for your android application.


Usually, stack card designs are very useful in compressing different contents or images onto one another. Also, a good card interface combined with animation makes the user experience better. So, in combination with all those and a layout where users can manage the card arrangement. This stacked card layout manager provides it all. 


Furthermore, talking about the UI and features of the stack card layout. The card designs are customizable as per the preference. However, the card layout isn’t limited to just having stacked cards. This layout manager allows users to squeeze all the available cards making room for others. Also, provide an easy drag and drop solution to position the cards. You will have a better idea of the library through the provided preview.

Screenshots

You will get a better view of the library through these screenshots.

 

Requirements

You will have to meet the requirements, before implementing this on your project. So, if you don’t have the minimum requirement this library, unfortunately, won’t work in your project. So, we have mentioned the requirements in the beginning for you all.


Min Sdk Version: 21


How to use

So, after getting the requirement and a quick preview.

Let’s move on to how you can use the stack card layout manager on your project.

The steps are easy to follow and will guide you through the installation process.

Firstly, You will have to apply the following code to your build.gradle


  1. Add this to your build.gradle.

repositories {
    maven {
        url "https://jitpack.io"
    }
}

dependencies {
    implementation 'com.github.amyu:StackCardLayoutManager:1.0'
}

For the second step, just simply set the StackCardLayout Manager in the RecyclerView.

You can easily access the required code below.

  1. Set StackCardLayoutManager in RecyclerView

val recyclerView = findViewById<RecyclerView>(R.id.recycler_view)
val maxItemCount = 5
recyclerView.layoutManager = StackCardLayoutManager(maxItemCount)

Credits

StackCardLayoutManager was originally created by Yuki Mima

Download complete project source code from GitHub

CardView 974244270583867125
Home item