最近学到画折线图,实现出来了,现在把代码贴出来,给大家点评,也给自己做个备忘
1,xml文件中:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background" >
<com.example.linechartdemo.ChartView
android:id="@+id/chartView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>