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 6 <com.github.mikephil.charting.charts.LineChart 7 android:id="@+id/chart1" 8 android:layout_width="match_parent" 9 android:layout_height="match_parent" 10 android:layout_above="@+id/seekBar1" /> 11 12 <SeekBar 13 android:id="@+id/seekBar1" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:layout_marginBottom="8dp" 17 android:max="1500" 18 android:layout_alignParentBottom="true" 19 android:layout_marginLeft="8dp" 20 android:layout_marginTop="8dp" 21 android:layout_toLeftOf="@+id/tvXMax"/> 22 23 <TextView 24 android:id="@+id/tvXMax" 25 android:layout_width="50dp" 26 android:layout_height="wrap_content" 27 android:layout_alignParentRight="true" 28 android:text="@string/dash" 29 android:layout_marginBottom="15dp" 30 android:layout_marginRight="10dp" 31 android:gravity="right" 32 android:layout_alignParentBottom="true" 33 android:textAppearance="?android:attr/textAppearanceMedium" /> 34 35</RelativeLayout> 36