Merge pull request #6272 from Bnyro/master

feat: make video, playlist, channel title/description selectable
This commit is contained in:
Bnyro 2024-07-23 18:07:15 +02:00 committed by GitHub
commit f3d226a890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 11 additions and 4 deletions

View File

@ -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 " />
<com.github.libretube.ui.views.DrawableTextView

View File

@ -137,6 +137,7 @@
style="@style/TextViewMarquee"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textIsSelectable="true"
android:textSize="24sp" />
<TextView
@ -269,8 +270,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingVertical="15dp"
android:paddingHorizontal="30dp">
android:paddingHorizontal="30dp"
android:paddingVertical="15dp">
<LinearLayout
android:layout_width="wrap_content"

View File

@ -67,6 +67,7 @@
android:drawablePadding="3dp"
android:ellipsize="end"
android:maxLines="1"
android:textIsSelectable="true"
android:textSize="16sp"
android:textStyle="bold"
tools:text="Channel Name" />
@ -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" />
</LinearLayout>

View File

@ -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" />
<LinearLayout
android:layout_width="match_parent"