AndroidAPS/app/src/main/res/layout/objectives_exam_fragment.xml

158 lines
6.2 KiB
XML
Raw Normal View History

2019-09-04 00:00:52 +02:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".plugins.constraints.objectives.activities.ObjectivesExamDialog">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
2019-09-05 20:26:23 +02:00
android:layout_height="wrap_content"
android:layout_margin="10dp">
2019-09-04 00:00:52 +02:00
<LinearLayout
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_options"
2019-09-04 00:00:52 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:orientation="vertical"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@+id/exam_hint"
2019-09-04 00:00:52 +02:00
tools:layout_editor_absoluteX="3dp">
</LinearLayout>
<LinearLayout
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_hints"
2019-09-04 00:00:52 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
2019-09-05 20:26:23 +02:00
android:layout_marginBottom="10dp"
2019-09-04 00:00:52 +02:00
android:orientation="vertical"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@+id/exam_options"
2019-09-05 20:26:23 +02:00
tools:layout_editor_absoluteX="3dp" />
2019-09-04 00:00:52 +02:00
<LinearLayout
2021-01-24 22:12:03 +01:00
android:id="@+id/buttons"
2019-09-04 00:00:52 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-05 20:26:23 +02:00
android:layout_marginTop="8dp"
android:background="#3C3C3C"
2019-09-04 00:00:52 +02:00
android:orientation="horizontal"
2019-09-05 20:26:23 +02:00
android:padding="4dp"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@+id/exam_disabledto">
2019-09-04 00:00:52 +02:00
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_reset"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-04 00:00:52 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-09-05 20:26:23 +02:00
android:text="@string/reset" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="" />
2019-09-04 00:00:52 +02:00
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2019-09-05 20:26:23 +02:00
android:id="@+id/close"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-04 00:00:52 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-09-05 20:26:23 +02:00
android:text="@string/close" />
2019-09-04 00:00:52 +02:00
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_verify"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-04 00:00:52 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/objectives_button_verify" />
2019-09-05 20:26:23 +02:00
2019-09-04 00:00:52 +02:00
</LinearLayout>
<TextView
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_question"
2019-09-04 00:00:52 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Question"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@id/exam_name" />
2019-09-04 00:00:52 +02:00
2019-09-07 11:32:24 +02:00
<TextView
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_hint"
2019-09-07 11:32:24 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/objectives_hint"
app:layout_constraintStart_toStartOf="parent"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@id/exam_question" />
2019-09-07 11:32:24 +02:00
2019-09-04 00:00:52 +02:00
<TextView
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_name"
2019-09-05 20:26:23 +02:00
android:layout_width="0dp"
2019-09-04 00:00:52 +02:00
android:layout_height="wrap_content"
android:text="Name"
android:textAppearance="@style/TextAppearance.AppCompat.Large"
2019-09-05 20:26:23 +02:00
app:layout_constraintEnd_toEndOf="parent"
2019-09-04 00:00:52 +02:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
2019-09-05 20:26:23 +02:00
<TextView
2021-01-24 22:12:03 +01:00
android:id="@+id/exam_disabledto"
2019-09-05 20:26:23 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
2019-10-13 17:58:45 +02:00
android:text="Disabled until:"
2019-09-05 20:26:23 +02:00
android:textColor="#FF5722"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@+id/exam_hints" />
2019-09-05 20:26:23 +02:00
<LinearLayout
2021-01-24 22:12:03 +01:00
android:id="@+id/navigation"
2019-09-05 20:26:23 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:background="#3C3C3C"
android:orientation="horizontal"
android:padding="4dp"
app:layout_constraintStart_toStartOf="parent"
2021-01-24 22:12:03 +01:00
app:layout_constraintTop_toBottomOf="@+id/buttons">
2019-09-05 20:26:23 +02:00
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2021-01-24 22:12:03 +01:00
android:id="@+id/back_button"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-05 20:26:23 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/previous_button" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="" />
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2021-01-24 22:12:03 +01:00
android:id="@+id/next_button"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-05 20:26:23 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/next_button" />
2022-02-23 19:05:55 +01:00
<com.google.android.material.button.MaterialButton
2021-01-24 22:12:03 +01:00
android:id="@+id/next_unanswered_button"
2022-02-23 23:40:10 +01:00
style="@style/OkCancelButton.Text"
2019-09-05 20:26:23 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/unfinshed_button" />
</LinearLayout>
2019-09-04 00:00:52 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>