1<?xml version="1.0" encoding="utf-8"?> 2<RelativeLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent"> 6 7 <com.github.mikephil.charting.charts.LineChart 8 android:id="@+id/chart1" 9 android:layout_width="match_parent" 10 android:layout_height="match_parent" 11 android:layout_above="@+id/seekBar1" /> 12 13 <SeekBar 14 android:id="@+id/seekBar2" 15 android:layout_width="match_parent" 16 android:layout_height="wrap_content" 17 android:layout_alignParentBottom="true" 18 android:layout_alignParentLeft="true" 19 android:layout_margin="8dp" 20 android:layout_toLeftOf="@+id/tvYMax" 21 android:layout_marginRight="5dp" 22 android:max="150" 23 android:paddingBottom="12dp" /> 24 25 <SeekBar 26 android:id="@+id/seekBar1" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_above="@+id/seekBar2" 30 android:layout_margin="8dp" 31 android:layout_marginBottom="35dp" 32 android:layout_toLeftOf="@+id/tvXMax" 33 android:layout_marginRight="5dp" 34 android:max="500" 35 android:paddingBottom="12dp" /> 36 37 <TextView 38 android:id="@+id/tvXMax" 39 android:layout_width="50dp" 40 android:layout_height="wrap_content" 41 android:layout_alignBottom="@+id/seekBar1" 42 android:layout_alignParentRight="true" 43 android:text="@string/dash" 44 android:layout_marginBottom="15dp" 45 android:layout_marginRight="10dp" 46 android:gravity="right" 47 android:textAppearance="?android:attr/textAppearanceMedium" /> 48 49 <TextView 50 android:id="@+id/tvYMax" 51 android:layout_width="50dp" 52 android:layout_height="wrap_content" 53 android:layout_alignBottom="@+id/seekBar2" 54 android:layout_alignParentRight="true" 55 android:text="@string/dash" 56 android:layout_marginBottom="15dp" 57 android:layout_marginRight="10dp" 58 android:gravity="right" 59 android:textAppearance="?android:attr/textAppearanceMedium" /> 60 61</RelativeLayout> 62