Merge pull request #1802 from Bnyro/master

channel layout fixes
This commit is contained in:
Bnyro 2022-11-11 17:52:43 +01:00 committed by GitHub
commit 56b001828f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View File

@ -104,7 +104,7 @@ class SearchAdapter(
.show(childFragmentManager, VideoOptionsBottomSheet::class.java.name)
true
}
channelImage.setOnClickListener {
channelContainer.setOnClickListener {
NavigationHelper.navigateChannel(root.context, item.uploaderUrl)
}
watchProgress.setWatchProgressLength(videoId, item.duration!!)

View File

@ -126,7 +126,7 @@ class VideosAdapter(
ImageHelper.loadImage(video.uploaderAvatar, channelImage)
channelName.text = video.uploaderName
channelImage.setOnClickListener {
channelContainer.setOnClickListener {
NavigationHelper.navigateChannel(root.context, video.uploaderUrl)
}
}

View File

@ -33,9 +33,9 @@
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/channel_image"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal" />
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center" />
<LinearLayout
android:layout_width="0dp"
@ -47,7 +47,7 @@
<TextView
android:id="@+id/channel_name"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:layout_marginTop="3.5dp"

View File

@ -89,6 +89,7 @@
app:layout_constraintTop_toBottomOf="@id/video_title" />
<LinearLayout
android:id="@+id/channel_container"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="8dp"