mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Can update the content of a post.
This commit is contained in:
13
app/src/main/res/layout/dialog_edit_post.xml
Normal file
13
app/src/main/res/layout/dialog_edit_post.xml
Normal 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>
|
@ -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"
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user