This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
SensorReadout/app/src/main/res/layout/activity_main.xml
Markus Ebner a0d46c9aae Refactor Logger and add Settings-UI
- Refactored logger infrastructure, so that sensors have to provide
proper timestamps for the logged data, instead of the Logger generating
a timestamp when it is logged to the file.
- Added a settings UI where active sensors and activities can be
configured
2019-08-18 13:42:18 +02:00

152 lines
4.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#333"
android:keepScreenOn="true"
android:orientation="vertical"
android:weightSum="4.5"
tools:context="de.fhws.indoor.sensorreadout.MainActivity">
<LinearLayout
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginEnd="10dip"
android:layout_marginStart="10dip"
android:layout_marginTop="10dip"
android:layout_weight="1"
android:orientation="horizontal"
android:weightSum="3">
<Button
android:id="@+id/btnStop"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/btnstopcolor"
android:text="stop" />
<Button
android:id="@+id/btnStart"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="10dip"
android:layout_weight="1"
android:background="@drawable/btnstartcolor"
android:text="start" />
<LinearLayout
android:id="@+id/layoutSpinner"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="10dip"
android:layout_weight="1"
android:orientation="vertical"
android:weightSum="2">
<Spinner
android:id="@+id/pathspinner"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_weight="1"
android:background="#64bbe5" />
<Spinner
android:id="@+id/groundspinner"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_weight="1"
android:background="#64bbe5" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/txtFile"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_below="@+id/layout"
android:layout_marginEnd="10dip"
android:layout_marginStart="20dip"
android:layout_marginTop="10dip"
android:layout_weight="0.25"
android:text="-"
android:textColor="#ffffff" />
<LinearLayout
android:id="@+id/layoutMain"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_below="@+id/txtFile"
android:layout_marginEnd="10dip"
android:layout_marginStart="20dip"
android:layout_weight="0.25"
android:orientation="horizontal">
<TextView
android:id="@+id/txtWifi"
android:layout_width="30dp"
android:layout_height="match_parent"
android:text="-"
android:textColor="#ffffff"
/>
<TextView
android:id="@+id/txtBeacon"
android:layout_width="30dp"
android:layout_height="match_parent"
android:text="-"
android:textColor="#ffffff" />
<TextView
android:id="@+id/txtGPS"
android:layout_width="30dp"
android:layout_height="match_parent"
android:text="-"
android:textColor="#ffffff" />
<TextView
android:id="@+id/txtBuffer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="-"
android:textColor="#ffffff" />
</LinearLayout>
<TableLayout
android:id="@+id/pedestrianActivityButtonContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"/>
<LinearLayout
android:id="@+id/layoutGround"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="10dip"
android:layout_weight="1"
android:orientation="horizontal">
<Button
android:id="@+id/btnGround"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#64bbe5"
android:text="Ground Truth" />
<Button
android:id="@+id/btnSettings"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#bbb"
android:text="Settings" />
</LinearLayout>
</LinearLayout>