Slide Bar für DutyCycle einstellen erstellt

This commit is contained in:
m_broelemann 2021-01-06 13:19:39 +01:00
parent d2770ca624
commit 361d634c22
2 changed files with 32 additions and 1 deletions

View File

@ -31,7 +31,7 @@ android {
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.google.android.material:material:1.3.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.navigation:navigation-fragment:2.2.2'
implementation 'androidx.navigation:navigation-ui:2.2.2'

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/volleyToastContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:ignore="MissingClass">
<TextView
android:id="@+id/textViewSlider"
android:text="set the duty cycle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_margin="5dp"
android:textSize="20dp"/>
<com.google.android.material.slider.RangeSlider
android:id="@+id/range_slider_duty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/textViewSlider"
android:valueFrom="0"
android:valueTo="100"
android:stepSize="5"/>
</RelativeLayout>