DiscreteScrollView
- https://github.com/yarolegovich/DiscreteScrollView
- Java
- 100
- 2025-04-05T08:19:09Z
- 33353
- 5791
- 94
- 784
A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
介绍:
一个用RecyclerView实现的画廊效果,被选中item居中放大,效果很自然。
运行效果:
使用说明:
dependencies
compile 'com.yarolegovich:discrete-scrollview:1.0.3'
xml
<com.yarolegovich.discretescrollview.DiscreteScrollView
android:id="@+id/picker"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
设置adapter
DiscreteScrollView scrollView = findViewById(R.id.picker);
scrollView.setAdapter(new YourAdapterImplementation());
发表评论
已下载
0