Work progress on comments update.

This commit is contained in:
Pierre
2018-03-18 14:24:16 +01:00
parent 5c6a38b49c
commit 066805df27
7 changed files with 88 additions and 6 deletions

View File

@ -8,6 +8,7 @@
<!-- User name and image-->
<ImageView
style="@style/CommentUserImage"
android:id="@+id/user_account_image"
android:layout_width="@dimen/account_image_small_width"
android:layout_height="@dimen/account_image_small_height"
@ -31,4 +32,12 @@
android:layout_height="wrap_content"
tools:text="A comment content" />
<!-- Comment actions -->
<ImageButton
style="@style/CommentActionsButton"
android:id="@+id/comment_actions_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@android:drawable/ic_menu_manage" />
</LinearLayout>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Delete comment -->
<item
android:id="@+id/action_delete"
android:title="@string/action_delete_comment" />
</menu>

View File

@ -105,4 +105,5 @@
<string name="err_invalid_comment_content">Specified comment content seems to be invalid…</string>
<string name="err_create_comment">An error occurred while trying to create comment!</string>
<string name="action_send">Send</string>
<string name="action_delete_comment">Delete</string>
</resources>

View File

@ -75,6 +75,11 @@
<item name="android:paddingBottom">2dp</item>
</style>
<!-- Comment user account image -->
<style name="CommentUserImage">
<item name="android:layout_gravity">center_vertical</item>
</style>
<!-- Comment user name -->
<style name="CommentUserName">
<item name="android:layout_gravity">center</item>
@ -87,4 +92,9 @@
<item name="android:layout_gravity">center</item>
<item name="android:textColor">@android:color/black</item>
</style>
<!-- Comment actions button -->
<style name="CommentActionsButton">
<item name="android:padding">2dp</item>
</style>
</resources>