瀏覽代碼

[메인][Common] 콘텐츠 상세 nestedscrollenabled false 처리

Hasemi 7 年之前
父節點
當前提交
61fff80573

+ 3 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/contents/CustomListicleImageView.java

@@ -57,6 +57,8 @@ public class CustomListicleImageView extends ConstraintLayout {
     textViewTitleNumber = findViewById(R.id.text_view_title_number);
     textViewTitle = findViewById(R.id.text_view_title);
     textViewSubTitle = findViewById(R.id.text_view_sub_title);
+    recyclerView = findViewById(R.id.recycler_view_listicle_view);
+
 
     textViewTitleNumber.setText("05");
     textViewTitle.setText("Title");
@@ -65,8 +67,7 @@ public class CustomListicleImageView extends ConstraintLayout {
     textViewCurrentPage.setText("1");
     textViewTotalPage.setText(String.valueOf(textImageBeanList.size()));
 
-    recyclerView = findViewById(R.id.recycler_view_listicle_view);
-    Snapper snapper = new Snapper(recyclerView, 400);
+    Snapper snapper = new Snapper(recyclerView, 800);
     snapper.attachToRecyclerView(recyclerView);
     LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false);
     recyclerView.setLayoutManager(linearLayoutManager);

+ 1 - 1
app/src/main/res/layout/custom_listicle_image_view.xml

@@ -10,7 +10,7 @@
     android:id="@+id/recycler_view_listicle_view"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="horizontal">
+    android:nestedScrollingEnabled="false">
 
   </android.support.v7.widget.RecyclerView>
 

+ 0 - 1
app/src/main/res/layout/custom_listicle_image_view_item.xml

@@ -13,5 +13,4 @@
     android:scaleType="centerCrop"
     android:src="@color/C666666"/>
 
-
 </android.support.constraint.ConstraintLayout>