Sfoglia il codice sorgente

[공통][Common] 리싸이클러뷰 nestedScrollEnabled API 대응

Hasemi 7 anni fa
parent
commit
ef65a8eb1a

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

@@ -84,6 +84,7 @@ public class CustomListicleImageView extends ConstraintLayout {
     imageViewNextPage = findViewById(R.id.image_view_next_page);
 
     recyclerView = findViewById(R.id.recycler_view_listicle_view);
+    recyclerView.setNestedScrollingEnabled(false);
 
     SnapHelper snapHelper = new PagerSnapHelper();
     snapHelper.attachToRecyclerView(recyclerView);

+ 1 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/faq/MyFAQFragment.java

@@ -55,6 +55,7 @@ public class MyFAQFragment extends FragmentBase<MyFAQPresenter> implements IMyFa
         outRect.bottom = ResourceUtil.dpToPx(12);
       }
     });
+    myFAQList.setNestedScrollingEnabled(false);
     viewNoQuestion = findViewById(R.id.layout_my_faq_none);
     viewRequestNotification = findViewById(R.id.text_view_my_faq_notice);
     viewRequestNotification.setOnClickListener(v -> presenter.onEvent(new Event.Builder(Event.CLICK).build()));

+ 4 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/search/SearchFragment.java

@@ -78,7 +78,7 @@ public class SearchFragment extends FragmentBase<SearchPresenter> implements ISe
     containerLatestTag = findViewById(R.id.container_latest_search_tag);
     containerPopularTag = findViewById(R.id.container_popular_tag);
     containerAutoCompletion = findViewById(R.id.container_auto_completion);
-    recyclerViewLatestTag = findViewById(R.id.recycler_view_latest_tage);
+    recyclerViewLatestTag = findViewById(R.id.recycler_view_latest_tag);
     recyclerViewPopularTag = findViewById(R.id.recycler_view_popular_tag);
     recyclerViewAutoCompletion = findViewById(R.id.recycler_view_auto_completion);
 
@@ -86,6 +86,9 @@ public class SearchFragment extends FragmentBase<SearchPresenter> implements ISe
     recyclerViewPopularTag.setLayoutManager(new LinearLayoutManager(getContext()));
     recyclerViewAutoCompletion.setLayoutManager(new LinearLayoutManager(getContext()));
 
+    recyclerViewLatestTag.setNestedScrollingEnabled(false);
+    recyclerViewPopularTag.setNestedScrollingEnabled(false);
+
     editSearch.addTextChangedListener(new TextWatcher() {
       @Override
       public void beforeTextChanged(CharSequence s, int start, int count, int after) { }

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

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

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

@@ -57,7 +57,6 @@
       android:layout_marginEnd="25dp"
       android:divider="@color/CFFFFFF"
       android:dividerHeight="50dp"
-      android:nestedScrollingEnabled="false"
       app:layout_constraintBottom_toTopOf="@+id/layout_my_faq_notice"
       app:layout_constraintEnd_toEndOf="parent"
       app:layout_constraintStart_toStartOf="parent"

+ 1 - 3
app/src/main/res/layout/fragment_search.xml

@@ -96,10 +96,9 @@
           app:layout_constraintTop_toTopOf="parent"/>
 
         <android.support.v7.widget.RecyclerView
-          android:id="@+id/recycler_view_latest_tage"
+          android:id="@+id/recycler_view_latest_tag"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
-          android:nestedScrollingEnabled="false"
           android:paddingTop="4dp"
           app:layout_constraintTop_toBottomOf="@+id/text_latest_tag"/>
 
@@ -130,7 +129,6 @@
           android:id="@+id/recycler_view_popular_tag"
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
-          android:nestedScrollingEnabled="false"
           android:paddingTop="4dp"
           app:layout_constraintBottom_toBottomOf="parent"
           app:layout_constraintTop_toBottomOf="@+id/text_popular_tag"/>