158 lines
6.3 KiB
XML
158 lines
6.3 KiB
XML
<?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"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="10dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/exam_options"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintTop_toBottomOf="@+id/exam_hint"
|
|
tools:layout_editor_absoluteX="3dp">
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/exam_hints"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintTop_toBottomOf="@+id/exam_options"
|
|
tools:layout_editor_absoluteX="3dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/buttons"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:background="?attr/objectivesBackgroundColor"
|
|
android:orientation="horizontal"
|
|
android:padding="4dp"
|
|
app:layout_constraintTop_toBottomOf="@+id/exam_disabledto">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/exam_reset"
|
|
style="@style/OkCancelButton.Text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/reset" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/close"
|
|
style="@style/OkCancelButton.Text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/close" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/exam_verify"
|
|
style="@style/OkCancelButton.Text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/objectives_button_verify" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/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"
|
|
app:layout_constraintTop_toBottomOf="@id/exam_name" />
|
|
|
|
<TextView
|
|
android:id="@+id/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/exam_question" />
|
|
|
|
<TextView
|
|
android:id="@+id/exam_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="Name"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/exam_disabledto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="Disabled until:"
|
|
android:textColor="?attr/objectivesDisabledTextColor"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/exam_hints" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/navigation"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:background="?attr/objectivesBackgroundColor"
|
|
android:orientation="horizontal"
|
|
android:padding="4dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/buttons">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/back_button"
|
|
style="@style/OkCancelButton.Text"
|
|
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="" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/next_button"
|
|
style="@style/OkCancelButton.Text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/next_button" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/next_unanswered_button"
|
|
style="@style/OkCancelButton.Text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/unfinshed_button" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</ScrollView>
|
|
|