Add AppIntro activity

This commit is contained in:
Matte23
2020-10-28 10:30:17 +01:00
parent 4c09e91e99
commit 13ccae24bc
10 changed files with 212 additions and 3 deletions

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="@dimen/appintro_statusbar_height"
android:paddingBottom="@dimen/appintro2_bottombar_height"
android:background="@color/colorPrimary">
<TextView
android:id="@+id/school_selection_title"
android:layout_width="0dp"
android:layout_height="0dp"
android:gravity="center"
app:layout_constraintVertical_weight="2"
app:layout_constraintBottom_toTopOf="@+id/school_selection_spinner"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="spread"
style="@style/AppIntroDefaultHeading"
android:text="@string/activity_intro_school_selection_title" />
<com.tiper.MaterialSpinner
android:id="@+id/school_selection_spinner"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:hint="@string/activity_intro_school_selection_hint"
style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.Dense"
app:spinnerMode="bottomsheet"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/school_selection_note"
android:layout_width="0dp"
android:layout_height="0dp"
android:autoLink="web"
app:layout_constraintVertical_weight="3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/school_selection_spinner"
style="@style/AppIntroDefaultText"
android:text="@string/activity_intro_school_selection_description" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -4,6 +4,7 @@
<string name="title_favourites">Preferiti</string>
<string name="title_reminders">Promemoria</string>
<string name="title_settings">Impostazioni</string>
<string name="title_intro">Benvenuto in Circolapp</string>
<string name="menu_about">Informazioni</string>
<string name="menu_search">Cerca</string>
@@ -47,6 +48,14 @@
<string name="activity_info_source_code">Codice sorgente</string>
<string name="activity_info_source_code_description">Puoi scaricare il codice sorgente da &lt;a href="https://github.com/Matte23/circolapp"&gt;https://github.com/Matte23/circolapp&lt;/a&gt;</string>
<string name="activity_intro_welcome_description">Con Circolapp puoi rimanere aggiornato sulle circolari della tua scuola. Visualizzare e scaricare le circolari non è mai stato così semplice</string>
<string name="activity_intro_school_selection_title">Inizia scegliendo la tua scuola</string>
<string name="activity_intro_school_selection_description">Puoi modificare la tua scelta in un secondo momento nelle impostazioni</string>
<string name="activity_intro_school_selection_error">Scegli una scuola</string>
<string name="activity_intro_school_selection_hint">Scuola</string>
<string name="activity_intro_last_slide_title">Hai finito</string>
<string name="activity_intro_last_slide_description">Adesso puoi iniziare ad usare Circolapp</string>
<string name="dialog_install_pdf_reader_title">Lettore PDF non installato</string>
<string name="dialog_install_pdf_reader_content">Installa un lettore di PDF per aprire le circolari</string>

View File

@@ -4,6 +4,7 @@
<string name="title_favourites">Favourites</string>
<string name="title_reminders">Reminders</string>
<string name="title_settings">Settings</string>
<string name="title_intro">Welcome to Circolapp</string>
<string name="menu_about">About</string>
<string name="menu_search">Search</string>
@@ -48,6 +49,14 @@
<string name="activity_info_source_code">Source code</string>
<string name="activity_info_source_code_description">The source code can be downloaded from &lt;a href="https://github.com/Matte23/circolapp"&gt;https://github.com/Matte23/circolapp&lt;/a&gt;</string>
<string name="activity_intro_welcome_description">With Circolapp you can stay updated on the circulars of your school. Viewing and downloading circulars has never been easier</string>
<string name="activity_intro_school_selection_title">Start by choosing your school</string>
<string name="activity_intro_school_selection_description">You can change your choice later in the settings</string>
<string name="activity_intro_school_selection_error">Please select a school</string>
<string name="activity_intro_school_selection_hint">School</string>
<string name="activity_intro_last_slide_title">You\'re done</string>
<string name="activity_intro_last_slide_description">Now you can start using Circolapp</string>
<string name="dialog_install_pdf_reader_title">PDF reader not found</string>
<string name="dialog_install_pdf_reader_content">Please install an external application to open circular letters</string>