Display a notice when the user does not belong to any group.

This commit is contained in:
Pierre HUBERT
2018-09-08 11:10:44 +02:00
parent 60fd6e75cc
commit 8cf57d17c6
4 changed files with 37 additions and 6 deletions

View File

@ -30,4 +30,17 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/noGroupNotice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:text="@string/notice_no_group"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>

View File

@ -297,4 +297,7 @@
<string name="action_send_survey_response">Répondre</string>
<string name="err_cancel_response">Une erreur a survenue lors de l\'annulation de votre réponse au sondage !</string>
<string name="err_respond_survey">Une erreur a survenue lors de l\'envoi de votre réponse au sondage !</string>
<string name="action_user_groups">Mes groupes</string>
<string name="err_get_user_groups">Une erreur a survenu lors de la récupération de vos groupes !</string>
<string name="notice_no_group">Vous n\'avez aucun groupe pour le moment.</string>
</resources>

View File

@ -298,4 +298,5 @@
<string name="err_respond_survey">Could not send response to the server!</string>
<string name="action_user_groups">My groups</string>
<string name="err_get_user_groups">Could not get the groups of the user!</string>
<string name="notice_no_group">You do not have any group yet.</string>
</resources>