CardSlidePanel alternatives and similar packages
Based on the "Demo" category.
Alternatively, view CardSlidePanel alternatives based on common mentions on social networks and blogs.
-
android-best-practices
Do's and Don'ts for Android development, by Futurice developers -
u2020
A sample Android app which showcases advanced usage of Dagger among other open source libraries. -
android-proguard-snippets
Proguard configurations for common Android libraries -
Android-Material-Examples
[Deprecated] Little bites of Material Design -
MovieGuide
Movie discovery app showcasing MVP, RxJava, Dagger 2 and Clean Architecture -
Android-Cheat-sheet
Cheat Sheet for Android Interviews -
Android-ItemTouchHelper-Demo
Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView. -
socket.io-android-chat
A simple chat demo for socket.io and Android -
android-basic-samples
Google Play game services - Android samples -
kotlin-sample-app
📚 Sample Android Components Architecture on a modular word focused on the scalability, testability and maintainability written in Kotlin, following best practices using Jetpack. -
android-demo
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description -
BlurEffectForAndroidDesign
Sample to show how to implement blur graphical tricks -
Android-LollipopShowcase
A simple app to showcase some of the cool new cool stuff in Android L. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar -
rx-android-architecture
RxJava architecture library for Android -
AndroidPushNotificationsDemo
A example of an android app that receives push notifications using MQTT. -
Quality-Tools-for-Android
This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android platform. -
Android-WizardPager
Android pager-style wizard flow sample code -
AndroidDemoProjects
Collection of Small Android Projects -
MaterialTransitions
Sample material transition animations for Android -
android-layout-samples
Explorations around Android custom layouts -
android-support-23.2-sample
Sample Project for Android Support Library 23.2 -
Watch
A project which demonstrate how to develop a custom client on android for dribbble.com -
GraphView-Demos
Examples for my Android GraphView library -
Android-AOPExample
This is a simple example of Aspect Oriented Programming in Android -
hellomap-android
Quick start with the Google Maps Android API -
android-movies-demo
Sample application demonstrating Android design and animation -
ProgrammingAndroidExamples
This repo contains example code for O'Reilly's "Programming Android" by Zigured Mednieks, Laird Dornin, Blake Meike and Masumi Nakamura -
LearningAndroidYamba
This is the code that goes along with Learning Android book. -
ProgrammingAndroid2Examples
This repo contains example code for O'Reilly's "Programming Android" by Zigured Mednieks, Laird Dornin, Blake Meike and Masumi Nakamura -
u2020-mvp
[DEPRECATED] Port of Jake Wharton's U2020 sample app with use of MVP and Dagger 2 -
ViewPagerHeaderScrollDemo
ViewPagerHeaderScrollDemo -
maven-android-plugin-samples
DEPRECATED! Usage examples for Android Maven Plugin -
RoboDemo
RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works. -
googletv-android-samples
Source for many GoogleTV Example applications. -
Material-Animation-Samples
Samples in Material Animation (Deprecated) -
Android-Notification-Example
A simple sample showing the different types of notifications on Andoid -
android_L_preview_example
This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc... -
ToolbarMenudrawer
TOOLBARMENUDRAWER 2.0: http://goo.gl/J77i3z -
RoomDb-Sample
A simple notes app to demo Room + LiveData implementation in Android -
AndroidTVExplorer
A sample project which can be used as a base in order to develop Media Library applications for Android TV. Follow the series of blogs starting at http://www.malmstein.com/blog/2014/10/21/building-applications-for-android-tv/ in order to keep up to date with the process -
PlayPauseDrawable
This is a sample Play & Pause Drawable with morphing animation for Android -
Curve Bottom Bar
Create curve bottom navigation using this library -
CustomFontView
Custom View classes for TextView, EditText & Buttons - to set custom fonts -
GameOfThronesTrivia
An open source app that is refactored to demo ViewModel and LiveData -
Trailers
An open source app that is refactored to demo MVVM architecture -
Inshorts
A demo app news app for a hackathon - includes MVP architecture example
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CardSlidePanel or a related project?
README
有图有真相
模仿探探首页的卡片滑动效果: [preview](capture4.jpg) 不得不说,探探的ui效果真的很赞。在着手这个project之前,我没有参考过github上其它类似的开源项目。所以,如果这个project重复造了轮子,请不要打我。 在这个仓库竣工之时,有一个小伙伴发了我另一个开源工程,颇有相似之处。我下载了源码,导入了studio,apk跑起来的时候,发现它存在一些问题:卡片飞到两侧,如果动画没有结束,则不允许下一轮拖动。这对强迫症的用户来说,应该是很不爽的。 然而,探探却克服了所有这些问题。或许,这个问题只有积淀过这些知识点的人才能琢磨的透吧。我确实思考了很久,想到了一个还不错的方案。
无耻一点
如果我能不要脸一些,我会说这个项目有以下优点:
- 快。真的流畅,滑动的手速再快也赶不上代码刷新view的速度快。
- 高效。仅仅四个卡片view轻松搞定任意多的数据。
- 灵活。自定义ViewGroup对卡片view的高度实现了自适应。
- 细节。卡片之间联动的视觉效果,是像素级的精确。
不信,你下载下来look look。
使用方法
1. 在xml文件中引入CardSlidePanel
<com.stone.card.library.CardSlidePanel
android:id="@+id/image_slide_panel"
android:layout_width="match_parent"
android:layout_height="match_parent"
card:bottomMarginTop="38dp"
card:itemMarginTop="10dp"
card:yOffsetStep="13dp" />
2. 左右滑动监听
cardSwitchListener = new CardSlidePanel.CardSwitchListener() {
@Override
public void onShow(int index) {
Log.d("Card", "正在显示-" + dataList.get(index).userName);
}
@Override
public void onCardVanish(int index, int type) {
Log.d("Card", "正在消失-" + dataList.get(index).userName + " 消失type=" + type);
}
};
slidePanel.setCardSwitchListener(cardSwitchListener);
3. 绑定Adapter
slidePanel.setAdapter(new CardAdapter() {
@Override
public int getLayoutId() {
// layout文件
return R.layout.card_item;
}
@Override
public int getCount() {
// 卡片个数
return dataList.size();
}
@Override
public Rect obtainDraggableArea(View view) {
// 可滑动区域定制,仅调用一次
return new Rect(....)
}
@Override
public void bindView(View view, int index) {
// 数据绑定,参看demo
viewHolder.bindData(dataList.get(index));
}
});
4. 数据更新
// appendDataList
adapter.notifyDataSetChanged();
Demo安装包
[apk download](CardSlidePanel.apk) (就在thisProj工程之中)
License
Copyright 2016, xmuSistone
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.
*Note that all licence references and agreements mentioned in the CardSlidePanel README section above
are relevant to that project's source code only.