AndroidAPS/app/src/main/res/layout/overview_fragment.xml

125 lines
4.6 KiB
XML
Raw Normal View History

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="info.nightscout.androidaps.plugins.Overview.OverviewFragment">
2016-06-09 00:01:28 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="match_parent"
android:orientation="vertical">
2016-06-09 00:01:28 +02:00
2016-06-12 13:30:34 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal">
2016-06-12 13:30:34 +02:00
<TextView
android:id="@+id/overview_bg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left|top"
2016-06-20 22:55:49 +02:00
android:textSize="80dp"
android:textStyle="bold" />
2016-06-12 13:30:34 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
2016-06-20 20:45:55 +02:00
android:layout_marginTop="10dp"
android:orientation="vertical">
2016-06-12 13:30:34 +02:00
<TextView
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_timeago"
2016-06-12 13:30:34 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-06-20 20:45:55 +02:00
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-06-12 13:30:34 +02:00
<TextView
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_delta"
2016-06-12 13:30:34 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-06-20 20:45:55 +02:00
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-06-12 13:30:34 +02:00
</LinearLayout>
</LinearLayout>
2016-06-09 00:01:28 +02:00
<com.jjoe64.graphview.GraphView
android:id="@+id/overview_bggraph"
android:layout_width="match_parent"
android:layout_height="160dip" />
<LinearLayout
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_canceltemplayout"
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/overview_canceltemp"
2016-06-20 20:45:55 +02:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
2016-06-20 20:45:55 +02:00
android:layout_weight="0.5"
android:background="@color/colorCancelTempButton"
android:text="Cancel temp basal" />
</LinearLayout>
<LinearLayout
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_settemplayout"
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_settempbasal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
2016-06-20 20:45:55 +02:00
android:layout_weight="0.5"
android:background="@color/colorSetTempButton"
android:text="TempBasal" />
<Button
2016-06-20 20:45:55 +02:00
android:id="@+id/overview_extendedbolus"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
2016-06-20 20:45:55 +02:00
android:layout_margin="10dp"
android:layout_weight="0.5"
android:background="@color/colorSetExtendedButton"
android:text="Extended Bolus" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/overview_treatment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_weight="0.5"
android:background="@color/colorTreatmentButton"
android:text="@string/overview_treatment_label" />
<Button
android:id="@+id/overview_wizard"
2016-06-20 20:45:55 +02:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
2016-06-20 20:45:55 +02:00
android:layout_weight="0.5"
android:background="@color/colorWizardButton"
android:text="@string/overview_calculator_label" />
</LinearLayout>
2016-06-20 20:45:55 +02:00
2016-06-09 00:01:28 +02:00
</LinearLayout>
</FrameLayout>