Can update the content of a post.

This commit is contained in:
Pierre
2018-04-08 14:40:13 +02:00
parent 758ed7c09c
commit 13a7a85e1a
7 changed files with 142 additions and 2 deletions

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Post content -->
<EditText
android:id="@+id/post_content_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/edit_post_content_hint"/>
</LinearLayout>

View File

@ -1,6 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Update the content of the post -->
<item
android:id="@+id/action_edit_post"
android:title="@string/action_edit_post" />
<!-- Delete the post -->
<item
android:id="@+id/action_delete"

View File

@ -137,4 +137,10 @@
<string name="popup_editcomment_edit_placeholder">New content for the comment</string>
<string name="err_update_comment_content">An error occurred while trying to update comment content !</string>
<string name="comment_image_description">Comment image</string>
<string name="action_edit_post">Edit</string>
<string name="popup_editpost_title">Edit the post</string>
<string name="popup_editpost_cancel">Cancel</string>
<string name="popup_editpost_confirm">Edit</string>
<string name="edit_post_content_hint">New content for the post</string>
<string name="err_update_post_content">An error occurred while trying to update the content of the post!</string>
</resources>