A simple implementation of swipe card like StreetView
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
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'
Android API 14+
v2.3.0
RecyclerView
isAutoAmination
attribute23.2.1
2.3.0
1.2
of Application DemoRecyclerView
duplicate menù item in multiple marker mode mapsv2.2.0
RecyclerView
SwipeableCardBuilder()
constructorOptionViewAdditional
v2.1.0
SwipeableCard
in the same class with init(..)
method (see Multiple Instance)SwipeableCard
classOptionView
and OptionViewAdditional
and other class with annotations and more bug fixRecyclerView
blinkingv2.0.0
CardView
Layout!!!RecyclerView
animationFab
button addedImageView
button (see Customization)TextView
(see Customization)setCardRadius(int radius)
default 4v1.0.1
v1.0.0
SwipeableCard.java
for setUp view of Swipeable Card.OptionView.java
that contains setter for set-up card with your own options.SwipeableCardAdapter.java
an adapter ready to use the Swipeable Card in RecyclerView, its constructor accepts List<OptionView>
for each optionsView of card and Context
.AnimationCard
with abstract method for animation (for completeness only).setOptionView(OptionView optionViews)
called by OptionView class for set-up card with your own options.Method called by OptionView.getOptionView()
getDuration()
getTitle()
getColorTitle()
getMenuItem()
getImage()
getSubTitle()
getColorToolbar()
getText()
getToolbarListener()
isSubTitle()
check if Sub Title is setisMenuItem()
check if menuItem is setisImage()
check if Image is setisText()
check if Text is setMethod called by OptionView.Builder()
setDuration(long duration)
default is 500 millistoolbarListener(Toolbar.OnMenuItemClickListener toolbarListener)
for set-up the menù item on clicktitle(String title)
default is emptycolorTitle(int color)
default is blackmenuItem(int menuItem)
default there isn't a menuimage(int image)
for set drawable imagesubTitle(String subTitle)
default isn't settoolbarColor(int color)
default is transparent
text(String text)
for set custom textbuild()
for build swipeable card with custom configurationAuthor: Michele Lacorte ([email protected])
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+
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.
Hey dude! Help me out for a couple of :beers:!