2017-11-05 21:41:50 +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="match_parent"
|
|
|
|
android:layout_height="match_parent" tools:context=".watchfaces.Home" tools:deviceIds="wear_round"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:id="@+id/main_layout">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:paddingTop="15dp"
|
|
|
|
android:weightSum="1"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="-5dp">
|
|
|
|
|
2017-11-12 21:46:32 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/loop"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:background="@drawable/loop_grey_25"
|
|
|
|
android:gravity="center|right"
|
|
|
|
android:paddingRight="7dp"
|
|
|
|
android:paddingTop="-2dp"
|
|
|
|
android:text="--'"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2017-11-05 21:41:50 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/sgv"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:textSize="38sp"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:text="---"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
|
|
android:gravity="bottom|right"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:paddingLeft="5dp"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:layout_marginBottom="-2dp"
|
|
|
|
android:paddingTop="-2dp" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="fill_parent"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:layout_gravity="center_horizontal"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:baselineAligned="false"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:weightSum="1">
|
2017-11-05 21:41:50 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/direction"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
|
|
android:gravity="center_horizontal|bottom"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:text="--"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="22sp"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timestamp"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:layout_marginBottom="2dp"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:gravity="center_horizontal|bottom"
|
2017-11-12 21:46:32 +01:00
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:text="--'"
|
2017-11-05 21:41:50 +01:00
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/light_grey"
|
|
|
|
android:id="@+id/secondary_layout"
|
|
|
|
android:padding="1dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/delta"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="delta"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#000000"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/uploader_battery"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="10sp"
|
|
|
|
android:text="--%"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#000000"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2017-11-12 21:46:32 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/rig_battery"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="10sp"
|
|
|
|
android:text="--%"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#000000"
|
|
|
|
android:textSize="14sp"
|
2017-11-15 23:07:44 +01:00
|
|
|
android:textStyle="bold"
|
|
|
|
android:visibility="gone" />
|
2017-11-12 21:46:32 +01:00
|
|
|
|
2017-11-05 21:41:50 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tmpBasal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="10sp"
|
|
|
|
android:text="-.--U/h"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#000000"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2017-11-15 23:07:44 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/AAPSv2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text=""
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2017-11-05 21:41:50 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/tertiary_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/black"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="1dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:textAlignment="center">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:textAlignment="center">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/cob_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="Carb"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/cobView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="--g"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/watch_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="-3dp"
|
|
|
|
android:layout_marginTop="-2dp"
|
|
|
|
android:paddingLeft="20sp"
|
|
|
|
android:text="12:00"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="30sp" />
|
|
|
|
|
2017-11-12 21:46:32 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/date_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|center_horizontal"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="2sp"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/day"
|
|
|
|
android:layout_width="23dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="day"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/month"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="mth"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-11-05 21:41:50 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="18sp"
|
|
|
|
android:textAlignment="center">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/iob_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="IOB"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="10sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/iobView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="--U"
|
|
|
|
android:textColor="#FFFFFF"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<lecho.lib.hellocharts.view.LineChartView
|
|
|
|
android:id="@+id/chart"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="75dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:gravity="center_horizontal|top" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|