mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-29 21:42:33 +01:00
Change heart color to be red, add else clause for non hearted comments, and apply some code style suggestions.
This commit is contained in:
parent
3874e16187
commit
74173317de
@ -82,7 +82,7 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
|
||||
itemDislikesCountView = itemView.findViewById(R.id.detail_thumbs_down_count_view);
|
||||
itemPublishedTime = itemView.findViewById(R.id.itemPublishedTime);
|
||||
itemContentView = itemView.findViewById(R.id.itemCommentContentView);
|
||||
itemHeartView = itemView.findViewById(R.id.detail_heart_img_view);
|
||||
itemHeartView = itemView.findViewById(R.id.detail_heart_image_view);
|
||||
|
||||
downloadThumbnailKey = infoItemBuilder.getContext().
|
||||
getString(R.string.download_thumbnail_key);
|
||||
@ -157,6 +157,8 @@ public class CommentsMiniInfoItemHolder extends InfoItemHolder {
|
||||
|
||||
if (item.isHeartedByUploader()) {
|
||||
itemHeartView.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
itemHeartView.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
itemView.setOnClickListener(view -> {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="#FFFFFF"
|
||||
android:tint="#FF5252"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
@ -1,6 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="#E53935"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
|
@ -72,9 +72,9 @@
|
||||
tools:text="12M" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/detail_heart_img_view"
|
||||
android:layout_width="@dimen/video_item_detail_heart_image_width"
|
||||
android:layout_height="@dimen/video_item_detail_heart_image_height"
|
||||
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"
|
||||
android:layout_below="@id/itemCommentContentView"
|
||||
android:layout_marginLeft="@dimen/video_item_detail_heart_margin"
|
||||
android:layout_toRightOf="@+id/detail_thumbs_up_count_view"
|
||||
@ -116,7 +116,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/itemCommentContentView"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_toRightOf="@id/detail_heart_img_view"
|
||||
android:layout_toRightOf="@id/detail_heart_image_view"
|
||||
android:lines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textSize="@dimen/video_item_search_upload_date_text_size"
|
||||
|
@ -81,8 +81,7 @@
|
||||
<dimen name="video_item_detail_sub_channel_image_size">16dp</dimen>
|
||||
<dimen name="video_item_detail_like_image_height">18sp</dimen>
|
||||
<dimen name="video_item_detail_like_image_width">18sp</dimen>
|
||||
<dimen name="video_item_detail_heart_image_width">18sp</dimen>
|
||||
<dimen name="video_item_detail_heart_image_height">18sp</dimen>
|
||||
<dimen name="video_item_detail_heart_image_size">18sp</dimen>
|
||||
<dimen name="channel_avatar_size">70dp</dimen>
|
||||
<dimen name="sub_channel_avatar_size">35dp</dimen>
|
||||
<dimen name="mini_player_height">60dp</dimen>
|
||||
|
Loading…
Reference in New Issue
Block a user