307 lines
13 KiB
XML
307 lines
13 KiB
XML
<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">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="2dp">
|
|
|
|
<TextView
|
|
android:id="@+id/overview_apsmode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@drawable/loopmodeborder"
|
|
android:gravity="center_vertical|center_horizontal"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="Open Loop"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:layout_weight="0.1" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/overview_activeprofile"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_weight="0.5"
|
|
android:background="@drawable/pillborder"
|
|
android:gravity="center_vertical|center_horizontal"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="Profile"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="@color/colorProfileSwitchButton" />
|
|
|
|
<TextView
|
|
android:id="@+id/overview_temptarget"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@drawable/temptargetborder"
|
|
android:gravity="center_vertical|center_horizontal"
|
|
android:text="TempTarget"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="@color/mdtp_white"
|
|
android:layout_weight="0.2" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="2dp">
|
|
|
|
<TextView
|
|
android:id="@+id/overview_initializing"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/initializingborder"
|
|
android:gravity="center_vertical|center_horizontal"
|
|
android:text="@string/initializing"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:layout_marginTop="10dp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_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="70dp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/overview_arrow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|left"
|
|
android:layout_marginTop="-15dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="-5dp"
|
|
android:paddingRight="-10dp"
|
|
android:text="→"
|
|
android:textSize="70dp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="top"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/overview_timeago"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_weight="0.5"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<TextView
|
|
android:id="@+id/overview_delta"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<TextView
|
|
android:id="@+id/overview_avgdelta"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/overview_basallayout"
|
|
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" />
|
|
|
|
</LinearLayout>
|
|
|
|
<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" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.jjoe64.graphview.GraphView
|
|
android:id="@+id/overview_bggraph"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="160dip" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/overview_showprediction"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentTop="true" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/overview_accepttemplayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/overview_canceltemplayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<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" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<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>
|
|
|
|
<LinearLayout
|
|
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:drawableLeft="@drawable/bread"
|
|
android:text="Quick wizard"
|
|
android:textColor="@color/colorCancelTempButton" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|