MPAndroid图表ZOM ImageView和轴Togheter

时间:2018-07-25 15:01:20

标签: android zoom axis mpandroidchart image-zoom

我有两个组成部分: -PhotoView(图像视图的扩展,使我可以缩放) -Mpandroid图表。

我需要在图像上设置轴,并且在缩放图像时,轴需要缩放。 图像视图位于MPAndroid图表的LineChart上方的“相对布局”中。

我该怎么办?

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="it.a3fedin.myapplication1.LineChartActivity3">


    <com.github.chrisbanes.photoview.PhotoView
        android:id="@+id/imageViewX"
        android:layout_width="400dp"
        android:layout_height="400dp"
        android:elevation="5dp"
        app:srcCompat="@mipmap/ic_launcher" />

    <com.github.mikephil.charting.charts.LineChart
        android:id="@+id/chart_ma"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="7"
        android:elevation="1dp"
        android:visibility="visible">

    </com.github.mikephil.charting.charts.LineChart>

</RelativeLayout>

0 个答案:

没有答案
相关问题