https://github.com/xiepeijie/SwipeCardView
一个带渐变层叠动画的左右滑动效果(类似于探探、tinder)

<com.lorentzos.flingswipe.SwipeFlingAdapterView
android:id="@+id/swipe_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
swipe:min_adapter_stack="4"
swipe:max_visible="4"
swipe:y_offset_step="28dp"/>
swipe:y_offset_step="-28dp" 负的上面偏移
Java Code:
核心用法(即AdapterView的用法)
swipeView = (SwipeFlingAdapterView) findViewById(R.id.swipe_view);
//swipeView.setIsNeedSwipe(true);// 是否开启swipe滑动效果,当不调用此方法设置时,默认开启。
swipeView.setFlingListener(this);
swipeView.setOnItemClickListener(this);
onFlingListener的回调方法
598



被折叠的 条评论
为什么被折叠?



