Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/grey_background"
- tools:context=".MainActivity">
- <SeekBar
- android:id="@+id/blues"
- android:layout_width="350dp"
- android:layout_height="40dp"
- android:background="@drawable/blue_rectangle_bg"
- android:elevation="6dp"
- android:max="100"
- android:progressDrawable="@drawable/blue_seekbar_progress"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.491"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.571" />
- <SeekBar
- android:id="@+id/whites"
- android:layout_width="350dp"
- android:layout_height="40dp"
- android:background="@drawable/white_rectangle_bg"
- android:elevation="6dp"
- android:max="100"
- android:progressDrawable="@drawable/white_seekbar_progress"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.491"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.707" />
- <!-- RadioGroup for RadioButtons -->
- <TextView
- android:id="@+id/whitesValueText"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:text="@string/whites_percentage_text"
- android:textSize="14sp"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="10dp"
- app:layout_constraintBottom_toTopOf="@+id/whites"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.498"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/blues"
- app:layout_constraintVertical_bias="1.0"
- android:background="@drawable/edit_text_border"
- android:textColor="@color/black"
- android:padding="6dp" />
- <RadioGroup
- android:id="@+id/modeGroup"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:orientation="horizontal"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/whites">
- <RadioButton
- android:id="@+id/manualBtn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="6dp"
- android:layout_marginBottom="8dp"
- android:background="@drawable/blue_rectangle_bg"
- android:elevation="6dp"
- android:padding="6dp"
- android:radius="8dp"
- android:singleLine="true"
- android:text="@string/manual_mode"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.894"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/whites"
- app:layout_constraintVertical_bias="0.057" />
- <RadioButton
- android:id="@+id/autoBtn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginEnd="6dp"
- android:layout_marginBottom="8dp"
- android:background="@drawable/blue_rectangle_bg"
- android:elevation="6dp"
- android:padding="6dp"
- android:radius="8dp"
- android:text="@string/auto_mode"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.096"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/whites"
- app:layout_constraintVertical_bias="0.057" />
- </RadioGroup>
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/power_on"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:elevation="6dp"
- android:focusable="true"
- android:padding="6dp"
- android:text="@string/power_on"
- android:textColor="@color/black"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.271"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.891" />
- <androidx.appcompat.widget.AppCompatButton
- android:id="@+id/power_off"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:clickable="true"
- android:elevation="6dp"
- android:focusable="true"
- android:padding="6dp"
- android:text="@string/power_off"
- android:textColor="@color/black"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.759"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintVertical_bias="0.891" />
- <Button
- android:id="@+id/scanBtn"
- android:layout_width="125dp"
- android:layout_height="60dp"
- android:elevation="6dp"
- android:radius="10dp"
- android:text="@string/scan_devices"
- android:layout_marginTop="10dp"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintHorizontal_bias="0.902"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/selectedDevice"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:background="@drawable/edit_text_border"
- android:elevation="6dp"
- android:padding="8dp"
- android:text="@string/no_device_selected"
- android:textColor="@color/black"
- android:textSize="20sp"
- app:layout_constraintBottom_toTopOf="@+id/blues"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement