效果图
功能自定义卡片的堆叠效果
自定义卡片移除动画
支持加载更多
使用方式
gradle dependency// 1. Add it in your root build.gradle at the end of repositories:allprojects {
repositories { ...
maven { url 'https://jitpack.io' }
}
}// 2. Add the dependency in your app/build.gradledependencies {
compile 'com.github.fashare2015:StackLayout:1.0.0'}
xml布局父布局使用clipChildren="false", 使之能全屏拖动
... android:clipChildren="false">
android:layout_width="match_parent"
android:layout_height="500dp"/>
Adapter
用法基本同RecyclerView,不赘述。mStackLayout = (StackLayout) findViewById(R.id.stack_layout);