Integrating the SpendingGraphView into an application is as simple as declaring it in your layout XML file, and providing it with some data points to render:
<com.packtpub.claim.widget.SpendingGraphView android:id="@+id/spendingGraphView" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:strokeWidth="2dp" app:strokeColor="@color/colorAccent" app:spendingPerDay="@{dataSource.spendingPerDay}"/>
You can also programmatically find the SpendingGraphView using findViewById, and invoke the setSpendingPerDay method from your Java code. Integrating the SpendingGraphView into the travel claim example is a little more complex. The graph belongs on the overview screen, since it gives ...