Add No Attestations when attestations DB is empty
This commit is contained in:
@ -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"
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user