1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5 android:layout_margin="5dp" 6 android:background="@drawable/border" 7 android:visibility="gone"> 8 <com.github.mikephil.charting.charts.LineChart 9 android:id="@+id/chart" 10 android:layout_width="match_parent" 11 android:layout_height="match_parent" 12 android:layout_margin="10dp" 13 android:gravity="bottom" /> 14 <Button 15 android:id="@+id/button_close_chart" 16 android:layout_width="wrap_content" 17 android:layout_height="wrap_content" 18 android:layout_alignParentRight="true" 19 android:layout_alignParentTop="true" 20 android:tint="@color/button_tint" 21 android:layout_margin="5dp" 22 android:text="Close" /> 23</RelativeLayout> 24