2017-12-09 14:23:43 +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:id="@+id/main_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:context=".watchfaces.Steampunk"
|
|
|
|
tools:deviceIds="wear_round">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/glucose_dial"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:src="@drawable/steampunk_dial"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/secondary_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/steampunk_gauge"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/delta_gauge"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:src="@drawable/steampunk_pointer"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/tertiary_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
|
|
|
android:layout_weight="0.7"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.11"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:weightSum="1">
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_gravity="center"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:gravity="center" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/cobView"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/black_86p"
|
|
|
|
android:textSize="11sp"
|
|
|
|
android:textStyle="bold" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/tmpBasal"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:gravity="center"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/black_86p"
|
|
|
|
android:textSize="11sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/iobView"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_gravity="center"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_weight="0.2"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:gravity="center"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/black_86p"
|
|
|
|
android:textSize="11sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:gravity="center" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.21"
|
|
|
|
android:gravity="center"
|
2017-12-09 14:23:43 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_width="0px"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.34"
|
|
|
|
android:gravity="center" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/loop"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.11"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/black_86p"
|
|
|
|
android:textSize="11sp"
|
|
|
|
android:textStyle="bold" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<TextView
|
2017-12-09 14:23:43 +01:00
|
|
|
android:layout_width="0px"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.1"
|
|
|
|
android:gravity="center" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timestamp"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.11"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:textColor="@color/black_86p"
|
|
|
|
android:textSize="11sp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_weight="0.34"
|
|
|
|
android:gravity="center" />
|
2017-12-09 14:23:43 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
|
|
|
android:layout_weight="0.27"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
2017-12-09 14:23:43 +01:00
|
|
|
<LinearLayout
|
2017-12-10 03:29:14 +01:00
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0.25"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<lecho.lib.hellocharts.view.LineChartView
|
|
|
|
android:id="@+id/chart"
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0.5"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0px"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="0.25"
|
|
|
|
android:orientation="horizontal">
|
2017-12-09 14:23:43 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0px"
|
|
|
|
android:layout_weight="0.03"
|
|
|
|
android:orientation="vertical">
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-12-09 14:23:43 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cover_plate_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/steampunk_cover_plate"
|
|
|
|
android:orientation="vertical">
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<ImageView
|
2017-12-09 14:23:43 +01:00
|
|
|
android:id="@+id/hour_hand"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/steampunk_hour_hand"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:orientation="vertical"/>
|
2017-12-09 14:23:43 +01:00
|
|
|
|
2017-12-10 03:29:14 +01:00
|
|
|
<ImageView
|
2017-12-09 14:23:43 +01:00
|
|
|
android:id="@+id/minute_hand"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@drawable/steampunk_minute_hand"
|
2017-12-10 03:29:14 +01:00
|
|
|
android:orientation="vertical"/>
|
2017-12-09 14:23:43 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|