214 lines
8.2 KiB
XML
214 lines
8.2 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
tools:context="info.nightscout.androidaps.HistoryBrowseActivity">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/historybrowse_start"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:srcCompat="@drawable/ic_first_page_black_24dp" />
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/historybrowse_left"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:srcCompat="@drawable/ic_chevron_left_black_24dp" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/historybrowse_date"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text="Button" />
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/historybrowse_right"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:srcCompat="@drawable/ic_chevron_right_black_24dp" />
|
||
|
|
||
|
<ImageButton
|
||
|
android:id="@+id/historybrowse_end"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:srcCompat="@drawable/ic_last_page_black_24dp" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/historybrowse_zoom"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_weight="1"
|
||
|
android:text="24" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="center_horizontal"
|
||
|
android:orientation="horizontal"
|
||
|
android:paddingTop="5dp">
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showprediction"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:buttonTint="@color/prediction" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showprediction_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/predictionshortlabel"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textColor="@color/prediction"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showbasals"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:buttonTint="@color/basal" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showbasals_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/basalshortlabel"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textColor="@color/basal"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showiob"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:buttonTint="@color/iob" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showiob_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/iob"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textColor="@color/iob"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showcob"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:buttonTint="@color/cob" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showcob_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/cob"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textColor="@color/cob"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showdeviations"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:buttonTint="@color/deviations" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showdeviations_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/dev"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textColor="@color/deviations"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
<CheckBox
|
||
|
android:id="@+id/overview_showratios"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/overview_showratios_label"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:text="@string/ratio_short"
|
||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||
|
android:textStyle="bold" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<com.jjoe64.graphview.GraphView
|
||
|
android:id="@+id/historyybrowse_bggraph"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="160dip" />
|
||
|
|
||
|
<com.jjoe64.graphview.GraphView
|
||
|
android:id="@+id/historybrowse_iobgraph"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="100dp" />
|
||
|
|
||
|
<SeekBar
|
||
|
android:id="@+id/historybrowse_seekBar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<ScrollView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
<FrameLayout
|
||
|
android:id="@+id/historybrowse_apsresult"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content">
|
||
|
|
||
|
</FrameLayout>
|
||
|
|
||
|
</ScrollView>
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
</android.support.constraint.ConstraintLayout>
|