2017-08-04 14:05:09 +02:00
|
|
|
<FrameLayout 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"
|
2019-02-28 23:16:50 +01:00
|
|
|
tools:context=".plugins.general.overview.OverviewFragment">
|
2017-08-04 14:05:09 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_above="@+id/overview_buttons"
|
|
|
|
android:fillViewport="true">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-09-18 18:41:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-05-16 13:57:37 +02:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2017-08-04 14:05:09 +02:00
|
|
|
android:id="@+id/overview_notifications"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2019-05-16 13:57:37 +02:00
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
2017-08-04 14:05:09 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_looplayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="2dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_apsmode"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingTop="3dp"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:text="Open Loop"
|
2018-06-05 13:24:48 +02:00
|
|
|
|
2017-08-04 14:05:09 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_activeprofile"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingTop="3dp"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:text="Profile"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_temptarget"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="TempTarget"
|
2018-06-05 13:24:48 +02:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingTop="3dp"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/mdtp_white" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_pumpstatuslayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="2dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_pumpstatus"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
2018-06-09 13:53:11 +02:00
|
|
|
android:paddingBottom="3dp"
|
|
|
|
android:paddingTop="3dp"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:gravity="center_vertical|center_horizontal"
|
|
|
|
android:text="@string/initializing"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-23 18:07:51 +01:00
|
|
|
android:baselineAligned="false"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:layout_weight="0"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
2019-12-23 18:07:51 +01:00
|
|
|
<LinearLayout
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
2017-08-04 14:05:09 +02:00
|
|
|
|
2019-12-23 18:07:51 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
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="center_vertical"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:text="00.0"
|
|
|
|
android:textSize="42sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_arrow"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginTop="-5dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:paddingStart="-2dp"
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
android:text="→"
|
|
|
|
android:textSize="28sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_timeago"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="-2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_delta"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginTop="-2dp"
|
|
|
|
android:paddingStart="2dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2017-08-04 14:05:09 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-23 18:07:51 +01:00
|
|
|
android:layout_width="wrap_content"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginTop="6dp"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
2019-12-23 18:07:51 +01:00
|
|
|
<LinearLayout
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:text="@string/iob"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="14dp"
|
|
|
|
android:text=""
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:text="@string/cob"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_cob"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:text=""
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:text="@string/basal_short"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_basebasal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:text="0.50U/h @17:35 1/30min - 0.40U/h"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginEnd="1dp"
|
|
|
|
android:text="AS"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="5dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=":"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensitivity"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:text=""
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
</LinearLayout>
|
2017-08-04 14:05:09 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-06-13 00:07:13 +02:00
|
|
|
<LinearLayout
|
2018-06-14 20:49:58 +02:00
|
|
|
android:id="@+id/overview_statuslights"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_canulaage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 16:51:29 +02:00
|
|
|
android:layout_weight="1"
|
2018-06-13 19:58:52 +02:00
|
|
|
android:gravity="center"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:text=""
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_insulinage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 16:51:29 +02:00
|
|
|
android:layout_weight="1"
|
2018-06-13 19:58:52 +02:00
|
|
|
android:gravity="center"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:text=""
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_reservoirlevel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 16:51:29 +02:00
|
|
|
android:layout_weight="1"
|
2018-06-13 19:58:52 +02:00
|
|
|
android:gravity="center"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:text=""
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_sensorage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 16:51:29 +02:00
|
|
|
android:layout_weight="1"
|
2018-06-13 19:58:52 +02:00
|
|
|
android:gravity="center"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:text=""
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
2018-06-14 20:49:58 +02:00
|
|
|
android:id="@+id/overview_batterylevel"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-26 16:51:29 +02:00
|
|
|
android:layout_weight="1"
|
2018-06-13 19:58:52 +02:00
|
|
|
android:gravity="center"
|
2018-06-13 00:07:13 +02:00
|
|
|
android:text=""
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-11-20 23:39:12 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_extendedbolus"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
|
|
android:textColor="@color/mdtp_white" />
|
|
|
|
|
2018-03-16 17:23:02 +01:00
|
|
|
<RelativeLayout
|
2018-04-21 10:50:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-12-23 18:07:51 +01:00
|
|
|
android:layout_height="match_parent"
|
2018-03-16 17:23:02 +01:00
|
|
|
android:layout_weight="1">
|
|
|
|
|
2018-04-21 10:50:55 +02:00
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_bggraph"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent" />
|
2018-03-16 17:23:02 +01:00
|
|
|
|
2018-04-21 10:50:55 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/overview_chartMenuButton"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
app:srcCompat="@drawable/ic_arrow_drop_down_white_24dp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/overview_iobcalculationprogess"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:textSize="15sp" />
|
2018-03-16 17:23:02 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2017-08-04 14:05:09 +02:00
|
|
|
|
2018-02-04 00:36:08 +01:00
|
|
|
<com.jjoe64.graphview.GraphView
|
|
|
|
android:id="@+id/overview_iobgraph"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:visibility="gone" />
|
2017-08-04 14:05:09 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_buttons"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/overview_accepttemplayout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-16 23:22:14 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="gone">
|
2017-08-04 14:05:09 +02:00
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2017-08-04 14:05:09 +02:00
|
|
|
android:id="@+id/overview_accepttempbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
2017-09-18 18:41:45 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:text="Accept new temp\n0.25U/h"
|
2017-08-16 23:22:14 +02:00
|
|
|
android:textColor="@color/colorAcceptTempButton" />
|
2017-08-04 14:05:09 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-04-21 10:50:55 +02:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingRight="5dp">
|
2017-08-04 14:05:09 +02:00
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2017-08-04 14:05:09 +02:00
|
|
|
android:id="@+id/overview_treatmentbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:drawableTop="@drawable/icon_insulin_carbs"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:text="@string/overview_treatment_label"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:textColor="@color/colorTreatmentButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2018-02-25 16:20:20 +01:00
|
|
|
android:id="@+id/overview_insulinbutton"
|
2017-08-04 14:05:09 +02:00
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:drawableTop="@drawable/icon_bolus"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:text="@string/overview_insulin_label"
|
|
|
|
android:textColor="@color/colorInsulinButton"
|
2017-08-04 14:05:09 +02:00
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2018-02-25 16:20:20 +01:00
|
|
|
android:id="@+id/overview_carbsbutton"
|
2018-02-15 21:00:09 +01:00
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_carbs"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:text="@string/overview_carbs_label"
|
|
|
|
android:textColor="@color/colorCarbsButton"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2018-02-25 16:20:20 +01:00
|
|
|
android:id="@+id/overview_wizardbutton"
|
2018-02-15 21:00:09 +01:00
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:drawableTop="@drawable/icon_calculator"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:text="@string/overview_calculator_label"
|
|
|
|
android:textColor="@color/colorCalculatorButton"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2017-08-04 14:05:09 +02:00
|
|
|
android:id="@+id/overview_calibrationbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_calibration"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/overview_calibration"
|
|
|
|
android:textColor="@color/colorCalibrationButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2018-02-15 21:00:09 +01:00
|
|
|
android:id="@+id/overview_cgmbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
2018-02-25 15:45:43 +01:00
|
|
|
android:drawableTop="@drawable/icon_xdrip"
|
2018-02-15 21:00:09 +01:00
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/overview_cgm"
|
|
|
|
android:textColor="@color/colorCalibrationButton"
|
2018-02-25 16:20:20 +01:00
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
2018-02-15 21:00:09 +01:00
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
<info.nightscout.androidaps.utils.SingleClickButton
|
2017-08-04 14:05:09 +02:00
|
|
|
android:id="@+id/overview_quickwizardbutton"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginRight="-4dp"
|
|
|
|
android:layout_weight="0.5"
|
|
|
|
android:drawableTop="@drawable/icon_quickwizard"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="Quick wizard"
|
|
|
|
android:textColor="@color/colorQuickWizardButton"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</FrameLayout>
|