Display post actions context menu.

This commit is contained in:
Pierre
2018-03-25 09:56:09 +02:00
parent f8e2eefe68
commit 7a2177a45c
8 changed files with 91 additions and 8 deletions

View File

@@ -15,6 +15,10 @@
<dimen name="fragment_conversation_buttons_height">50dp</dimen>
<dimen name="fragment_conversation_buttons_width">50dp</dimen>
<!-- Dimensions for the posts options button -->
<dimen name="post_options_btn_width">20dp</dimen>
<dimen name="post_options_btn_height">20dp</dimen>
<!-- Dimensions for the comments options button -->
<dimen name="comment_options_btn_width">20dp</dimen>
<dimen name="comment_options_btn_height">20dp</dimen>

View File

@@ -112,4 +112,6 @@
<string name="popup_deletecomment_confirm">Yes</string>
<string name="err_delete_comment">An error occurred while trying to delete the comment !</string>
<string name="comment_action_btn_description">Actions on comment</string>
<string name="post_action_btn_description">Actions on post</string>
<string name="action_delete_post">Delete</string>
</resources>

View File

@@ -28,14 +28,20 @@
</style>
<!-- Posts style -->
<!-- Post contener -->
<style name="PostContener">
<!-- Post container -->
<style name="PostContainer">
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:paddingStart">5dp</item>
<item name="android:paddingEnd">5dp</item>
</style>
<!-- Comment actions button -->
<style name="PostActionsButton">
<item name="android:padding">2dp</item>
<item name="android:layout_gravity">center</item>
</style>
<!-- Post header -->
<style name="PostHeader">
<item name="android:padding">2dp</item>
@@ -56,6 +62,7 @@
<!-- Post visibility -->
<style name="PostVisibility">
<item name="android:paddingEnd">2dp</item>
<item name="android:layout_gravity">center_vertical</item>
</style>
<!-- Post content -->
@@ -67,8 +74,8 @@
<!-- Comments style -->
<!-- Comments contener -->
<style name="CommentContener">
<!-- Comments container -->
<style name="CommentContainer">
<item name="android:paddingTop">0dp</item>
<item name="android:paddingStart">5dp</item>
<item name="android:paddingEnd">5dp</item>