这个地方怎么释放的是index位置而不是position位置?
@Override
public void onPageRelease(boolean isNext, int position) {
Log.e(TAG,"onPageRelease()......position = " + position + "-isNext = "+ isNext);
int index = 0;
if (isNext){
index = 0;
}else {
index = 1;
}
releaseVideo(index);
}
这个地方怎么释放的是index位置而不是position位置? @Override public void onPageRelease(boolean isNext, int position) { Log.e(TAG,"onPageRelease()......position = " + position + "-isNext = "+ isNext); int index = 0; if (isNext){ index = 0; }else { index = 1; } releaseVideo(index); }