|
|
@@ -3,7 +3,9 @@ package kr.co.zumo.app.lifeplus.view.custom.contents;
|
|
|
import android.content.Context;
|
|
|
import android.support.constraint.ConstraintLayout;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
+import android.support.v7.widget.PagerSnapHelper;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
+import android.support.v7.widget.SnapHelper;
|
|
|
import android.util.AttributeSet;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.MotionEvent;
|
|
|
@@ -57,6 +59,9 @@ public class CustomListicleImageView extends ConstraintLayout {
|
|
|
layoutPager = findViewById(R.id.layout_pager);
|
|
|
|
|
|
recyclerView = findViewById(R.id.recycler_view_listicle_view);
|
|
|
+
|
|
|
+ SnapHelper snapHelper = new PagerSnapHelper();
|
|
|
+ snapHelper.attachToRecyclerView(recyclerView);
|
|
|
}
|
|
|
|
|
|
public CustomListicleImageView(Context context, AttributeSet attrs) {
|