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

223 lines
9.9 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-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
<LinearLayout
android:layout_width="match_parent"
2016-08-08 14:47:24 +02:00
android:layout_height="wrap_content"
android:orientation="horizontal">
<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"
android:textSize="80dp"
android:textStyle="bold" />
2016-06-12 13:30:34 +02: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"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/overview_timeago"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_weight="0.5"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/overview_apsmode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_weight="0.5"
android:background="@drawable/loopmodeborder"
android:gravity="center_vertical|center_horizontal"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceSmall" />
</LinearLayout>
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
<TextView
2016-08-08 14:47:24 +02:00
android:id="@+id/overview_runningtemp"
2016-06-26 11:43:26 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-08-08 14:47:24 +02:00
android:layout_marginLeft="10dp"
2016-08-05 00:32:48 +02:00
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-06-26 11:43:26 +02:00
2016-11-10 21:00:50 +01:00
<LinearLayout
2016-11-10 23:17:28 +01:00
android:layout_width="match_parent"
2016-11-10 21:00:50 +01:00
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/overview_basebasal"
2016-11-10 23:17:28 +01:00
android:layout_weight="0.5"
2016-11-10 21:00:50 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/overview_activeprofile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-11-10 23:17:28 +01:00
android:layout_weight="0.5"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:layout_marginRight="10dp"
2016-11-10 21:00:50 +01:00
android:textColor="@color/colorProfileSwitchButton"
2016-11-10 23:17:28 +01:00
android:gravity="center_vertical|center_horizontal"
android:background="@drawable/pillborder"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-11-10 21:00:50 +01:00
</LinearLayout>
2016-06-26 11:43:26 +02:00
</LinearLayout>
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:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceSmall" />
2016-08-08 14:47:24 +02:00
<com.jjoe64.graphview.GraphView
android:id="@+id/overview_bggraph"
android:layout_width="match_parent"
android:layout_height="160dip" />
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"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
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
android:id="@+id/overview_canceltemp"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
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
android:id="@+id/overview_treatment"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="@string/overview_bolus_label"
android:textColor="@color/colorTreatmentButton" />
<Button
android:id="@+id/overview_wizard"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="@string/overview_calculator_label"
android:textColor="@color/colorWizardButton" />
</LinearLayout>
2016-10-20 23:50:31 +02:00
<LinearLayout
android:id="@+id/overview_quickwizardlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<Button
android:id="@+id/overview_quickwizard"
style="?android:attr/buttonStyle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="3dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="3dp"
android:layout_weight="0.5"
android:text="Quick wizard"
android:textColor="@color/colorCancelTempButton"
android:drawableLeft="@drawable/bread" />
</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>