<?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/apk/res/android"> <data> <variable name="templeAnalyzeViewModel" type="jackall.moncalc.viewmodel.TempleAnalyzeViewModel" /> </data> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <com.github.mikephil.charting.charts.PieChart android:layout_width="match_parent" android:layout_height="match_parent" android:pieChart="@{templeAnalyzeViewModel.pieData}" /> </android.support.constraint.ConstraintLayout> </layout>