mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Work progress on comments update.
This commit is contained in:
@ -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>
|
10
app/src/main/res/menu/menu_comments_actions.xml
Normal file
10
app/src/main/res/menu/menu_comments_actions.xml
Normal 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>
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user