Pulse/app/src/main/res/layout/activity_main.xml

101 lines
4 KiB
XML
Raw Normal View History

2022-02-01 23:38:08 +03:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2022-02-01 23:38:08 +03:00
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:padding="32dp"
tools:context=".MainActivity">
<TextView
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/description"
app:layout_constraintTop_toTopOf="parent"
2022-02-01 23:38:08 +03:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
2022-02-01 23:38:08 +03:00
2022-02-07 13:35:33 +03:00
<ScrollView
android:id="@+id/scrollView"
android:layout_width="0dp"
android:layout_height="0dp"
2022-02-14 04:45:37 +03:00
android:padding="16dp"
2022-02-07 13:35:33 +03:00
android:layout_marginVertical="16dp"
app:layout_constraintTop_toBottomOf="@id/description"
app:layout_constraintBottom_toTopOf="@id/toggle"
2022-02-07 13:35:33 +03:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
2022-02-07 13:35:33 +03:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.slider.Slider
android:id="@+id/redirectionDelay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stepSize="0.5"
android:valueFrom="2"
android:valueTo="4"
android:contentDescription="@string/redirection_delay_description" />
2022-02-07 13:35:33 +03:00
<TextView
android:id="@+id/description2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/redirection_delay_description"
android:textSize="12sp" />
2022-02-07 13:35:33 +03:00
2022-02-14 04:22:31 +03:00
<Space
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="8dp" />
2022-02-14 04:22:31 +03:00
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/popupPosition"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2022-02-16 12:30:44 +03:00
app:endIconMode="custom"
app:endIconDrawable="@drawable/ic_baseline_check_circle_24"
android:hint="@string/popup_position">
2022-02-14 04:22:31 +03:00
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="number" />
2022-02-14 04:22:31 +03:00
</com.google.android.material.textfield.TextInputLayout>
2022-02-14 04:45:37 +03:00
<Space
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="8dp" />
2022-02-14 04:45:37 +03:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginVertical="8dp"
android:background="?android:attr/listDivider" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/serviceRecycler"
2022-02-14 04:45:37 +03:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:scrollbars="vertical" />
2022-02-07 13:35:33 +03:00
</LinearLayout>
</ScrollView>
2022-02-01 23:38:08 +03:00
<ToggleButton
android:id="@+id/toggle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingVertical="12dp"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>