<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.github.mikephil.charting.charts.CombinedChart
android:id="@+id/my_chart"
android:layout_centerInParent="true"
android:layout_width="match_parent"
android:layout_height="300dp"/>
<TextView
android:layout_width="wrap_content"
android:text="示例图"
android:layout_above="@+id/my_chart"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/show_text"
android:layout_width="wrap_content"
android:text="显示"
android:layout_marginRight="30dp"
android:layout_alignParentRight="true"
android:layout_above="@+id/my_chart"
android:layout_height="wrap_content"/>
</RelativeLayout>