daimajia / daimajia/AndroidImageSlider

cannot disable prev scroll

Open
#398 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

how to disable prevscroll if the image in position 0 ??? , i have make this.
@Override
public void onPageSelected(int position) {
if (position == file_maps.size() - 1) {
masuk.setVisibility(View.VISIBLE);
} else {
masuk.setVisibility(View.GONE);
}
if (previousPosition == file_maps.size() - 1 && position == 0) {
imageslider.movePrevPosition(false);
return;
} else if (previousPosition == 0 && position == file_maps.size() - 1) {
imageslider.moveNextPosition(false);
return;
}
previousPosition = position;
}

but the prev scrool cannot disable, just scrol to position 4, but back to position 0 again, NOT DISABLE.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.