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

447 lines
17 KiB
XML
Raw Normal View History

2016-06-10 18:50:46 +02: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"
2019-02-28 23:16:50 +01:00
tools:context=".plugins.aps.openAPSMA.OpenAPSMAFragment">
2016-06-10 18:50:46 +02:00
2016-06-11 22:21:44 +02:00
<ScrollView
2016-06-10 18:50:46 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2016-06-10 18:50:46 +02:00
2016-06-11 22:21:44 +02:00
<LinearLayout
2016-06-10 18:50:46 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-06-12 10:53:19 +02:00
android:orientation="vertical">
2016-06-11 22:21:44 +02:00
<LinearLayout
2016-06-11 22:21:44 +02:00
android:layout_width="match_parent"
2017-06-13 20:48:53 +02:00
android:layout_height="match_parent"
android:orientation="horizontal">
<Button
android:id="@+id/openapsma_run"
2016-06-25 00:09:52 +02:00
style="?android:attr/buttonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/openapsma_run" />
</LinearLayout>
2016-06-11 22:21:44 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
<TextView
2016-06-12 10:53:19 +02:00
android:id="@+id/openapsma_lastrun"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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" />
2016-06-11 22:21:44 +02: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" />
2016-06-11 22:21:44 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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"
2016-06-12 10:53:19 +02:00
android:text="@string/openapsma_inputparameters_label"
2017-06-13 20:48:53 +02:00
android:textColor="@android:color/white"
android:textSize="14sp" />
</LinearLayout>
<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" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-11 22:21:44 +02:00
<TextView
android:id="@+id/openapsma_glucosestatus"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
<TextView
2016-06-12 10:53:19 +02:00
android:id="@+id/openapsma_currenttemp"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
<TextView
2016-06-12 10:53:19 +02:00
android:id="@+id/openapsma_iobdata"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
<TextView
2016-06-12 10:53:19 +02:00
android:id="@+id/openapsma_profile"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
<TextView
2016-06-11 22:21:44 +02:00
android:id="@+id/openapsma_mealdata"
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"
2016-06-12 10:53:19 +02: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" />
2016-06-11 22:21:44 +02: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" />
2016-06-11 22:21:44 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2016-06-11 22:21:44 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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" />
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
<TextView
2016-06-12 10:53:19 +02:00
android:id="@+id/openapsma_result"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-11 22:21:44 +02: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" />
2016-06-11 22:21:44 +02: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" />
2016-06-12 10:53:19 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:orientation="horizontal">
2016-06-12 10:53:19 +02:00
<TextView
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-12 10:53:19 +02:00
android:layout_height="wrap_content"
2017-06-13 20:48:53 +02:00
android:layout_weight="2"
android:gravity="end"
android:paddingRight="5dp"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02:00
<TextView
android:id="@+id/openapsma_request"
2017-06-13 20:48:53 +02:00
android:layout_width="match_parent"
2016-06-12 10:53:19 +02: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" />
2016-06-12 10:53:19 +02: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" />
2016-06-11 22:21:44 +02:00
</LinearLayout>
2016-06-12 10:53:19 +02:00
2016-06-11 22:21:44 +02:00
</ScrollView>
2016-06-10 18:50:46 +02:00
</FrameLayout>