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

158 lines
6.3 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
android:id="@+id/objectives_exam_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:orientation="vertical"
2019-09-07 11:32:24 +02:00
app:layout_constraintTop_toBottomOf="@+id/objectives_exam_hint"
2019-09-04 00:00:52 +02:00
tools:layout_editor_absoluteX="3dp">
</LinearLayout>
<LinearLayout
android:id="@+id/objectives_exam_hints"
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"
app:layout_constraintTop_toBottomOf="@+id/objectives_exam_options"
2019-09-05 20:26:23 +02:00
tools:layout_editor_absoluteX="3dp" />
2019-09-04 00:00:52 +02:00
<LinearLayout
2019-09-05 20:26:23 +02:00
android:id="@+id/objectives_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"
app:layout_constraintTop_toBottomOf="@+id/objectives_exam_disabledto">
2019-09-04 00:00:52 +02:00
<Button
2019-09-05 20:26:23 +02:00
android:id="@+id/objectives_exam_reset"
2019-09-04 00:00:52 +02:00
style="@style/Widget.AppCompat.Button.Borderless.Colored"
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
<Button
2019-09-05 20:26:23 +02:00
android:id="@+id/close"
2019-09-04 00:00:52 +02:00
style="@style/Widget.AppCompat.Button.Borderless.Colored"
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
<Button
android:id="@+id/objectives_exam_verify"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
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
android:id="@+id/objectives_exam_question"
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"
2019-09-05 20:26:23 +02:00
app:layout_constraintTop_toBottomOf="@id/objectives_exam_name" />
2019-09-04 00:00:52 +02:00
2019-09-07 11:32:24 +02:00
<TextView
android:id="@+id/objectives_exam_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/objectives_hint"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/objectives_exam_question" />
2019-09-04 00:00:52 +02:00
<TextView
android:id="@+id/objectives_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
android:id="@+id/objectives_exam_disabledto"
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"
app:layout_constraintTop_toBottomOf="@+id/objectives_exam_hints" />
<LinearLayout
android:id="@+id/objectives_navigation"
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"
app:layout_constraintTop_toBottomOf="@+id/objectives_buttons">
<Button
android:id="@+id/objectives_back_button"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
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="" />
<Button
android:id="@+id/objectives_next_button"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/next_button" />
<Button
android:id="@+id/objectives_next_unanswered_button"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
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>