mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-04-20 20:10:54 +00:00
44 lines
1.6 KiB
XML
44 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
style="@style/CommentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<!-- 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"
|
|
android:src="@drawable/default_account_image"
|
|
android:contentDescription="@string/user_image_description" />
|
|
|
|
<TextView
|
|
android:id="@+id/user_account_name"
|
|
style="@style/CommentUserName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:text="User name" />
|
|
|
|
|
|
<!-- Comment content -->
|
|
<TextView
|
|
android:id="@+id/comment_text"
|
|
style="@style/CommentText"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:layout_height="wrap_content"
|
|
tools:text="A comment content" />
|
|
|
|
<!-- Comment actions -->
|
|
<ImageView
|
|
style="@style/CommentActionsButton"
|
|
android:id="@+id/comment_actions_btn"
|
|
android:layout_width="@dimen/comment_options_btn_width"
|
|
android:layout_height="@dimen/comment_options_btn_height"
|
|
android:src="@android:drawable/ic_menu_manage"
|
|
android:contentDescription="@string/comment_action_btn_description"/>
|
|
|
|
</LinearLayout> |