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

413 lines
18 KiB
XML
Raw Normal View History

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-04-22 10:09:54 +02:00
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.plugins.Overview.OverviewFragment">
2016-08-08 14:47:24 +02:00
<ScrollView
2016-06-09 00:01:28 +02:00
android:layout_width="match_parent"
2016-08-08 14:47:24 +02:00
android:layout_height="match_parent">
2016-06-09 00:01:28 +02:00
2016-06-12 13:30:34 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-11-12 20:37:16 +01:00
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:orientation="vertical">
2016-06-12 13:30:34 +02:00
2016-12-05 15:20:44 +01:00
<android.support.v7.widget.RecyclerView
android:id="@+id/overview_notifications"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v7.widget.RecyclerView>
2016-12-29 00:12:52 +01:00
<LinearLayout
2017-02-19 19:15:14 +01:00
android:id="@+id/overview_looplayout"
2016-12-29 00:12:52 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-01-19 19:21:25 +01:00
android:orientation="horizontal"
2016-12-29 00:12:52 +01:00
android:paddingTop="2dp">
<TextView
android:id="@+id/overview_apsmode"
android:layout_width="wrap_content"
2016-12-29 14:23:05 +01:00
android:layout_height="match_parent"
2017-01-17 21:28:57 +01:00
android:layout_marginLeft="10dp"
2016-12-29 00:12:52 +01:00
android:layout_marginRight="10dp"
2017-02-19 19:15:14 +01:00
android:layout_weight="0.1"
2016-12-29 00:12:52 +01:00
android:background="@drawable/loopmodeborder"
android:gravity="center_vertical|center_horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="Open Loop"
2017-02-19 19:15:14 +01:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-12-29 00:12:52 +01:00
<TextView
android:id="@+id/overview_activeprofile"
2017-01-16 20:47:57 +01:00
android:layout_width="wrap_content"
2016-12-29 00:12:52 +01:00
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginRight="10dp"
2017-01-19 19:21:25 +01:00
android:layout_weight="0.5"
2016-12-29 00:12:52 +01:00
android:background="@drawable/pillborder"
android:gravity="center_vertical|center_horizontal"
2017-01-16 20:47:57 +01:00
android:paddingLeft="10dp"
android:paddingRight="10dp"
2017-01-19 19:21:25 +01:00
android:text="Profile"
2017-01-16 20:47:57 +01:00
android:textAppearance="?android:attr/textAppearanceMedium"
2017-01-19 19:21:25 +01:00
android:textColor="@color/colorProfileSwitchButton" />
2017-01-16 20:47:57 +01:00
<TextView
android:id="@+id/overview_temptarget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginRight="10dp"
2017-02-19 19:15:14 +01:00
android:layout_weight="0.2"
2017-01-16 20:47:57 +01:00
android:background="@drawable/temptargetborder"
android:gravity="center_vertical|center_horizontal"
2016-12-29 00:12:52 +01:00
android:paddingLeft="10dp"
android:paddingRight="10dp"
2017-02-19 19:15:14 +01:00
android:text="TempTarget"
2016-12-29 00:12:52 +01:00
android:textAppearance="?android:attr/textAppearanceMedium"
2017-02-19 19:15:14 +01:00
android:textColor="@color/mdtp_white" />
2016-12-29 00:12:52 +01:00
</LinearLayout>
2017-01-19 19:21:25 +01:00
<LinearLayout
2017-02-19 19:15:14 +01:00
android:id="@+id/overview_pumpstatuslayout"
2017-01-19 19:21:25 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingTop="2dp">
<TextView
2017-02-19 19:15:14 +01:00
android:id="@+id/overview_pumpstatus"
2017-01-19 19:21:25 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-02-19 19:15:14 +01:00
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
2017-04-24 13:17:14 +02:00
android:background="@drawable/initializingborder"
android:gravity="center_vertical|center_horizontal"
2017-01-19 19:21:25 +01:00
android:text="@string/initializing"
2017-02-19 19:15:14 +01:00
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-12-29 00:12:52 +01:00
</LinearLayout>
2016-06-12 13:30:34 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-08-08 14:47:24 +02:00
android:layout_height="wrap_content"
2017-02-19 19:15:14 +01:00
android:gravity="center_horizontal"
android:orientation="horizontal">
2016-08-08 14:47:24 +02:00
<TextView
android:id="@+id/overview_bg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|left"
android:gravity="center_vertical"
android:text="00.0"
2016-12-28 22:38:22 +01:00
android:textSize="70dp"
2016-08-08 14:47:24 +02:00
android:textStyle="bold" />
2016-06-12 13:30:34 +02:00
2016-12-27 20:41:28 +01:00
<TextView
android:id="@+id/overview_arrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|left"
2017-01-19 19:21:25 +01:00
android:layout_marginTop="-15dp"
2016-12-27 20:41:28 +01:00
android:gravity="center_vertical"
android:paddingLeft="-5dp"
2016-12-28 23:48:43 +01:00
android:paddingRight="-10dp"
2016-12-27 20:41:28 +01:00
android:text="→"
2016-12-29 00:12:52 +01:00
android:textSize="70dp"
2017-01-19 19:21:25 +01:00
android:textStyle="bold" />
2016-12-27 20:41:28 +01:00
2016-06-26 11:43:26 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-11-12 20:37:16 +01:00
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:layout_gravity="top"
android:layout_marginTop="10dp"
2016-12-27 20:41:28 +01:00
android:gravity="top"
2016-08-08 14:47:24 +02:00
android:orientation="vertical">
2016-12-29 00:12:52 +01:00
<TextView
android:id="@+id/overview_timeago"
2016-08-08 14:47:24 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-12-29 00:12:52 +01:00
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-06-26 11:43:26 +02:00
<TextView
2016-08-08 14:47:24 +02:00
android:id="@+id/overview_delta"
2016-06-26 11:43:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
2016-08-05 00:32:48 +02:00
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-06-26 11:43:26 +02:00
2016-12-28 22:38:22 +01:00
<TextView
android:id="@+id/overview_avgdelta"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
2017-01-08 12:04:42 +01:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-12-28 22:38:22 +01:00
2016-12-27 20:41:28 +01:00
</LinearLayout>
2016-06-26 11:43:26 +02:00
2016-12-27 20:41:28 +01:00
</LinearLayout>
2016-11-10 21:00:50 +01:00
2016-12-27 20:41:28 +01:00
<LinearLayout
2017-01-19 19:21:25 +01:00
android:id="@+id/overview_basallayout"
2016-12-27 20:41:28 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="horizontal">
<TextView
android:id="@+id/overview_runningtemp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textStyle="normal|bold" />
<TextView
android:layout_width="20dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/overview_basebasal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-12 13:30:34 +02:00
</LinearLayout>
2016-08-08 14:47:24 +02:00
<TextView
android:id="@+id/overview_iob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:textAppearance="?android:attr/textAppearanceSmall" />
<LinearLayout
2016-08-08 14:47:24 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-08 23:10:27 +01:00
2017-04-24 13:17:14 +02:00
<LinearLayout
2017-01-08 23:10:27 +01:00
android:layout_width="wrap_content"
2017-04-24 13:17:14 +02:00
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<com.jjoe64.graphview.GraphView
android:id="@+id/overview_bggraph"
android:layout_width="wrap_content"
android:layout_height="160dip" />
<RelativeLayout
android:id="@+id/overview_iobgraphlayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.jjoe64.graphview.GraphView
android:id="@+id/overview_iobgraph"
android:layout_width="wrap_content"
android:layout_height="80dip" />
</RelativeLayout>
</LinearLayout>
2017-04-22 10:09:54 +02:00
<LinearLayout
2017-04-22 10:09:54 +02:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
2017-04-26 23:45:40 +02:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/predictionshortlabel"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/prediction"
android:textStyle="bold" />
<CheckBox
android:id="@+id/overview_showprediction"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-26 23:45:40 +02:00
android:layout_marginBottom="-5dp"
android:layout_marginTop="-9dp"
app:buttonTint="@color/prediction" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/basalshortlabel"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/basal"
android:textStyle="bold" />
<CheckBox
android:id="@+id/overview_showbasals"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-26 23:45:40 +02:00
android:layout_marginBottom="-5dp"
android:layout_marginTop="-9dp"
app:buttonTint="@color/basal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/iob"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/iob"
android:textStyle="bold" />
2017-04-24 13:17:14 +02:00
<CheckBox
android:id="@+id/overview_showiob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-26 23:45:40 +02:00
android:layout_marginBottom="-5dp"
android:layout_marginTop="-9dp"
app:buttonTint="@color/iob" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/cob"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="@color/cob"
android:textStyle="bold" />
2017-04-24 13:17:14 +02:00
<CheckBox
android:id="@+id/overview_showcob"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-04-26 23:45:40 +02:00
android:layout_marginBottom="-5dp"
android:layout_marginTop="-9dp"
app:buttonTint="@color/cob" />
</LinearLayout>
</LinearLayout>
2016-06-26 11:43:26 +02:00
2016-08-08 14:47:24 +02:00
<LinearLayout
android:id="@+id/overview_accepttemplayout"
android:layout_width="match_parent"
2016-06-26 11:43:26 +02:00
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:orientation="horizontal">
2016-06-26 11:43:26 +02:00
2016-08-08 14:47:24 +02:00
<Button
android:id="@+id/overview_accepttempbutton"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
2017-02-10 16:53:39 +01:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2016-08-08 14:47:24 +02:00
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="Accept new temp\n0.25U/h"
android:textColor="@color/colorAcceptTempButton" />
</LinearLayout>
2016-08-08 14:47:24 +02:00
<LinearLayout
android:id="@+id/overview_canceltemplayout"
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:orientation="horizontal">
2016-08-08 14:47:24 +02:00
<Button
2017-04-22 10:09:54 +02:00
android:id="@+id/overview_canceltempbutton"
2016-08-08 14:47:24 +02:00
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
2017-02-10 16:53:39 +01:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2016-08-08 14:47:24 +02:00
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="Cancel temp basal"
android:textColor="@color/colorCancelTempButton" />
2016-08-08 14:47:24 +02:00
</LinearLayout>
2016-08-08 14:47:24 +02:00
<LinearLayout
android:layout_width="match_parent"
2016-06-20 20:45:55 +02:00
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:orientation="horizontal">
2016-06-20 20:45:55 +02:00
2016-08-08 14:47:24 +02:00
<Button
2017-04-22 10:09:54 +02:00
android:id="@+id/overview_treatmentbutton"
2016-08-08 14:47:24 +02:00
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
2017-02-10 16:53:39 +01:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2016-08-08 14:47:24 +02:00
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="@string/overview_bolus_label"
android:textColor="@color/colorTreatmentButton" />
<Button
2017-04-22 10:09:54 +02:00
android:id="@+id/overview_wizardbutton"
2016-08-08 14:47:24 +02:00
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
2017-02-10 16:53:39 +01:00
android:layout_marginLeft="0dp"
android:layout_marginRight="5dp"
2016-08-08 14:47:24 +02:00
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="@string/overview_calculator_label"
android:textColor="@color/colorWizardButton" />
2017-02-10 16:53:39 +01:00
<Button
2017-04-22 10:09:54 +02:00
android:id="@+id/overview_calibrationbutton"
2017-02-10 16:53:39 +01:00
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="0dp"
android:layout_marginRight="5dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="@string/overview_calibration"
android:textColor="@color/colorCalibrationButton" />
2016-08-08 14:47:24 +02:00
</LinearLayout>
2016-10-20 23:50:31 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
2017-04-22 10:09:54 +02:00
android:id="@+id/overview_quickwizardbutton"
2016-10-20 23:50:31 +02:00
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
2017-02-10 16:53:39 +01:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2016-10-20 23:50:31 +02:00
android:layout_marginTop="3dp"
android:layout_weight="0.5"
2016-12-27 20:41:28 +01:00
android:drawableLeft="@drawable/bread"
2016-10-20 23:50:31 +02:00
android:text="Quick wizard"
2016-12-27 20:41:28 +01:00
android:textColor="@color/colorCancelTempButton" />
2016-10-20 23:50:31 +02:00
</LinearLayout>
2016-08-08 14:47:24 +02:00
</LinearLayout>
2016-06-20 20:45:55 +02:00
2016-08-08 14:47:24 +02:00
</ScrollView>
2016-06-09 00:01:28 +02:00
</FrameLayout>