mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
187 lines
6.4 KiB
XML
187 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2010 Google Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_width="fill_parent">
|
|
|
|
<ScrollView
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="fill_parent">
|
|
|
|
<TableLayout
|
|
android:layout_height="wrap_content"
|
|
android:stretchColumns="1,4"
|
|
android:layout_width="fill_parent">
|
|
|
|
<!-- Layout the sensor state on one line. -->
|
|
<TableRow>
|
|
<TextView
|
|
android:layout_span="5"
|
|
android:text="@string/sensor_state" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:background="@color/stat_label_background">
|
|
<TextView
|
|
android:id="@+id/sensor_state_register"
|
|
android:layout_column="1"
|
|
android:layout_span="5"
|
|
style="@style/StatsRegister" />
|
|
</TableRow>
|
|
|
|
<!-- Layout the sensor data age on one line. -->
|
|
<TableRow>
|
|
<TextView
|
|
android:layout_span="5"
|
|
android:text="@string/sensor_data_time" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:background="@color/stat_label_background">
|
|
<TextView
|
|
android:id="@+id/sensor_data_time_register"
|
|
android:layout_column="1"
|
|
android:layout_span="5"
|
|
style="@style/StatsRegister" />
|
|
</TableRow>
|
|
|
|
<!-- Power meter status -->
|
|
<TableRow
|
|
android:padding="1dip">
|
|
<CheckBox android:id="@+id/power_meter_enabled"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/power_meter_enabled"
|
|
android:checked="true"
|
|
android:enabled="false"
|
|
android:layout_column="1"
|
|
android:layout_span="3" />
|
|
<TextView
|
|
android:id="@+id/power_meter_state_register"
|
|
android:textSize="20dip"
|
|
android:gravity="right"
|
|
android:layout_column="4"
|
|
android:layout_span="2"
|
|
android:text="@string/unknown" />
|
|
</TableRow>
|
|
|
|
<!-- Power and Cadence -->
|
|
<TableRow
|
|
android:padding="1dip">
|
|
<TextView
|
|
android:id="@+id/power_label"
|
|
android:layout_column="1"
|
|
android:layout_span="3"
|
|
android:text="@string/power" />
|
|
<TextView
|
|
android:id="@+id/cadence_label"
|
|
android:layout_column="4"
|
|
android:layout_span="2"
|
|
android:text="@string/cadence" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:background="@color/stat_label_background">
|
|
<TextView
|
|
android:gravity="right"
|
|
android:id="@+id/power_state_register"
|
|
android:layout_column="1"
|
|
android:layout_marginBottom="-9dip"
|
|
android:layout_marginTop="-9dip"
|
|
android:text="@string/unknown"
|
|
android:textColor="@color/stat_label_text"
|
|
android:textSize="40sp" />
|
|
<TextView
|
|
android:gravity="left"
|
|
android:layout_column="2"
|
|
android:layout_marginBottom="-9dip"
|
|
android:layout_marginTop="-9dip"
|
|
android:text="@string/watts"
|
|
android:textColor="@color/stat_label_text" />
|
|
<TextView
|
|
android:background="@color/black"
|
|
android:layout_column="3"
|
|
android:layout_marginBottom="-9dip"
|
|
android:layout_marginTop="-9dip"
|
|
android:layout_width="5dip"
|
|
android:textSize="40sp" />
|
|
<TextView
|
|
android:gravity="right"
|
|
android:id="@+id/cadence_state_register"
|
|
android:layout_column="4"
|
|
android:layout_marginBottom="-9dip"
|
|
android:layout_marginTop="-9dip"
|
|
android:text="@string/unknown"
|
|
android:textColor="@color/stat_label_text"
|
|
android:textSize="40sp" />
|
|
<TextView
|
|
android:gravity="left"
|
|
android:layout_column="2"
|
|
android:layout_marginBottom="-9dip"
|
|
android:layout_marginTop="-9dip"
|
|
android:text="@string/revolutions_per_minute"
|
|
android:textColor="@color/stat_label_text" />
|
|
</TableRow>
|
|
|
|
<!-- Heart rate monitor -->
|
|
<TableRow>
|
|
<CheckBox android:id="@+id/heart_rate_monitor_enabled"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/heart_rate_monitor_enabled"
|
|
android:checked="true"
|
|
android:enabled="false"
|
|
android:layout_column="1"
|
|
android:layout_span="3" />
|
|
<TextView
|
|
android:id="@+id/heart_rate_monitor_state_register"
|
|
android:gravity="right"
|
|
android:textSize="20dip"
|
|
android:layout_column="4"
|
|
android:layout_span="2"
|
|
android:text="@string/unknown" />
|
|
</TableRow>
|
|
|
|
<!-- Heart Rate -->
|
|
<TableRow
|
|
android:padding="1dip">
|
|
<TextView
|
|
android:layout_column="1"
|
|
android:layout_span="3"
|
|
android:text="@string/heart_rate" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:background="@color/stat_label_background">
|
|
<TextView
|
|
android:id="@+id/heart_rate_register"
|
|
android:layout_column="1"
|
|
android:layout_span="4"
|
|
style="@style/StatsRegister" />
|
|
<TextView
|
|
android:layout_column="5"
|
|
android:text="@string/bpm"
|
|
style="@style/StatsUnitSolo" />
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</RelativeLayout>
|