GPTutor / app / src / main / res / layout / activity_info.xml
activity_info.xml
Raw
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:background="@drawable/background_secondary"
        android:layout_height="match_parent">
    <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Last Week"
            android:fontFamily="@font/sora_medium"
            android:textColor="@color/black"
            android:layout_centerHorizontal="true"
            android:paddingTop="5sp"
            android:textSize="30sp"
            android:id="@+id/overall_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:fontFamily="@font/sora_medium"
            android:text="241 Questions | 73% Correct | 3 Months"
            android:layout_centerHorizontal="true"
            android:textColor="@color/black"
            android:paddingTop="5sp"
            android:id="@+id/overall_stats_val"
            android:textSize="12sp"
            android:layout_below="@id/overall_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Algebra"
            android:fontFamily="@font/sora_medium"
            android:textColor="@color/black"
            android:layout_centerHorizontal="true"
            android:paddingTop="20sp"
            android:layout_below="@id/overall_stats_val"
            android:textSize="20sp"
            android:id="@+id/algebra_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="60 Questions | 90% Correct"
            android:layout_centerHorizontal="true"
            android:fontFamily="@font/sora_medium"
            android:textColor="@color/black"
            android:paddingTop="5sp"
            android:id="@+id/algebra_stats_val"
            android:textSize="12sp"
            android:layout_below="@id/algebra_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Geometry"
            android:textColor="@color/black"
            android:fontFamily="@font/sora_medium"
            android:layout_centerHorizontal="true"
            android:paddingTop="20sp"
            android:layout_below="@id/algebra_stats_val"
            android:textSize="20sp"
            android:id="@+id/geometry_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="141 Questions | 87% Correct"
            android:textColor="@color/black"
            android:layout_centerHorizontal="true"
            android:fontFamily="@font/sora_medium"
            android:paddingTop="5sp"
            android:id="@+id/geometry_stats_val"
            android:textSize="12sp"
            android:layout_below="@id/geometry_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/black"
            android:text="Word Problems"
            android:fontFamily="@font/sora_medium"
            android:layout_centerHorizontal="true"
            android:paddingTop="20sp"
            android:layout_below="@id/geometry_stats_val"
            android:textSize="20sp"
            android:id="@+id/word_stats" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="80 Questions | 43% Correct"
            android:textColor="@color/black"
            android:fontFamily="@font/sora_medium"
            android:layout_centerHorizontal="true"
            android:paddingTop="5sp"
            android:id="@+id/word_stats_val"
            android:textSize="12sp"
            android:layout_below="@id/word_stats" />

    <androidx.appcompat.widget.SwitchCompat
            android:paddingTop="50sp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="20dp"
            android:paddingEnd="20dp"
            android:fontFamily="@font/sora_medium"
            android:textSize="16sp"
            android:layout_below="@id/word_stats_val"

            android:id="@+id/auto_explanation"
            android:text="@string/auto_explanation" />

        <androidx.appcompat.widget.AppCompatTextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/size_spinner_text"
                android:textSize="16sp"
                android:textColor="@color/black"
                android:fontFamily="@font/sora_medium"
                android:paddingStart="20sp"
                android:paddingTop="25sp"

                android:layout_below="@id/auto_explanation"
                android:text="Questions per session:"
                tools:ignore="RtlSymmetry"
                android:layout_marginTop="0dp" />

        <androidx.appcompat.widget.AppCompatSpinner
                android:layout_width="50sp"
                android:layout_alignParentEnd="true"
                android:layout_height="wrap_content"
                android:id="@+id/size_spinner"
                android:textSize="16sp"
                android:textColor="@color/black"
                android:fontFamily="@font/sora_medium"
                android:paddingStart="95sp"
                android:paddingTop="25sp"
                android:layout_below="@id/auto_explanation"
                android:layout_toEndOf="@id/size_spinner_text"
                android:entries="@array/size_spinner"
                tools:ignore="RtlSymmetry" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/enabled_types_text"
            android:textSize="16sp"
            android:textColor="@color/black"
            android:fontFamily="@font/sora_medium"
            android:paddingStart="20sp"
            android:paddingTop="25sp"
            android:layout_below="@id/size_spinner"
            android:text="@string/enabled_types_text"
            tools:ignore="RtlSymmetry"
            android:layout_marginTop="0dp" />

    <androidx.appcompat.widget.SwitchCompat
            android:paddingTop="10sp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="25dp"
            android:paddingEnd="20dp"
            android:textSize="14sp"
            android:fontFamily="@font/sora_medium"
            android:layout_below="@id/enabled_types_text"
            android:textColor="@color/black"
            android:id="@+id/algebra_switch"
            android:text="Algebra" />

    <androidx.appcompat.widget.SwitchCompat
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="25dp"
            android:paddingEnd="20dp"
            android:paddingTop="2sp"
            android:fontFamily="@font/sora_medium"
            android:textSize="14sp"
            android:id="@+id/geometry_switch"
            android:layout_below="@id/algebra_switch"
            android:textColor="@color/black"
            android:text="Geometry" />

    <androidx.appcompat.widget.SwitchCompat
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="25dp"
            android:fontFamily="@font/sora_medium"
            android:paddingEnd="20dp"
            android:textSize="14sp"
            android:id="@+id/word_switch"
            android:layout_below="@id/geometry_switch"
            android:textColor="@color/black"
            android:text="Word Problems" />

    <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:fontFamily="@font/sora_medium"
            android:text="Created by Demarri Dosunmu\nMentor: Anav Sood, PhD Statistics Student, Stanford University"
            android:layout_centerHorizontal="true"
            android:textAlignment="center"
            android:textColor="@color/black"
            android:paddingTop="5sp"
            android:id="@+id/general_info"
            android:textSize="11sp"
            android:layout_below="@id/word_switch" />
    <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/general_info"
            android:layout_centerHorizontal="true"
            android:paddingTop="10sp">

    <androidx.appcompat.widget.AppCompatButton
            android:layout_width="175sp"
            android:fontFamily="@font/sora_medium"
            android:textSize="12sp"
            android:layout_height="53sp"
            android:onClick="onClearExplanationCacheClicked"
            android:text="@string/clear_cached_explanations"
            android:id="@+id/clear_explanations" />

    <androidx.appcompat.widget.AppCompatButton
            android:layout_width="175sp"
            android:fontFamily="@font/sora_medium"
            android:layout_height="53sp"
            android:textSize="12sp"
            android:layout_toEndOf="@id/clear_explanations"
            android:onClick="onClearSessionsClicked"
            android:text="@string/clear_sessions" />
    </RelativeLayout>
    </RelativeLayout>
</ScrollView>