378 lines
13 KiB
XML
378 lines
13 KiB
XML
<?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.SteampunkWatchface"
|
|
tools:deviceIds="wear_round"
|
|
tools:ignore="MissingDefaultResource">
|
|
|
|
<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:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/steampunk_dial_mgdl" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/secondary_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/steampunk_gauge_mgdl_20"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/delta_pointer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0px"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.69"
|
|
android:gravity="center"
|
|
android:src="@drawable/steampunk_pointer" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_menu_tap"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.7"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.05" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.26"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<TextView
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.2"
|
|
android:gravity="center"
|
|
android:textSize="11sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.165"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/cobView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingTop="7dp"
|
|
android:rotation="-28"
|
|
android:text="@string/no_cob_g"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="13sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.27"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tmpBasal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingBottom="14dp"
|
|
android:rotation="0"
|
|
android:text="@string/no_tmp_basal_u_h"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="13sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.165"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/iobView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingTop="6dp"
|
|
android:rotation="28"
|
|
android:text="@string/no_iob_u"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="13sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.2"
|
|
android:gravity="center"
|
|
android:textSize="11sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/chart_zoom_tap"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.27"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<View
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.25" />
|
|
|
|
<lecho.lib.hellocharts.view.LineChartView
|
|
android:id="@+id/chart"
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.5" />
|
|
|
|
<View
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.25"
|
|
android:orientation="horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.03" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/tertiary_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.15" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.21"
|
|
android:baselineAligned="false"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:weightSum="1">
|
|
|
|
<View
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.32" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.12"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/loop"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingStart="0dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:rotation="-24"
|
|
android:text="-'"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:layout_weight="0.12"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/rig_battery"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="--%"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
android:visibility="gone"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/uploader_battery"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:text="--%"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.12"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/timestamp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:paddingStart="10dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingEnd="0dp"
|
|
android:rotation="24"
|
|
android:text="-'"
|
|
android:textAlignment="center"
|
|
android:textColor="@color/black_86p"
|
|
android:textSize="12sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="0px"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0.32" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.64" />
|
|
|
|
</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
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/hour_hand"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.3"
|
|
android:orientation="vertical"
|
|
android:rotation="0"
|
|
android:src="@drawable/steampunk_hour_hand" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:weightSum="1">
|
|
|
|
<ImageView
|
|
android:id="@+id/minute_hand"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0px"
|
|
android:layout_weight="0.3"
|
|
android:orientation="vertical"
|
|
android:src="@drawable/steampunk_minute_hand" />
|
|
|
|
</LinearLayout>
|
|
|
|
<View
|
|
android:id="@+id/AAPSv2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
</RelativeLayout>
|