Coder Social home page Coder Social logo

rossdeckview's Introduction

rossdeckview

Lite swipeable deck view similar to the one initially implemented by Tinder.

Tested in Android 4.1 and above.

gif1

Android app on Google Play

Gradle

   compile 'com.diogobernardino:rossdeckview:1.2'

Drop me a line at @dfbernardino if you found it useful, I will be happy to know about it.

Motivation

None of the available libraries seemed stable enough as well as able to swipe in all directions. Contrary to similar projects, I made the effort to fully decouple the view moving capabilities from the deck view itself. In case one wants to make a view swipeable without necessarily having a deck/stack behind, that can be done using the FlingChief class.

License

Copyright 2017 Diogo Bernardino

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

rossdeckview's People

Contributors

diogobernardino avatar fouadkada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rossdeckview's Issues

Method setStackScale is broken

Looks like there is a mistake in setStackScale( ) method of RossDeckView.
It is sStackPadding = factor; but should be sStackScale = factor;

How to obtain swiped card data

Hi, how do you get the current adapter data when it's swiped / tapped / etc.?

The action listener doesn't pass the data as params, or did I miss something?

Thanks.

Progromatically swipe

As noted by others would it be nice to be able to programmatically swipe the cards

Custom Adapter

Hi, when i try use custom Adapter i got Exception at: positionViews(0,nChilds) RossDeckVeiw line:133
it happens because in method addChildToLayout() FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) child.getLayoutParams();
lp get null , ican't undersand why

Issue with CardView

When used with CardView, the bottom of the cards gets blended and the top card loses its bottom shadow. Any idea why this can happen?

screenshot

CornerRadious attr not working

Hi!

Lite version of DeckView! Excellent.

I am trying make it a deck of cardViews. When I try to add the radious in the XML it doesnt apply when I compile it.

I am not shure if I am doing something wrong.

Some enlightment please.

PS: Sorry for my bad english

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.