303 lines
12 KiB
XML
303 lines
12 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="@color/background">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<!-- Flight Dashboard -->
|
||
|
|
<com.google.android.material.card.MaterialCardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="16dp"
|
||
|
|
app:cardCornerRadius="12dp"
|
||
|
|
app:cardElevation="4dp">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Flight Dashboard"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<com.senstools.presentation.ui.widget.ArtificialHorizonView
|
||
|
|
android:id="@+id/artificialHorizon"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="200dp"
|
||
|
|
android:layout_marginTop="8dp" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvPitch"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="Pitch: 0.00¡ã" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvRoll"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="Roll: 0.00¡ã" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvYaw"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="Yaw: 0.00¡ã" />
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
</com.google.android.material.card.MaterialCardView>
|
||
|
|
|
||
|
|
<!-- GPS Data -->
|
||
|
|
<com.google.android.material.card.MaterialCardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="16dp"
|
||
|
|
app:cardCornerRadius="12dp"
|
||
|
|
app:cardElevation="4dp">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="GPS Data"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<GridLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:columnCount="2">
|
||
|
|
|
||
|
|
<TextView android:text="Longitude:" />
|
||
|
|
<TextView android:id="@+id/tvLongitude" android:text="0.00000000" />
|
||
|
|
|
||
|
|
<TextView android:text="Latitude:" />
|
||
|
|
<TextView android:id="@+id/tvLatitude" android:text="0.00000000" />
|
||
|
|
|
||
|
|
<TextView android:text="Altitude:" />
|
||
|
|
<TextView android:id="@+id/tvAltitude" android:text="0.00 m" />
|
||
|
|
|
||
|
|
<TextView android:text="Speed:" />
|
||
|
|
<TextView android:id="@+id/tvSpeed" android:text="0.00 m/s" />
|
||
|
|
|
||
|
|
<TextView android:text="Bearing:" />
|
||
|
|
<TextView android:id="@+id/tvBearing" android:text="0.00¡ã" />
|
||
|
|
|
||
|
|
<TextView android:text="Satellites:" />
|
||
|
|
<TextView android:id="@+id/tvSatellites" android:text="0" />
|
||
|
|
</GridLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
</com.google.android.material.card.MaterialCardView>
|
||
|
|
|
||
|
|
<!-- Sensor Data -->
|
||
|
|
<com.google.android.material.card.MaterialCardView
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginBottom="16dp"
|
||
|
|
app:cardCornerRadius="12dp"
|
||
|
|
app:cardElevation="4dp">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="Sensor Data"
|
||
|
|
android:textSize="18sp"
|
||
|
|
android:textStyle="bold" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:text="Accelerometer (m/s?)" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvAccelX"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="X: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvAccelY"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Y: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvAccelZ"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Z: 0.00" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:text="Gyroscope (¡ã/s)" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvGyroX"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="X: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvGyroY"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Y: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvGyroZ"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Z: 0.00" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:text="Magnetometer (¦ÌT)" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvMagX"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="X: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvMagY"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Y: 0.00" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvMagZ"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Z: 0.00" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:text="Environment" />
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvPressure"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Alt: 0.00 m" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvTemperature"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Temp: 0.00¡ãC" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvHumidity"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Hum: 0.0%" />
|
||
|
|
</LinearLayout>
|
||
|
|
</LinearLayout>
|
||
|
|
</com.google.android.material.card.MaterialCardView>
|
||
|
|
|
||
|
|
<!-- Recording Controls -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<com.google.android.material.button.MaterialButton
|
||
|
|
android:id="@+id/btnStartRecording"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginEnd="8dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="Start Recording" />
|
||
|
|
|
||
|
|
<com.google.android.material.button.MaterialButton
|
||
|
|
android:id="@+id/btnStopRecording"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginStart="8dp"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:enabled="false"
|
||
|
|
android:text="Stop Recording" />
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
</ScrollView>
|