Add No Attestations when attestations DB is empty

This commit is contained in:
2020-04-17 08:59:14 +02:00
parent 71cb112bbe
commit b95692bdf3
3 changed files with 23 additions and 1 deletions

View File

@ -29,6 +29,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@string/no_attestation"
android:visibility="@{viewModel.displayNoAttestation}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/title" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/attestation_recycler_view"
android:layout_width="match_parent"

View File

@ -9,6 +9,7 @@
<string name="attestation_subtitle">#RestonsChezNous</string>
<string name="error_cannot_create_attestation">Erreur lors de la génération de l\'attestation, tout les champs ne sont pas compléter</string>
<string name="attestation_generated">Attestation générer</string>
<string name="no_attestation">Aucune attestation, veuillez en générer une.</string>
<!-- Field for attestation -->
<string name="first_name">Prénom</string>