我正在使用MPAndroidChart库,我想将图表放在SwipeRefreshLayout中,但是不可能通过捏住屏幕来缩放它。 有什么建议如何解决这个问题?
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ReadingsChartFragment">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/readings_chart_swiperefresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/readings_chart"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
</FrameLayout>