112 lines
4.0 KiB
XML
112 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/default_margin">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/proximity"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
|
|
android:layout_marginBottom="@dimen/default_margin" />
|
|
|
|
<TableLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:shrinkColumns="1"
|
|
android:stretchColumns="1" >
|
|
|
|
<TableRow>
|
|
|
|
<TextView
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:paddingRight="@dimen/default_margin"
|
|
android:text="@string/state"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.slider.RangeSlider
|
|
android:id="@+id/rsProximity"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:valueFrom="0"
|
|
android:valueTo="10"
|
|
android:stepSize="0.1"
|
|
android:theme="@style/AppThemeCompat" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/close"
|
|
android:layout_alignParentLeft="true"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/far"
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/tvTriggerProximityHint"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="@dimen/default_margin"
|
|
android:textColor="@color/red"
|
|
android:text="@string/deviceDoesntHaveProximitySensor" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/default_margin"
|
|
android:text="@string/testArea"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="@dimen/default_margin"
|
|
android:text="@string/proximitySensorHint" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/testAreaProximityComment" />
|
|
|
|
<SeekBar
|
|
android:id="@+id/sbProximityTest"
|
|
android:layout_marginTop="@dimen/default_margin"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvProximityCurrentValue"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Button
|
|
android:id="@+id/bTriggerProximitySave"
|
|
android:layout_marginTop="@dimen/default_margin"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/save" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat> |