2016-07-02 23:58:57 +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="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:context="info.nightscout.androidaps.plugins.Careportal.CareportalFragment">
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2017-05-25 20:18:29 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2016-07-02 23:58:57 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-05-25 20:18:29 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<include
|
2017-07-02 11:28:03 +02:00
|
|
|
android:id="@+id/careportal_stats"
|
2017-05-25 20:18:29 +02:00
|
|
|
layout="@layout/careportal_stats_fragment"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
2017-07-21 22:24:06 +02:00
|
|
|
<TextView
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/profileview_noprofile"
|
2017-07-21 22:24:06 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 11:44:39 +02:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="@string/noprofileset"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:textColor="@android:color/holo_red_light"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/careportal_buttons"
|
2017-07-22 02:15:55 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-27 11:44:39 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:text="@string/careportal_activity_label" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.GridLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:padding="10dip"
|
|
|
|
app:columnCount="3">
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_bgcheck"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bgcheck"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_bgcheck"
|
|
|
|
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_exercise"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_exercise"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_exercise"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_temporarytarget"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_cgm_target"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_temporarytarget"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
|
|
|
|
|
|
|
</android.support.v7.widget.GridLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:text="@string/careportal_carbsandbolus_label" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.GridLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:padding="10dip"
|
|
|
|
app:columnCount="3">
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_snackbolus"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_snack"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_snackbolus"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_mealbolus"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_meal"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_mealbolus"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_correctionbolus"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_correction"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_correctionbolus"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_carbscorrection"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_carbs"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_carbscorrection"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="2" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_combobolus"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_bolus_correction"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_combobolus"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="2" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_tempbasalstart"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_basal_start"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_tempbasalstart"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="2" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_tempbasalend"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_basal_end"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_tempbasalend"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="3" />
|
|
|
|
|
|
|
|
</android.support.v7.widget.GridLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:text="@string/careportal_cgm_label" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.GridLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:padding="10dip"
|
|
|
|
app:columnCount="3">
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_cgmsensorstart"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_cgm_start"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_cgmsensorstart"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_cgmsensorinsert"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_cgm_insert"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_cgmsensorinsert"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_openapsoffline"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_aaps_offline"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_openapsoffline"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="1" />
|
|
|
|
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_announcement"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_announcement"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_announcement"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="4" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_question"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_question"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_question"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="4" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_note"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_note"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_note"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="4" />
|
|
|
|
</android.support.v7.widget.GridLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:text="@string/careportal_pump_label" />
|
|
|
|
|
|
|
|
<android.support.v7.widget.GridLayout
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:padding="10dip"
|
|
|
|
app:columnCount="3">
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_pumpsitechange"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_pump_canula"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_pumpsitechange"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_insulincartridgechange"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_pump_cartridge"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_insulincartridgechange"
|
|
|
|
app:layout_column="1"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_profileswitch"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_cgm_profile"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_profileswitch"
|
|
|
|
app:layout_column="2"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="0" />
|
|
|
|
|
|
|
|
|
2017-12-22 19:50:16 +01:00
|
|
|
<info.nightscout.utils.SingleClickButton
|
2017-08-27 11:44:39 +02:00
|
|
|
android:id="@+id/careportal_pumpbatterychange"
|
|
|
|
style="@style/ButtonSmallFontStyle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:drawableTop="@drawable/icon_cp_pump_battery"
|
|
|
|
android:paddingLeft="0dp"
|
|
|
|
android:paddingRight="0dp"
|
|
|
|
android:text="@string/careportal_pumpbatterychange"
|
|
|
|
app:layout_column="0"
|
|
|
|
app:layout_columnWeight="1"
|
|
|
|
app:layout_gravity="fill"
|
|
|
|
app:layout_row="6" />
|
|
|
|
|
|
|
|
</android.support.v7.widget.GridLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2017-05-25 20:18:29 +02:00
|
|
|
</LinearLayout>
|
2016-07-02 23:58:57 +02:00
|
|
|
</ScrollView>
|
|
|
|
</FrameLayout>
|