GraphView is a Graph Library for creating zoomable and scrollable line and bar graphs.
we convert .jar file to .DLL file for use in xamarin native android.
for more information: Binding a .JAR
-
first import GraphViewJarBinding.DLL file to your project references
-
add this code to your xml layout:
<com.jjoe64.graphview.GraphView
android:id="@+id/graphView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
- and then use graphView throughout the project:
GraphView graphView = FindViewById<GraphView>(Resource.Id.graphView);