CAn update the content of a conversation message.

This commit is contained in:
Pierre HUBERT
2018-08-29 14:27:08 +02:00
parent d3f95adb46
commit e533770b6d
11 changed files with 217 additions and 3 deletions

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<android.support.design.widget.TextInputEditText
android:id="@+id/input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_edit_conversation_message" />
</android.support.design.widget.TextInputLayout>
</android.support.constraint.ConstraintLayout>

View File

@ -5,4 +5,8 @@
android:id="@+id/action_delete"
android:title="@string/action_delete" />
<item
android:id="@+id/action_update_content"
android:title="@string/action_update_content" />
</menu>

View File

@ -257,4 +257,12 @@
<string name="err_delete_conversation_message">Une erreur a survenue lors de la suppression du message !</string>
<string name="err_get_user_friends">Une erreur a survenu lors de la récupération de la liste des amis de l\'utilisateur !</string>
<string name="notice_user_has_no_friend">Ce utilisateur n\'a aucun ami pour le moment.</string>
<string name="action_update_content">Mettre à jour le contenu</string>
<string name="hint_edit_conversation_message">Contenu du message</string>
<string name="dialog_edit_conversation_message_content_title">Mise à jour du message</string>
<string name="dialog_edit_conversation_message_content_cancel">Annuler</string>
<string name="dialog_edit_conversation_message_content_update">Mettre à jour</string>
<string name="err_invalid_conversation_message_content">Le contenu du message est invalide !</string>
<string name="err_update_conversation_message_content">Une erreur a survenue lors de la mise à jour du contenu du message ! Veuillez réessayer…</string>
<string name="success_update_conversation_message_content">Le contenu du message a bien été mis à jour !</string>
</resources>

View File

@ -256,4 +256,12 @@
<string name="tab_friends">Friends</string>
<string name="err_get_user_friends">Could not get the friends of the user!</string>
<string name="notice_user_has_no_friend">This user has not any friend yet.</string>
<string name="action_update_content">Update content</string>
<string name="hint_edit_conversation_message">Message content</string>
<string name="dialog_edit_conversation_message_content_title">Update message</string>
<string name="dialog_edit_conversation_message_content_cancel">Cancel</string>
<string name="dialog_edit_conversation_message_content_update">Update</string>
<string name="err_invalid_conversation_message_content">The content of the conversation message is invalid!</string>
<string name="err_update_conversation_message_content">Could not update conversation message content!</string>
<string name="success_update_conversation_message_content">The content of the conversation message has been successfully updated!</string>
</resources>