SwipeableCard


Source link: https://github.com/michelelacorte/SwipeableCard

A simple implementation of swipe card like StreetView!!

DONATIONS

This project needs you! If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!

PayPal

  • Donate $5: Thank's for creating this project, here's a coffee (or some beer) for you!

  • Donate $10: Wow, I am stunned. Let me take you to the movies!ù

  • Donate $15: I really appreciate your work, let's grab some lunch!

  • Donate $25: That's some awesome stuff you did right there, dinner is on me!

  • Donate $50: I really really want to support this project, great job!

  • Donate $100: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!

  • Donate $2799: Go buddy, buy Macbook Pro for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!! Follow this link Donate!!

If you want to contribute you may download Donation App from Google Play

EXAMPLE

Swipeable Card is on Google Play!!!

If you want to help me please download Donation App!!

And Amazon Store

See video demo here

Credit Card!!

In collaboration with cooltechworks and CreditCardView

Maps Card

Swipe to Dismiss

New Floating Action Button!!!

Possibility to use SwipeableCard in RecyclerView!!!

USAGE

Swipeable Card is pushed to JCenter, so you just need to add the following dependency to your build.gradle.

compile 'it.michelelacorte.swipeablecard:library:2.3.0'

In alternative you can use AAR repository with:

allprojects {

  repositories {

maven {
 url "https://dl.bintray.com/michelelacorte/maven/" 
}

jcenter()

mavenCentral()

}
 
}

And add this dependecies

compile 'it.michelelacorte.swipeablecard:library:2.3.0@aar'

DOCUMENTATION

SYSTEM REQUIREMENT

Android API 14+

STATUS

CHANGELOG

v2.3.0

  • Credit Card added!! (See Preview)
  • Credit Card in RecyclerView
  • Swipe up/down functionality (automatic and swipe gesture mode)
  • Added isAutoAmination attribute
  • Update support library to latest version 23.2.1
  • Update documentation to 2.3.0
  • Update version 1.2 of Application Demo
  • Fixed RecyclerView duplicate menù item in multiple marker mode maps
  • Added Codacy code review and fixed some issue (from B to A level see )

v2.2.0

  • Maps Fragment added (with many method see Preview)!
  • Maps mode in RecyclerView SwipeableCard
  • Maps single marker mode and multiple marker mode support
  • Improved hierarchy type of Card
  • Improved Builder() constructor
  • Fixed issue in OptionViewAdditional
  • Added documentation to GitHub repo: Here
  • Version 1.1 of Application Demo

v2.1.0

  • Added Attribute to XML (see Attribute Table)
  • New version of App demo (release on Play Store)
  • Multiple instance of SwipeableCard in the same class with init(..) method (see Multiple Instance)
  • Improved SwipeableCard class
  • Improved OptionView and OptionViewAdditional and other class with annotations and more bug fix
  • Swipe to dismiss function added (see Preview)
  • Fixed RecyclerView blinking

v2.0.0

  • Support all custom CardView Layout!!!
  • Improved RecyclerView animation
  • Fab button added
  • Fixed minor bug for compatibility with API 14+
  • Added three ImageView button (see Customization)
  • Added two TextView (see Customization)
  • Added method setCardRadius(int radius) default 4

v1.0.1

  • Support API 14+
  • Update support library and gradle

v1.0.0

  • Support API 21+
  • Added class SwipeableCard.java for setUp view of Swipeable Card.
  • Added class OptionView.java that contains setter for set-up card with your own options.
  • Added class SwipeableCardAdapter.java an adapter ready to use the Swipeable Card in RecyclerView, its constructor accepts List<OptionView> for each optionsView of card and Context.
  • Added interface AnimationCard with abstract method for animation (for completeness only).
  • Added method setOptionView(OptionView optionViews) called by OptionView class for set-up card with your own options.
  • Added example App.

Method called by OptionView.getOptionView()

  • Added method getDuration()
  • Added method getTitle()
  • Added method getColorTitle()
  • Added method getMenuItem()
  • Added method getImage()
  • Added method getSubTitle()
  • Added method getColorToolbar()
  • Added method getText()
  • Added method getToolbarListener()
  • Added method isSubTitle() check if Sub Title is set
  • Added method isMenuItem() check if menuItem is set
  • Added method isImage() check if Image is set
  • Added method isText() check if Text is set

Method called by OptionView.Builder()

  • Added method setDuration(long duration) default is 500 millis
  • Added method toolbarListener(Toolbar.OnMenuItemClickListener toolbarListener) for set-up the menù item on click
  • Added method title(String title) default is empty
  • Added method colorTitle(int color) default is black
  • Added method menuItem(int menuItem) default there isn't a menu
  • Added method image(int image) for set drawable image
  • Added method subTitle(String subTitle) default isn't set
  • Added method toolbarColor(int color) default is transparent
  • Added method text(String text)for set custom text
  • Added method build() for build swipeable card with custom configuration

CREDITS

Author: Michele Lacorte ( [email protected])

CONTRIBUTING

If you want to contribute to the project fork it and open Pull Request, or contact me by e-mail.

Each proposal will be accepted!

Follow my Google+

LICENSE

Copyright 2016 Michele Lacorte  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. 

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Resources

Instagram like dot indicator standalone view. It can be used with any component.

Endpoint2mock2 is a library for mocking Retrofit 2 Http endpoint in your Android app. It works just by adding @MockedEndpoint annotation to the Retrofit calls.

A bar chart is a chart or graph that presents categorical data with rectangular bars with heights or lengths proportional to the values that they represent. The bars can be plotted vertically or horizontally.

This is a library which allows you to create a record button view in android.

Custom slider for Android build from scratch.

A helper class for Toolbar configuration.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes