New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to create stack. #27
Comments
The maxVisible is the number of cards drawn. The MinStackInAdapter is the remainder number of cards that you will allow before create e.g. a network call to your API endpoint. In order to do the 100% same behavior like Tinder (with 1 visible and 2 subtly visible) you need to change the drawing location on the AdapterView of the 1,2,3 first cards separately. If you want to add the animation 4th card becoming -> 3rd card then you have to redraw those cards on the Listener file which controls the touches. Hope it helps. |
@Diolor Can you please explain it, I am unable to understand how these cards are placed in the layout and method onAdapterAboutToEmpty() is called only when I am on card "CSS" after removing the initial 6 cards according to example, it doesn't matter whether app:min_adapter_stack="6" or 5 or 1 used. |
Quick and dirty:
|
@kh0r I set a drawable as the border of the card. Using |
@kh0r I had it resolved by calling the |
I want to create a stack of 3 cards to be shown at once i.e little layer of below card to be shown.
So user get to know that there is more cards below.
Your library do have methods of class SwipeFlingAdapterView but these doesn't work or this indicate something different that I am not able to understand.
Please help if there is any method regarding this.
Thanks in Advance.
The text was updated successfully, but these errors were encountered: