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

574 lines
22 KiB
XML
Raw Normal View History

2017-01-03 21:15:40 +01:00
<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"
2018-06-08 19:07:04 +02:00
android:paddingTop="2dp"
2017-01-03 21:15:40 +01:00
tools:context="info.nightscout.androidaps.plugins.OpenAPSAMA.OpenAPSAMAFragment">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
2017-01-03 21:15:40 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-01-03 21:15:40 +01:00
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
2017-06-13 20:48:53 +02:00
android:layout_height="match_parent"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<Button
android:id="@+id/openapsma_run"
style="?android:attr/buttonStyle"
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"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_lastrun_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_lastrun"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
</LinearLayout>
2017-06-13 20:48:53 +02:00
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
2017-01-03 21:15:40 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="center_horizontal"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_inputparameters_label"
2017-06-13 20:48:53 +02:00
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
2018-03-23 09:59:07 +01:00
<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="end"
android:paddingRight="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:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
<TextView
android:id="@+id/openapsma_constraints"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
2017-06-13 20:48:53 +02:00
<View
android:layout_width="fill_parent"
2018-03-23 09:59:07 +01:00
android:layout_height="2dip"
2017-06-13 20:48:53 +02:00
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_glucosestatus_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_glucosestatus"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_currenttemp_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_currenttemp"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_iobdata_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_iobdata"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_profile_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_profile"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_mealdata_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_mealdata"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-08 00:07:18 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-08 00:07:18 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-08 00:07:18 +01:00
android:text="@string/openapsma_autosensdata_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-08 00:07:18 +01:00
<TextView
android:id="@+id/openapsma_autosensdata"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
2017-01-08 00:07:18 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="center_horizontal"
android:paddingRight="5dp"
2017-06-28 23:11:17 +02:00
android:text="@string/result"
2017-06-13 20:48:53 +02:00
android:textColor="@android:color/white"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
</LinearLayout>
2017-06-13 20:48:53 +02:00
<View
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
2017-01-03 21:15:40 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
2017-01-08 00:27:13 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-08 00:27:13 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-08 00:27:13 +01:00
android:text="@string/openapsma_scriptdebugdata_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-08 00:27:13 +01:00
<TextView
android:id="@+id/openapsma_scriptdebugdata"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-08 00:27:13 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2017-01-08 00:27:13 +01:00
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-06-28 23:11:17 +02:00
android:text="@string/result"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_result"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
</LinearLayout>
2017-06-13 20:48:53 +02:00
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
2017-01-03 21:15:40 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2017-01-03 21:15:40 +01:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2017-01-03 21:15:40 +01:00
android:text="@string/openapsma_request_label"
2017-06-13 20:48:53 +02:00
android:textSize="14sp" />
<TextView
android:layout_width="5dp"
android:layout_height="wrap_content"
android:layout_weight="0"
android:gravity="center_horizontal"
android:paddingEnd="2dp"
android:paddingStart="2dp"
android:text=":"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
<TextView
android:id="@+id/openapsma_request"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2017-01-03 21:15:40 +01:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="1"
android:gravity="start"
android:paddingLeft="5dp"
android:textColor="@android:color/white"
android:textSize="14sp" />
2017-01-03 21:15:40 +01:00
</LinearLayout>
2017-06-13 20:48:53 +02:00
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginBottom="5dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="5dp"
android:background="@color/listdelimiter" />
2017-01-03 21:15:40 +01:00
</LinearLayout>
</ScrollView>
</FrameLayout>