All Projects → Mindinventory → CircularCardsStackView

Mindinventory / CircularCardsStackView

Licence: MIT license
CircularCardsStackView is an Android library for dealing with swipeable card views.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to CircularCardsStackView

Stacklayoutmanager
customized layoutmanager,let item pile up like stackview/类似最美有物卡片堆叠效果
Stars: ✭ 343 (+1043.33%)
Mutual labels:  stack, card
Stacklayout
Android 层叠卡片控件,仿"探探app"
Stars: ✭ 437 (+1356.67%)
Mutual labels:  stack, card
Android Swipecards View
Android library to implement cards stack view with swipe to remove feature
Stars: ✭ 162 (+440%)
Mutual labels:  stack, card
Unity-Trello
☑️️ Generate Trello cards directly from Unity
Stars: ✭ 34 (+13.33%)
Mutual labels:  card
nova-algolia-card
A Laravel Nova card for Algolia
Stars: ✭ 22 (-26.67%)
Mutual labels:  card
Vyxal
A golfing language that has aspects of traditional programming languages - terse, elegant, readable.
Stars: ✭ 134 (+346.67%)
Mutual labels:  stack
quetie
🎀 Just the cutest and tiniest queue/deque implementation!
Stars: ✭ 111 (+270%)
Mutual labels:  stack
bootstrap-grid-card
Bootstrap grid in Lovelace UI
Stars: ✭ 25 (-16.67%)
Mutual labels:  card
TclForth
Multi-platform desktop Forth based on Tcl/Tk
Stars: ✭ 55 (+83.33%)
Mutual labels:  stack
react-native-carousel-pager
React Native carousel pager.
Stars: ✭ 90 (+200%)
Mutual labels:  pager
Vue
💻 Vue - Boilerplate Front : Vue 3, Vuex, Vuetify 3, JWT, Jest (Beta)
Stars: ✭ 12 (-60%)
Mutual labels:  stack
docker-lemp
A single container LEMP complete fullstack with latest release of PHP7.4.33, 8.0.26 & 8.1.13/8.2RC and MySQL, nginx, PostgreSQL, phalcon, swoole, mailcatcher, beanstalkd, elasticsearch, memcached, redis, adminer and all you ever need; on top alpine3.15
Stars: ✭ 106 (+253.33%)
Mutual labels:  stack
uC-USBH
Efficient USB host stack for embedded systems equipped with a USB host or OTG controller. Includes many class drivers such as MSC, HID, CDC-ACM, and USB2Ser.
Stars: ✭ 44 (+46.67%)
Mutual labels:  stack
KoiCatalog
A card manager for Koikatu. View, search, and sort your collection of character cards.
Stars: ✭ 18 (-40%)
Mutual labels:  card
awesome-startup-stack
Curated list of technologies for your next startup
Stars: ✭ 32 (+6.67%)
Mutual labels:  stack
SpiderCard
蜘蛛纸牌 for mac
Stars: ✭ 29 (-3.33%)
Mutual labels:  card
swarm-router
Scalable stateless «zero config» service-name ingress for docker swarm mode with a fresh more secure approach
Stars: ✭ 58 (+93.33%)
Mutual labels:  stack
coap-go
Lobaro CoAP for GoLang - server and client applications
Stars: ✭ 20 (-33.33%)
Mutual labels:  stack
needle
📌📚 An extensive standalone data structure library for JavaScript.
Stars: ✭ 25 (-16.67%)
Mutual labels:  stack
MvcSimplePager
Simple,lightweight,easy to expand pager for asp.net mvc and asp.net core,针对asp.net mvc 和 asp.net core 设计的通用、扩展性良好的轻量级分页扩展
Stars: ✭ 13 (-56.67%)
Mutual labels:  pager

CircularCardsStackView

Overview

ezgif com-gif-maker (10)

Features

  • Android 11 support
  • Easy setup
  • Endless card stack
  • Swipe horizontally with animation
  • Fully customized
  • Support to all resolutions with portrait orientation

Usage

Dependencies

  • Step 1: Add the JitPack repository in your project build.gradle file
allprojects {
	    repositories {
		    ...
		    maven { url 'https://jitpack.io' }
	    }
    }

or

If Android studio version is Arctic Fox then add it in your settings.gradle:

 dependencyResolutionManagement {
    		repositories {
        		...
        		maven { url 'https://jitpack.io' }
    		}
	   }
  • Step 2: Add the dependency in your app module build.gradle file
dependencies {
		    ...
	        implementation 'com.github.Mindinventory:CircularCardsStackView:0.0.2'
	}

Implementation

  • Step 1: Add CardCircularStackView in your xml and customize attributes
<com.mindinventory.circularcardsstackview.ui.CircularCardsStackView
       android:id="@+id/cardStack"
       android:layout_width="0dp"
       android:layout_height="wrap_content"
       app:actionOptionsVisibility="true"
       app:childViewHeight="@dimen/_250sdp"
       app:primaryTextColor="@android:color/white"
       app:primaryTextFontFamily="@font/roboto_bold"
       app:primaryTextSize="@dimen/_16ssp"
       app:profileViewBackgroundColor="#80000000"
       app:secondaryTextColor="@android:color/white"
       app:secondaryTextFontFamily="@font/roboto_medium"
       app:secondaryTextSize="@dimen/_14ssp"
       app:stackCardBackgroundColor="@color/white"
       app:stackCardChildPadding="@dimen/_15sdp"
       app:stackCardCornerRadius="@dimen/_20sdp"
       app:stackCardStrokeColor="@color/white"
       app:stackCardStrokeWidth="@dimen/_2sdp"  />

Step 2: Provide card list and implement pageChangeListener

cardStack.setUpCardStack(ArrayList<CardModel>(), object:OnPageChangeListener{
            override fun onPageScrolled(position: Int) {
                
            }

            override fun onPageSelected(position: Int) {
                
            }

            override fun onPageScrollStateChanged(state: Int) {
                
            }
        })

Step 3: Customize card action option's icon and implement action listener

cardStack.setActionOptions(
            firstButtonResourceId = R.drawable.ic_message,
            secondButtonResourceId = R.drawable.ic_heart,
            object : CardActionListener {
                override fun onFirstButtonOptionClick(position: Int) {

                }

                override fun onSecondButtonOptionClick(position: Int) {

                }

            }
        )

Appearance

Attribute Description Default
stackCardBackgroundColor The background color of the card white
stackCardChildPadding The padding of the card's child view _15sdp
stackCardCornerRadius The corner radius of the card _30sdp
stackCardStrokeColor The stroke color of the card white
stackCardStrokeWidth The stroke width of the card _2sdp
profileViewBackgroundColor The background color of profile view #80000000
childViewHeight The height of the child view of the card _250sdp
actionOptionsVisibility Manage the visibility of the actions of the card true
primaryTextColor The text color of the primary text of the profile view white
secondaryTextColor The text color of the secondary text of the profile view white
primaryTextFontFamily The FontFamily of the primary text of the profile view roboto_bold
secondaryTextFontFamily The FontFamily of the secondary text of the profile view roboto_medium
primaryTextSize The text size of the primary text of the profile view _16ssp
secondaryTextSize The text size of the secondary text of the profile view _14ssp

Guideline for contributors

Contribution towards our repository is always welcome, we request contributors to create a pull request to the develop branch only.

Guideline to report an issue/feature request

It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue

Requirements

  • minSdkVersion >= 21
  • Androidx

Library used

LICENSE!

CircularCardsStackView is MIT-licensed.

Let us know!

If you use our open-source libraries in your project, please make sure to credit us and Give a star to www.mindinventory.com

Please feel free to use this component and Let us know if you are interested to building Apps or Designing Products.

app development
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].