From ede0ef38f84f47a86a346423f732598d7f50bcbe Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 23 Jul 2024 18:06:55 +0200 Subject: [PATCH] feat: make video, playlist, channel title/description selectable --- app/src/main/res/layout/description_layout.xml | 2 ++ app/src/main/res/layout/fragment_audio_player.xml | 5 +++-- app/src/main/res/layout/fragment_channel.xml | 4 +++- app/src/main/res/layout/fragment_playlist.xml | 4 +++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/description_layout.xml b/app/src/main/res/layout/description_layout.xml index 3aab3be77..03f809e52 100644 --- a/app/src/main/res/layout/description_layout.xml +++ b/app/src/main/res/layout/description_layout.xml @@ -30,6 +30,7 @@ android:layout_marginEnd="5dp" android:layout_weight="1" android:maxLines="2" + android:textIsSelectable="true" android:textSize="18sp" tools:text="Video Title" /> @@ -54,6 +55,7 @@ android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_weight="1" + android:textIsSelectable="true" tools:text="10M views - 2 days ago " /> + android:paddingHorizontal="30dp" + android:paddingVertical="15dp"> @@ -150,7 +151,8 @@ android:layout_height="wrap_content" android:layout_marginHorizontal="5dp" android:autoLink="web" - android:padding="10dp" /> + android:padding="10dp" + android:textIsSelectable="true" /> diff --git a/app/src/main/res/layout/fragment_playlist.xml b/app/src/main/res/layout/fragment_playlist.xml index 0cc587c31..39a6e347b 100644 --- a/app/src/main/res/layout/fragment_playlist.xml +++ b/app/src/main/res/layout/fragment_playlist.xml @@ -93,6 +93,7 @@ android:layout_weight="1" android:paddingHorizontal="5dp" android:paddingVertical="2dp" + android:textIsSelectable="true" android:textSize="20sp" android:textStyle="bold" /> @@ -149,7 +150,8 @@ android:autoLink="web" android:paddingHorizontal="10dp" android:paddingTop="5dp" - android:paddingBottom="10dp" /> + android:paddingBottom="10dp" + android:textIsSelectable="true" />