yangchong211 / ycscrollpager Goto Github PK
View Code? Open in Web Editor NEW仿抖音,快手,短视频,竖直方向,一次滚动一个页面的封装库。目前支持ViewPager做法,也支持RecyclerView做法……使用ViewPager则只是修改滑动速率,以及滚动翻页过渡时间;使用recyclerView打造丝滑切换视频的功能,更多内容可以看demo
License: Apache License 2.0
仿抖音,快手,短视频,竖直方向,一次滚动一个页面的封装库。目前支持ViewPager做法,也支持RecyclerView做法……使用ViewPager则只是修改滑动速率,以及滚动翻页过渡时间;使用recyclerView打造丝滑切换视频的功能,更多内容可以看demo
License: Apache License 2.0
希望能加上切换页面,视频自动播放功能
PagerLayoutManager layoutManager = new PagerLayoutManager(this, OrientationHelper.VERTICAL);
layoutManager.setOnViewPagerListener(new OnPagerListener() {
@OverRide
public void onInitComplete() {
startPlay(0);
}
@Override
public void onPageRelease(boolean isNext, int position) {
}
@Override
public void onPageSelected(int position, boolean isBottom) {
// 问题说明:滑到动RecycleView的最后一页时 position边为了0
if (position == mCurPos) return;
startPlay(position);
}
});
Fragment already added:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.