583 lines
21 KiB
XML
583 lines
21 KiB
XML
<ScrollView 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"
|
|
android:paddingTop="2dp"
|
|
tools:context=".plugins.aps.openAPSAMA.OpenAPSAMAFragment">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
style="@style/GrayButton"
|
|
android:id="@+id/run"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/openapsma_run" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_lastrun_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/lastrun"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="center_horizontal"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_inputparameters_label"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/constraints"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/constraints"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_glucosestatus_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/glucosestatus"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_currenttemp_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/currenttemp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_iobdata_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/iobdata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_profile_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/profile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_mealdata_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/mealdata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_autosensdata_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/autosensdata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="center_horizontal"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/result"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="0dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_scriptdebugdata_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/scriptdebugdata"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/result"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/result"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:gravity="end"
|
|
android:paddingEnd="5dp"
|
|
android:text="@string/openapsma_request_label"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:layout_width="5dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:gravity="center_horizontal"
|
|
android:paddingStart="2dp"
|
|
android:paddingEnd="2dp"
|
|
android:text=":"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/request"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="start"
|
|
android:paddingStart="5dp"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="2dip"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="5dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:background="?android:attr/dividerHorizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|