Skip to content

Commit 4c709b2

Browse files
committed
Use start/end instead of left/right in comment layout
1 parent 8f4cd03 commit 4c709b2

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

app/src/main/res/layout/list_comment_item.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
android:layout_width="42dp"
1616
android:layout_height="42dp"
1717
android:layout_alignParentStart="true"
18-
android:layout_alignParentLeft="true"
1918
android:layout_alignParentTop="true"
20-
android:layout_marginLeft="3dp"
21-
android:layout_marginRight="@dimen/comment_item_avatar_right_margin"
19+
android:layout_marginStart="3dp"
20+
android:layout_marginEnd="@dimen/comment_item_avatar_right_margin"
2221
android:focusable="false"
2322
android:src="@drawable/placeholder_person"
2423
app:shapeAppearance="@style/CircularImageView"
@@ -29,7 +28,7 @@
2928
android:layout_width="@dimen/video_item_detail_pinned_image_width"
3029
android:layout_height="@dimen/video_item_detail_pinned_image_height"
3130
android:layout_alignParentTop="true"
32-
android:layout_marginRight="@dimen/video_item_detail_pinned_right_margin"
31+
android:layout_marginEnd="@dimen/video_item_detail_pinned_right_margin"
3332
android:layout_toEndOf="@+id/itemThumbnailView"
3433
android:contentDescription="@string/detail_pinned_comment_view_description"
3534
android:src="@drawable/ic_pin"
@@ -56,18 +55,16 @@
5655
android:layout_below="@id/itemTitleView"
5756
android:layout_marginBottom="@dimen/channel_item_description_to_details_margin"
5857
android:layout_toEndOf="@+id/itemThumbnailView"
59-
android:layout_toRightOf="@+id/itemThumbnailView"
6058
android:textAppearance="?android:attr/textAppearanceLarge"
6159
android:textSize="@dimen/comment_item_content_text_size"
6260
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" />
6361

64-
6562
<ImageView
6663
android:id="@+id/detail_thumbs_up_img_view"
6764
android:layout_width="@dimen/video_item_detail_like_image_width"
6865
android:layout_height="@dimen/video_item_detail_like_image_height"
6966
android:layout_below="@id/itemCommentContentView"
70-
android:layout_toRightOf="@+id/itemThumbnailView"
67+
android:layout_toEndOf="@+id/itemThumbnailView"
7168
android:contentDescription="@string/detail_likes_img_view_description"
7269
android:src="@drawable/ic_thumb_up" />
7370

@@ -76,8 +73,8 @@
7673
android:layout_width="wrap_content"
7774
android:layout_height="@dimen/video_item_detail_like_image_height"
7875
android:layout_below="@id/itemCommentContentView"
79-
android:layout_marginLeft="@dimen/video_item_detail_like_margin"
80-
android:layout_toRightOf="@id/detail_thumbs_up_img_view"
76+
android:layout_marginStart="@dimen/video_item_detail_like_margin"
77+
android:layout_toEndOf="@id/detail_thumbs_up_img_view"
8178
android:lines="1"
8279
android:textAppearance="?android:attr/textAppearanceMedium"
8380
android:textSize="@dimen/video_item_detail_likes_text_size"
@@ -89,8 +86,8 @@
8986
android:layout_width="@dimen/video_item_detail_heart_image_size"
9087
android:layout_height="@dimen/video_item_detail_heart_image_size"
9188
android:layout_below="@id/itemCommentContentView"
92-
android:layout_marginLeft="@dimen/video_item_detail_heart_margin"
93-
android:layout_toRightOf="@+id/detail_thumbs_up_count_view"
89+
android:layout_marginStart="@dimen/video_item_detail_heart_margin"
90+
android:layout_toEndOf="@+id/detail_thumbs_up_count_view"
9491
android:contentDescription="@string/detail_heart_img_view_description"
9592
android:src="@drawable/ic_heart"
9693
android:visibility="gone"

0 commit comments

Comments
 (0)