Automation/app/src/main/res/layout/activity_manage_trigger_dev...

269 lines
10 KiB
XML
Raw Normal View History

2021-11-27 20:22:13 +01:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="@dimen/default_margin" >
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-12-11 14:15:05 +01:00
android:text="@string/deviceOrientationExplanation"
2021-11-27 20:22:13 +01:00
android:layout_marginBottom="@dimen/default_margin" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TableRow
android:layout_width="wrap_content"
2022-01-05 18:06:26 +01:00
android:layout_height="wrap_content"
android:gravity="center_vertical" >
<ImageView
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/arrow_azimuth"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationAzimuth"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvCurrentAzimuth"
2021-11-27 20:22:13 +01:00
android:layout_marginLeft="@dimen/default_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:layout_width="wrap_content"
2022-01-05 18:06:26 +01:00
android:layout_height="wrap_content"
android:gravity="center_vertical" >
<ImageView
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/arrow_pitch"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationPitch"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvCurrentOrientationPitch"
2021-11-27 20:22:13 +01:00
android:layout_marginLeft="@dimen/default_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:layout_width="wrap_content"
2022-01-05 18:06:26 +01:00
android:layout_height="wrap_content"
android:gravity="center_vertical" >
<ImageView
android:layout_marginRight="@dimen/default_margin"
android:src="@drawable/arrow_roll"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationRoll"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvCurrentRoll"
2021-11-27 20:22:13 +01:00
android:layout_marginLeft="@dimen/default_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
<Button
android:id="@+id/bApplyPositionValues"
android:text="@string/apply"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="@dimen/default_margin" />
<TableLayout
android:layout_width="match_parent"
2021-11-28 20:01:58 +01:00
android:layout_height="wrap_content"
android:shrinkColumns="0"
android:stretchColumns="1">
2021-11-27 20:22:13 +01:00
<TableRow
2021-11-28 20:01:58 +01:00
android:layout_width="match_parent"
2021-11-27 20:22:13 +01:00
android:layout_height="wrap_content" >
<TextView
android:text=""
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
2021-12-11 14:15:05 +01:00
android:text="@string/orientation"
2021-11-27 20:22:13 +01:00
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:text="@string/tolerance"
2021-12-05 17:24:47 +01:00
android:gravity="center_horizontal"
2021-11-27 20:22:13 +01:00
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:text="@string/wouldCurrentlyApply"
2021-11-28 20:01:58 +01:00
android:singleLine="false"
android:maxLines="2"
android:lines="2"
2021-11-27 20:22:13 +01:00
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
2021-11-28 20:01:58 +01:00
android:layout_width="match_parent"
2021-11-27 20:22:13 +01:00
android:layout_height="wrap_content" >
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationAzimuth"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/default_margin" />
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredAzimuth"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:enabled="false"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredAzimuthTolerance"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvAppliesAzimuth"
2021-12-05 17:24:47 +01:00
android:gravity="center_horizontal"
android:text="@string/unknown"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationPitch"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/default_margin" />
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredPitch"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:enabled="false"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredPitchTolerance"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvAppliesPitch"
2021-12-05 17:24:47 +01:00
android:gravity="center_horizontal"
android:text="@string/unknown"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
2021-11-28 20:01:58 +01:00
android:text="@string/orientationRoll"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="@dimen/default_margin" />
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredRoll"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:enabled="false"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<EditText
2021-11-28 20:01:58 +01:00
android:id="@+id/etDesiredRollTolerance"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-11-28 20:01:58 +01:00
android:minWidth="50dp"
android:inputType="number" />
2021-11-27 20:22:13 +01:00
<TextView
2021-11-28 20:01:58 +01:00
android:id="@+id/tvAppliesRoll"
2021-12-05 17:24:47 +01:00
android:gravity="center_horizontal"
android:text="@string/unknown"
2021-11-27 20:22:13 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</TableRow>
</TableLayout>
2021-12-09 18:03:00 +01:00
<CheckBox
android:id="@+id/chkDevicePositionApplies"
android:checked="true"
android:text="@string/mustApply"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-12-11 14:15:05 +01:00
android:text="@string/explanationDeviceOrientationDirection" />
2021-12-09 18:03:00 +01:00
2021-11-27 20:22:13 +01:00
<Button
android:id="@+id/bSavePositionValues"
android:text="@string/save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/default_margin" />
</androidx.appcompat.widget.LinearLayoutCompat>
</ScrollView>