proximity trigger

This commit is contained in:
2025-11-06 23:27:32 +01:00
parent 55a1c24753
commit fdcdaf53c9
3 changed files with 60 additions and 8 deletions

View File

@@ -27,15 +27,39 @@
android:paddingRight="@dimen/default_margin"
android:text="@string/state"/>
<com.google.android.material.slider.RangeSlider
android:id="@+id/rsProximity"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:valueFrom="0"
android:valueTo="100"
android:stepSize="1"
android:theme="@style/AppThemeCompat" />
<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="100"
android:stepSize="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>
@@ -52,9 +76,16 @@
<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"