##EXAMPLE
####Swipeable Card is on Google Play!!!
####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.1.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.1.0@aar'
##DOCUMENTATION
##SYSTEM REQUIREMENT
Android API 14+
##STATUS
##CHANGELOG
v2.1.0
- Added Attribute to XML (see Attribute Table)
- New version of App demo (release on Play Store)
- Multiple instance of
SwipeableCardin the same class withinit(..)method (see Multiple Instance) - Improved
SwipeableCardclass - Improved
OptionViewandOptionViewAdditionaland other class with annotations and more bug fix - Swipe to dismiss function added (see Preview)
- Fixed
RecyclerViewblinking
v2.0.0
- Support all custom
CardViewLayout!!! - Improved
RecyclerViewanimation Fabbutton added- Fixed minor bug for compatibility with API 14+
- Added three
ImageViewbutton (see Customization) - Added two
TextView(see Customization) - Added method
setCardRadius(int radius)default 4
Preview:
v1.0.1
- Support API 14+
- Update library and gradle
v1.0.0
- Support API 21+
- Added class
SwipeableCard.javafor setUp view of Swipeable Card. - Added class
OptionView.javathat contains setter for set-up card with your own options. - Added class
SwipeableCardAdapter.javaan adapter ready to use the Swipeable Card in RecyclerView, its constructor acceptsList<OptionView>for each optionsView of card andContext. - Added interface
AnimationCardwith 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 istransparent - Added method
text(String text)for set custom text - Added method
build()for build swipeable card with custom configuration
##CREDITS
Author: Michele Lacorte (micky1995g@gmail.com)
##CONTRIBUTING
If you want to contribute to the project you can open another Pull Request, or contact me by e-mail.
Each proposal will be accepted!
##LICENSE
Copyright 2015 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.





