2018-09-03 01:22:59 +02:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2020-03-31 09:34:05 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-10-09 20:24:02 +02:00
xmlns:tools="http://schemas.android.com/tools"
2018-09-03 01:22:59 +02:00
android:id="@+id/itemRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-09-29 17:47:39 +02:00
android:padding="@dimen/comments_vertical_padding">
2018-09-03 01:22:59 +02:00
2022-02-23 21:11:25 +01:00
<com.google.android.material.imageview.ShapeableImageView
2018-09-03 01:22:59 +02:00
android:id="@+id/itemThumbnailView"
2022-02-23 21:11:25 +01:00
android:layout_width="42dp"
2018-09-03 01:22:59 +02:00
android:layout_height="42dp"
android:layout_alignParentStart="true"
2020-10-09 20:24:02 +02:00
android:layout_alignParentLeft="true"
2018-09-03 01:22:59 +02:00
android:layout_alignParentTop="true"
2022-02-23 21:11:25 +01:00
android:layout_marginLeft="3dp"
android:layout_marginRight="@dimen/comment_item_avatar_right_margin"
2019-11-14 16:44:54 +01:00
android:focusable="false"
2022-07-14 10:58:48 +02:00
android:src="@drawable/placeholder_person"
2022-02-23 21:11:25 +01:00
app:shapeAppearance="@style/CircularImageView"
2018-09-03 01:22:59 +02:00
tools:ignore="RtlHardcoded" />
2021-12-24 18:29:34 +01:00
<ImageView
android:id="@+id/detail_pinned_view"
android:layout_width="@dimen/video_item_detail_pinned_image_width"
android:layout_height="@dimen/video_item_detail_pinned_image_height"
android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_detail_pinned_right_margin"
android:layout_toEndOf="@+id/itemThumbnailView"
android:contentDescription="@string/detail_pinned_comment_view_description"
2022-07-06 23:46:39 +02:00
android:src="@drawable/ic_pin"
2021-12-24 18:29:34 +01:00
android:visibility="gone"
tools:visibility="visible" />
2021-09-04 19:32:38 +02:00
<org.schabi.newpipe.views.NewPipeTextView
2018-09-03 01:22:59 +02:00
android:id="@+id/itemTitleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginBottom="@dimen/video_item_search_image_right_margin"
2021-12-24 18:29:34 +01:00
android:layout_toEndOf="@+id/detail_pinned_view"
2018-09-03 01:22:59 +02:00
android:ellipsize="end"
android:lines="1"
android:textAppearance="?android:attr/textAppearanceSmall"
2019-03-01 08:58:32 +01:00
android:textSize="@dimen/comment_item_title_text_size"
2018-09-03 01:22:59 +02:00
tools:text="Author Name, Lorem ipsum" />
2021-09-04 19:32:38 +02:00
<org.schabi.newpipe.views.NewPipeTextView
2018-09-03 01:22:59 +02:00
android:id="@+id/itemCommentContentView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/itemTitleView"
android:layout_marginBottom="@dimen/channel_item_description_to_details_margin"
android:layout_toEndOf="@+id/itemThumbnailView"
android:layout_toRightOf="@+id/itemThumbnailView"
android:textAppearance="?android:attr/textAppearanceLarge"
2019-03-01 08:58:32 +01:00
android:textSize="@dimen/comment_item_content_text_size"
2018-09-03 01:22:59 +02:00
tools:text="Comment Content, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blanditLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blanditLorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tristique vitae sem vitae blandit" />
<ImageView
android:id="@+id/detail_thumbs_up_img_view"
android:layout_width="@dimen/video_item_detail_like_image_width"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/itemCommentContentView"
android:layout_toRightOf="@+id/itemThumbnailView"
android:contentDescription="@string/detail_likes_img_view_description"
2022-07-06 23:46:39 +02:00
android:src="@drawable/ic_thumb_up" />
2018-09-03 01:22:59 +02:00
2021-09-04 19:32:38 +02:00
<org.schabi.newpipe.views.NewPipeTextView
2018-09-03 01:22:59 +02:00
android:id="@+id/detail_thumbs_up_count_view"
android:layout_width="wrap_content"
android:layout_height="@dimen/video_item_detail_like_image_height"
android:layout_below="@id/itemCommentContentView"
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
android:layout_toRightOf="@id/detail_thumbs_up_img_view"
android:lines="1"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/video_item_detail_likes_text_size"
tools:ignore="RtlHardcoded"
tools:text="12M" />
2021-07-23 17:30:47 +02:00
<ImageView
2021-07-23 19:43:25 +02:00
android:id="@+id/detail_heart_image_view"
android:layout_width="@dimen/video_item_detail_heart_image_size"
android:layout_height="@dimen/video_item_detail_heart_image_size"
2021-07-23 17:30:47 +02:00
android:layout_below="@id/itemCommentContentView"
android:layout_marginLeft="@dimen/video_item_detail_heart_margin"
android:layout_toRightOf="@+id/detail_thumbs_up_count_view"
android:contentDescription="@string/detail_heart_img_view_description"
2022-07-06 23:46:39 +02:00
android:src="@drawable/ic_heart"
2021-07-23 17:30:47 +02:00
android:visibility="gone"
2022-07-06 23:46:39 +02:00
tools:visibility="visible" />
2018-12-08 16:02:28 +01:00
2021-09-04 19:32:38 +02:00
<org.schabi.newpipe.views.NewPipeTextView
2018-12-08 16:02:28 +01:00
android:id="@+id/itemPublishedTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/itemCommentContentView"
android:layout_marginLeft="12dp"
2021-07-23 19:43:25 +02:00
android:layout_toRightOf="@id/detail_heart_image_view"
2018-12-08 16:02:28 +01:00
android:lines="1"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/video_item_search_upload_date_text_size"
tools:text="1 year ago" />
2018-09-03 01:22:59 +02:00
</RelativeLayout>