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

213 lines
8.8 KiB
XML
Raw Normal View History

2017-01-02 18:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".plugins.PumpDanaR.activities.DanaRHistoryActivity">
2017-01-02 18:04:45 +01:00
<LinearLayout
2017-01-18 03:08:19 +01:00
android:id="@+id/danar_statstop"
2017-01-02 18:04:45 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
2017-01-18 03:08:19 +01:00
android:focusable="true"
android:focusableInTouchMode="true"
2017-01-02 18:04:45 +01:00
android:orientation="horizontal">
</LinearLayout>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2017-01-18 03:08:19 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_horizontal"
android:textColor="@color/mdtp_white"
android:background="@drawable/pillborder"
2017-01-18 03:08:19 +01:00
android:text="@string/danar_stats" />
<TableLayout
android:stretchColumns="0,1,2,3,4"
android:id="@+id/main_table"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_width="match_parent">
</TableLayout>
<Space
android:layout_width="10dp"
android:layout_height="10dp" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:textColor="@color/mdtp_white"
android:background="@drawable/pillborder"
2017-01-18 03:08:19 +01:00
android:gravity="center_horizontal"
android:text="@string/danar_stats_cumulative_tdd" />
<TableLayout
android:stretchColumns="0,1,2"
android:id="@+id/cumulative_table"
android:layout_height="0dp"
2017-01-18 03:08:19 +01:00
android:layout_width="match_parent"
android:layout_weight="1">
</TableLayout>
</LinearLayout>
<Space
android:layout_width="10dp"
android:layout_height="10dp" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
2017-01-18 04:31:47 +01:00
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true">
2017-01-18 03:08:19 +01:00
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textColor="@color/mdtp_white"
android:background="@drawable/pillborder"
2017-01-18 03:08:19 +01:00
android:text="@string/danar_stats_expweight" />
<TableLayout
android:stretchColumns="0,1,2"
android:id="@+id/expweight_table"
android:layout_height="0dp"
2017-01-18 03:08:19 +01:00
android:layout_width="match_parent"
android:layout_weight="1">
</TableLayout>
2017-01-18 04:31:47 +01:00
<Space
android:layout_width="10dp"
2017-01-20 02:54:31 +01:00
android:layout_height="10dp" />
2017-01-18 04:31:47 +01:00
2017-01-20 02:54:31 +01:00
<LinearLayout
android:orientation="horizontal"
2017-01-18 04:31:47 +01:00
android:layout_width="match_parent"
2017-01-20 02:54:31 +01:00
android:layout_height="match_parent">
<TextView
android:text="@string/danar_stats_tbb"
android:labelFor="@+id/danar_stats_editTotalBaseBasal"
android:layout_width="0dp"
2017-01-20 02:54:31 +01:00
android:layout_height="wrap_content"
android:id="@+id/danar_stats_editTotalBaseBasal_label"
android:gravity="left"
android:layout_weight="1" />
<EditText
android:layout_width="70dp"
2017-01-20 02:54:31 +01:00
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:layout_marginRight="10dp"
android:gravity="center_vertical|center_horizontal"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/mdtp_white"
android:background="@drawable/pillborder"
2017-01-20 02:54:31 +01:00
android:id="@+id/danar_stats_editTotalBaseBasal" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
2017-01-18 04:31:47 +01:00
android:layout_width="match_parent"
2017-01-20 02:54:31 +01:00
android:layout_height="match_parent">
<TextView
android:text="@string/danar_stats_tbb2"
android:labelFor="@+id/danar_stats_editTotalBaseBasal2"
android:layout_width="0dp"
2017-01-20 02:54:31 +01:00
android:layout_height="wrap_content"
android:id="@+id/danar_stats_editTotalBaseBasal2_label"
android:gravity="left"
android:layout_weight="1" />
<TextView
android:layout_width="70dp"
2017-01-20 02:54:31 +01:00
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:gravity="center_vertical|center_horizontal"
android:layout_marginRight="10dp"
android:textColor="@color/mdtp_white"
2017-01-20 02:54:31 +01:00
android:id="@+id/danar_stats_editTotalBaseBasal2" />
</LinearLayout>
2017-01-18 03:08:19 +01:00
</LinearLayout>
</LinearLayout>
2017-01-02 18:04:45 +01:00
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/danar_historybuttons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
2017-01-18 03:08:19 +01:00
<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
2017-01-18 03:08:19 +01:00
android:layout_height="match_parent"
android:gravity="center_vertical|center_horizontal"
2017-01-18 03:08:19 +01:00
android:layout_weight="1">
<TextView
android:id="@+id/danar_stats_connection_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal" />
2017-01-18 03:08:19 +01:00
<TextView
android:id="@+id/danar_stats_Message"
android:layout_width="350dp"
2017-01-18 03:08:19 +01:00
android:layout_height="wrap_content"
android:textSize="15sp"
android:textStyle="bold"
2017-01-18 03:08:19 +01:00
android:textColor="#ff0000"
android:background="@drawable/pillborder"
android:paddingLeft="10dp"
android:paddingRight="10dp"
2017-01-18 03:08:19 +01:00
android:text="@string/danar_stats_warning_Message" />
2017-01-23 21:52:24 +01:00
<Space
android:layout_width="match_parent"
android:layout_height="5dp" />
2017-01-18 03:08:19 +01:00
<Button
android:id="@+id/danar_statsreload"
android:layout_width="200dp"
2017-01-18 03:08:19 +01:00
android:layout_height="wrap_content"
android:textColor="@color/mdtp_white"
android:background="@drawable/pillborder"
2017-01-18 03:08:19 +01:00
android:text="@string/danar_historyreload" />
</LinearLayout>
2017-01-02 18:04:45 +01:00
</LinearLayout>
</RelativeLayout>