Newer
Older
MonCalc / app / src / main / res / layout / fragment_analyze_fruit.xml
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <data>

        <variable
            name="fruitAnalyzeViewModel"
            type="jackall.moncalc.viewmodel.FruitAnalyzeViewModel" />
    </data>

    <android.support.constraint.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.github.mikephil.charting.charts.PieChart
            android:id="@+id/fruit_pie_chart"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fruitPieChart="@{fruitAnalyzeViewModel.pieData}" />

    </android.support.constraint.ConstraintLayout>
</layout>