2019-04-29 19:27:51 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-09-20 15:49:09 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-04-29 19:27:51 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/coordinatorLayout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:background="@color/colorBackground"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:fitsSystemWindows="true"
|
2019-09-20 15:49:09 +02:00
|
|
|
tools:context=".activities.FirstTime"
|
|
|
|
|
android:animateLayoutChanges="true">
|
2019-04-29 19:27:51 +02:00
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layoutAnimation="@anim/layout_animation_fall_down">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txtWelcome"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_marginTop="56dp"
|
|
|
|
|
android:layout_marginStart="16dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:text="@string/welcome"
|
2019-09-20 15:49:09 +02:00
|
|
|
android:textAlignment="viewStart"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorAccent"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:fontFamily="@font/manrope_extrabold"
|
2019-09-18 11:12:10 +02:00
|
|
|
android:textSize="28sp"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txtsetupthings"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:text="@string/firstSomeThings"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textAlignment="center"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textSize="14sp"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtWelcome"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtWelcome" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txttellmename"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:text="@string/tellMeYourName"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textAlignment="center"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textSize="14sp"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtsetupthings"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtsetupthings" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/txtLayoutClasses"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2019-07-31 19:48:21 +02:00
|
|
|
app:boxStrokeColor="@color/colorAccent"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:boxStrokeWidth="1dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:hint="@string/yourName"
|
|
|
|
|
android:textColorHint="@color/colorHint"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/txttellmename"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txttellmename"
|
|
|
|
|
android:importantForAutofill="no">
|
|
|
|
|
|
2019-07-30 22:48:13 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2019-04-29 19:27:51 +02:00
|
|
|
android:id="@+id/txtName"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
|
android:ems="10"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:gravity="start"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:imeOptions="flagNoExtractUi"
|
|
|
|
|
android:inputType="textNoSuggestions"
|
|
|
|
|
android:singleLine="true"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:textSize="16sp"/>
|
2019-04-29 19:27:51 +02:00
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txtNextClass"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_width="0dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:gravity="start"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:text="@string/nextGrade"
|
|
|
|
|
android:textColor="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textSize="14sp"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtLayoutClasses" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/txtLayoutClass"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2019-07-31 19:48:21 +02:00
|
|
|
app:boxStrokeColor="@color/colorAccent"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:boxStrokeWidth="1dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_width="0dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_marginTop="8dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:hint="@string/yourGrade"
|
|
|
|
|
android:textColorHint="@color/colorHint"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/chipHelpClasses"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtNextClass"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtNextClass"
|
|
|
|
|
android:importantForAutofill="no">
|
|
|
|
|
|
2019-07-30 22:48:13 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2019-04-29 19:27:51 +02:00
|
|
|
android:id="@+id/txtClasses"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
|
android:ems="10"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:gravity="start"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:imeOptions="flagNoExtractUi"
|
|
|
|
|
android:inputType="textNoSuggestions"
|
|
|
|
|
android:singleLine="true"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:textSize="16sp"/>
|
2019-04-29 19:27:51 +02:00
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/chipHelpClasses"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
|
android:src="@drawable/ic_qmark"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:tint="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/txtLayoutClass"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/txtLayoutClass" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txtSenior"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:text="@string/seniorCourses"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:gravity="start"
|
2019-09-03 18:18:21 +02:00
|
|
|
android:layout_marginTop="16dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtLayoutClass" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
|
|
android:id="@+id/txtLayoutCourses"
|
|
|
|
|
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
2019-07-31 19:48:21 +02:00
|
|
|
app:boxStrokeColor="@color/colorAccent"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:boxStrokeWidth="1dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_width="0dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_marginTop="8dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:hint="@string/yourCourses"
|
|
|
|
|
android:textColorHint="@color/colorHint"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/chipHelpCourses"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtSenior"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtSenior">
|
|
|
|
|
|
2019-07-30 22:48:13 +02:00
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
2019-04-29 19:27:51 +02:00
|
|
|
android:id="@+id/txtCourses"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
|
android:ems="10"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:gravity="start"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:imeOptions="flagNoExtractUi"
|
|
|
|
|
android:inputType="textNoSuggestions"
|
|
|
|
|
android:singleLine="true"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:textColor="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:textSize="16sp"
|
|
|
|
|
android:importantForAutofill="no"/>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
|
android:id="@+id/chipHelpCourses"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:backgroundTint="@android:color/transparent"
|
|
|
|
|
android:src="@drawable/ic_qmark"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:tint="@color/colorText"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/txtLayoutCourses"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/txtLayoutCourses" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/txtMore"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_width="0dp"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="16dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:text="@string/moreSettings"
|
|
|
|
|
android:textColor="@color/colorText"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
|
2019-04-29 19:27:51 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtLayoutCourses" />
|
|
|
|
|
|
2019-09-15 12:01:17 +02:00
|
|
|
<LinearLayout
|
2019-04-29 19:27:51 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-09-11 20:59:55 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
|
android:paddingEnd="16dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:layout_marginTop="8dp"
|
2019-08-01 15:36:21 +02:00
|
|
|
android:layout_marginBottom="64dp"
|
2019-09-11 20:59:55 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/txtMore"
|
2019-08-01 15:36:21 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-09-11 20:59:55 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-09-18 11:12:10 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
android:layoutAnimation="@anim/layout_animation_fall_down">
|
2019-04-29 19:27:51 +02:00
|
|
|
|
2019-09-11 20:59:55 +02:00
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/cbGreetings"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/enableGreeting"
|
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:textColor="@color/colorText"
|
|
|
|
|
android:textSize="14sp"/>
|
2019-09-03 18:18:21 +02:00
|
|
|
|
2019-09-11 20:59:55 +02:00
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/cbDark"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/enableDarkMode"
|
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:textColor="@color/colorText"
|
|
|
|
|
android:textSize="14sp"/>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/cbNotif"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/notificationsAndSync"
|
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:textColor="@color/colorText"
|
|
|
|
|
android:textSize="14sp"/>
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/cbPersonalised"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/personalised"
|
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
|
android:textColor="@color/colorText"
|
|
|
|
|
android:textSize="14sp"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2019-09-03 18:18:21 +02:00
|
|
|
|
2019-04-29 19:27:51 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
2019-07-30 22:48:13 +02:00
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
|
android:id="@+id/efab"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:backgroundTint="@color/colorAccent"
|
|
|
|
|
android:text="@string/letsGo"
|
|
|
|
|
android:textColor="@color/colorBackground"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:icon="@drawable/ic_tick"
|
2019-07-31 19:48:21 +02:00
|
|
|
app:iconTint="@color/colorBackground"
|
2019-07-30 22:48:13 +02:00
|
|
|
android:layout_gravity="bottom|end"
|
2019-09-20 15:49:09 +02:00
|
|
|
android:translationZ="-1dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/snackBarLayout"/>
|
|
|
|
|
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
|
android:id="@+id/snackBarLayout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:clickable="false"
|
|
|
|
|
android:focusable="false"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
2019-07-30 22:48:13 +02:00
|
|
|
|
2019-04-29 19:27:51 +02:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/linearInflation"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-07-31 19:48:21 +02:00
|
|
|
android:background="@color/colorBackground"
|
2019-04-29 19:27:51 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-07-30 22:48:13 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
2019-04-29 19:27:51 +02:00
|
|
|
|
2019-09-20 15:49:09 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|