0
RecyclerView 및 스크롤보기에서 스크롤하려는보기에서이 스크롤은보기에서만 작동하지만 RecyclerView를 스크롤하거나 RecyclerView를 숨기지 않습니다. 중첩 된 scrollview를 사용하고 있지만 작동하지 않습니다.동시에 스크롤보기와 RecyclerView
하나의 레이아웃처럼 스크롤보기와 RecyclerView가 스크롤됩니다. 여기
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:id="@+id/scrol"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/topRl5"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="visible">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/nested_scrol"
android:orientation="vertical"
android:visibility="visible">
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chart1"
android:layout_width="match_parent"
android:layout_height="@dimen/_300sdp"
android:layout_below="@+id/weekly_summary"
android:visibility="visible" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@color/grey_light"
android:gravity="center"
android:padding="@dimen/_5sdp"
android:text="تفصیلی رپورٹ"
android:textSize="@dimen/_15sdp" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/daily_earning_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/scrol"
android:visibility="visible">
<include
layout="@layout/weekly_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
</RelativeLayout>
내가 메인 클래스에 포함 내 RecyclerView입니다
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:showIn="@layout/activity_barchart"
tools:context=".guaranteeDetails.baarChart.BarChartActivity">
<android.support.v7.widget.RecyclerView
android:id="@+id/weekly_recycler_view"
android:layout_marginRight="@dimen/_4sdp"
android:layout_marginLeft="@dimen/_4sdp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
나는 이미 이것을 사용하고있다 – ahmad
당신의 recyclerview는 어디에 있니? – Nero
질문 업데이트 – ahmad