|
|
@@ -135,21 +135,22 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
case MotionEvent.ACTION_DOWN:
|
|
|
case MotionEvent.ACTION_UP:
|
|
|
case MotionEvent.ACTION_MOVE:
|
|
|
+
|
|
|
+ boolean intercept = true;
|
|
|
/**
|
|
|
- * index 가 0 일 때 좌-> 우 드래그 시 false, index 가 끝일 때 좌<-우 드래그 시 false
|
|
|
+ * index 가 0 일 때 좌-> 우 드래그 시 false, index 가 끝일 때 좌<-우 드래그 시 false => 미사용
|
|
|
*/
|
|
|
- boolean intercept = true;
|
|
|
- if (currentIndex == 0) {
|
|
|
- if (direction.equals(DIRECTION_LEFT)) {
|
|
|
- intercept = false;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if (currentIndex == contentsLength - 1) {
|
|
|
- if (direction.equals(DIRECTION_RIGHT)) {
|
|
|
- intercept = false;
|
|
|
- }
|
|
|
- }
|
|
|
+// if (currentIndex == 0) {
|
|
|
+// if (direction.equals(DIRECTION_LEFT)) {
|
|
|
+// intercept = false;
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// if (currentIndex == contentsLength - 1) {
|
|
|
+// if (direction.equals(DIRECTION_RIGHT)) {
|
|
|
+// intercept = false;
|
|
|
+// }
|
|
|
+// }
|
|
|
rv.getParent().requestDisallowInterceptTouchEvent(intercept);
|
|
|
break;
|
|
|
default:
|