Skip to content

Commit

Permalink
新增·滑动冲突Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecurl committed Dec 29, 2019
1 parent 411093b commit f17f3b9
Show file tree
Hide file tree
Showing 64 changed files with 1,960 additions and 6 deletions.
116 changes: 116 additions & 0 deletions RecyclerViewDemo/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions RecyclerViewDemo/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions RecyclerViewDemo/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions RecyclerViewDemo/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions RecyclerViewDemo/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cn.edu.recyclerviewdemo;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
Expand Down Expand Up @@ -64,15 +65,14 @@ public void onClick(View v) {
return holder;
}

@SuppressLint("SetTextI18n")
@Override
public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) {
// 数据与视图之间进行绑定
if (viewHolder instanceof ViewHolder){
viewHolder.videoname.setText("视频"+position);
viewHolder.videoview.setVideoURI(Uri.parse(mVideoPathList.get(position)));
viewHolder.videoview.seekTo(10);
viewHolder.videoview.pause();
}
viewHolder.videoname.setText("视频"+position);
viewHolder.videoview.setVideoURI(Uri.parse(mVideoPathList.get(position)));
viewHolder.videoview.seekTo(10);
viewHolder.videoview.pause();
}

@Override
Expand Down
Binary file added SlidingConflictDemo.zip
Binary file not shown.
14 changes: 14 additions & 0 deletions SlidingConflictDemo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
116 changes: 116 additions & 0 deletions SlidingConflictDemo/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions SlidingConflictDemo/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions SlidingConflictDemo/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions SlidingConflictDemo/.idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions SlidingConflictDemo/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
Loading

0 comments on commit f17f3b9

Please sign in to comment.