MPAndroidChart如何在databinding中使用

<?xml version="1.0" encoding="utf-8"?>

<data>

</data>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <com.github.mikephil.charting.charts.LineChart
        android:id="@+id/chart1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/seekBar1" />

</LinearLayout>

public class Test{ public static void main(String[] args) { try { ThreadB tb =...

MPAndroidChart不能在xml里设置数据源,你只能在java代码里设置