18702953620 / doudemo Goto Github PK
View Code? Open in Web Editor NEW仿抖音部分功能
仿抖音部分功能
左右2边有黑色的间距
垂直滚动上半部分不灵敏,必须长按才能滑动
Page2Activity 中希望的是视频点击就暂停,显示开始播放的imageView。现在是点击放大到全屏... 不知道该在哪里改啊....
page1 可以暂停?
activity_page2.xml
如果一直不停的滑动, 内存占用会一直增加吗?
你好,下拉刷新后获取到新的数据,设置到viewpager中数据不会更新这个要如何解决
Page2Activity中 如果当前页码为1, 轻微滑动固定后页码依然为1,那么 他依然会release
改前
View view = snapHelper.findSnapView(layoutManager);
recyclerView.getChildAdapterPosition(view);
JZVideoPlayer.releaseAllVideos();
RecyclerView.ViewHolder viewHolder = recyclerView.getChildViewHolder(view);
if (viewHolder != null && viewHolder instanceof VideoViewHolder) {
((VideoViewHolder) viewHolder).mp_video.startVideo();
}
改后
View view = snapHelper.findSnapView(layoutManager);
//当前固定后的item position
int tmpposition = recyclerView.getChildAdapterPosition(view);
if (position != tmpposition) { //如果当前position 和 上一次固定后的position 相同,说明是同一个,只不过滑动了一点点,然后又释放了
JZVideoPlayer.releaseAllVideos();
RecyclerView.ViewHolder viewHolder = recyclerView.getChildViewHolder(view);
if (viewHolder != null && viewHolder instanceof VideoViewHolder) {
((VideoViewHolder) viewHolder).mp_video.startVideo();
}
position = tmpposition;
}
第一次提这个 不知道格式对不.
能不能更新一下 饺子视频版本
看了源码没见点击事件,求你大佬指导~
各种崩溃
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.