Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时显示多个item #21

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

Null8889
Copy link

能同时显示多个item吗

@ryanlijianchang
Copy link

java.lang.IndexOutOfBoundsException: Invalid index 30, size is 30
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.view.jameson.androidrecyclerviewcard.MainActivity.notifyBackgroundChange(MainActivity.java:83)
at com.view.jameson.androidrecyclerviewcard.MainActivity.access$000(MainActivity.java:22)
at com.view.jameson.androidrecyclerviewcard.MainActivity$1.onScrollStateChanged(MainActivity.java:72)

@bby0856
Copy link

bby0856 commented Dec 20, 2017

可以设置无论滑动多快,只滑动一个吗

@ryanlijianchang
Copy link

楼上可以看看这里 https://github.com/ryanlijianchang/Recyclerview-Gallery

@leoFengCT
Copy link

CardScaleHelper中两点改进建议:
1 CardScaleHelper中获取当前项mCurrentItemPos方法有点占用资源,
可以采用
int frist = ((LinearLayoutManager) mRecyclerView.getLayoutManager()).findFirstVisibleItemPosition();
int last = ((LinearLayoutManager) mRecyclerView.getLayoutManager()).findLastVisibleItemPosition();
获取第一个与最后一个显示项,再根据左移与右移确定那是current值,这样比自己记录与计算要省事;

2 缩放效果,也可直接根据frist 与last还有左右来缩小与还原。

@TennyQianghuacong
Copy link

TennyQianghuacong commented Oct 15, 2018

用了一下,实话说不怎么好用,小问题有点多

@541954852
Copy link

部分手机适配有问题,没有缩放的功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants