From 3ca4d5bd2b0bc1271f3d29a7e13c474ef9dd25b2 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 28 Jul 2022 16:11:35 +0200 Subject: [PATCH] fix warnings --- .../res/layout/channel_subscription_row.xml | 9 +- app/src/main/res/layout/chapter_column.xml | 2 +- app/src/main/res/layout/comments_row.xml | 9 +- app/src/main/res/layout/fragment_channel.xml | 13 +- .../main/res/layout/fragment_community.xml | 2 +- app/src/main/res/layout/fragment_player.xml | 12 +- app/src/main/res/layout/fragment_playlist.xml | 2 +- app/src/main/res/layout/fragment_search.xml | 258 +----------------- app/src/main/res/layout/playlist_row.xml | 8 +- app/src/main/res/layout/replies_row.xml | 9 +- app/src/main/res/layout/trending_row.xml | 8 +- 11 files changed, 44 insertions(+), 288 deletions(-) diff --git a/app/src/main/res/layout/channel_subscription_row.xml b/app/src/main/res/layout/channel_subscription_row.xml index d8b8b7430..d2ec9e123 100644 --- a/app/src/main/res/layout/channel_subscription_row.xml +++ b/app/src/main/res/layout/channel_subscription_row.xml @@ -1,6 +1,7 @@ + android:textSize="16sp" + tools:text="Channel Name" /> + app:elevation="20dp" + tools:text="@string/unsubscribe" /> \ No newline at end of file diff --git a/app/src/main/res/layout/chapter_column.xml b/app/src/main/res/layout/chapter_column.xml index d8dc611a4..649f78e50 100644 --- a/app/src/main/res/layout/chapter_column.xml +++ b/app/src/main/res/layout/chapter_column.xml @@ -23,12 +23,12 @@ diff --git a/app/src/main/res/layout/comments_row.xml b/app/src/main/res/layout/comments_row.xml index 5256e49d6..2a4602244 100644 --- a/app/src/main/res/layout/comments_row.xml +++ b/app/src/main/res/layout/comments_row.xml @@ -1,6 +1,7 @@ @@ -45,9 +46,9 @@ android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="2" - android:text="Author and Time" android:textSize="15sp" - android:textStyle="bold" /> + android:textStyle="bold" + tools:text="Author and Time" /> + tools:text="Comment Text" /> + tools:text="LikeCount" /> @@ -57,9 +57,9 @@ android:drawablePadding="3dip" android:ellipsize="end" android:maxLines="1" - android:text="Channel Name" android:textSize="16sp" - android:textStyle="bold" /> + android:textStyle="bold" + tools:text="Channel Name" /> @@ -78,14 +78,15 @@ style="@style/Widget.Material3.Button.ElevatedButton" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:drawableLeft="@drawable/ic_bell_small" + android:drawableStart="@drawable/ic_bell_small" android:drawableTint="?android:attr/textColorPrimary" android:stateListAnimator="@null" android:text="@string/subscribe" android:textColor="?android:attr/textColorPrimary" android:textSize="12sp" app:cornerRadius="20dp" - app:elevation="20dp" /> + app:elevation="20dp" + tools:targetApi="m" /> diff --git a/app/src/main/res/layout/fragment_community.xml b/app/src/main/res/layout/fragment_community.xml index 6651fbd90..8b7715693 100644 --- a/app/src/main/res/layout/fragment_community.xml +++ b/app/src/main/res/layout/fragment_community.xml @@ -6,7 +6,7 @@ + android:textSize="18sp" + tools:text="Video Title" /> + tools:text="10M views 2 days ago " /> + tools:text="4.2K" /> + tools:text="1.3K" /> @@ -275,7 +275,7 @@ android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:drawableLeft="@drawable/ic_bell" + android:drawableStart="@drawable/ic_bell" android:drawableTint="?android:attr/textColorPrimary" android:text="@string/subscribe" android:textColor="?android:attr/textColorPrimary" diff --git a/app/src/main/res/layout/fragment_playlist.xml b/app/src/main/res/layout/fragment_playlist.xml index 5b30b3347..c3e29c5e9 100644 --- a/app/src/main/res/layout/fragment_playlist.xml +++ b/app/src/main/res/layout/fragment_playlist.xml @@ -43,7 +43,7 @@ android:layout_width="20dp" android:layout_height="20dp" android:layout_gravity="center" - android:layout_marginRight="10dp" + android:layout_marginEnd="10dp" android:src="@drawable/ic_three_dots" /> diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml index 1cd0329b1..b39ba3a3a 100644 --- a/app/src/main/res/layout/fragment_search.xml +++ b/app/src/main/res/layout/fragment_search.xml @@ -37,8 +37,8 @@ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="20dp" - android:layout_marginRight="30dp" + android:layout_marginStart="20dp" + android:layout_marginEnd="30dp" android:background="@android:color/transparent" app:hintEnabled="false"> @@ -59,9 +59,9 @@ android:id="@+id/clearSearch_imageView" android:layout_width="20dp" android:layout_height="20dp" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:layout_centerVertical="true" - android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" android:src="@drawable/ic_close" /> @@ -71,260 +71,12 @@ android:id="@+id/filterMenu_imageView" android:layout_width="30dp" android:layout_height="30dp" - android:layout_alignParentRight="true" android:layout_marginTop="25dp" - android:layout_marginRight="20dp" + android:layout_marginEnd="20dp" android:layout_weight="0" android:src="@drawable/ic_filter" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + app:layout_constraintTop_toTopOf="parent" + tools:text="Playlist Name" /> + app:layout_constraintTop_toBottomOf="@+id/playlist_title" + tools:text="Description" /> @@ -34,9 +35,9 @@ android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="2" - android:text="Author and Time" android:textSize="15sp" - android:textStyle="bold" /> + android:textStyle="bold" + tools:text="Author and Time" /> + tools:text="Comment Text" /> + tools:text="LikeCount" /> + app:layout_constraintTop_toBottomOf="@+id/thumbnailcard" + tools:text="Title" /> + app:layout_constraintTop_toBottomOf="@+id/textView_title" + tools:text="Channel Name" />