mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-09-20 19:29:47 +00:00
a55acd38df
This TextView class extends the AppCompatTextView class from androidx. These changes (only in XML ressources) allow us to share the selected text by using ShareUtils.shareText, which opens the Android system chooser instead of the Huawei system chooser on EMUI devices.
101 lines
4.8 KiB
XML
101 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:scrollbars="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/detail_upload_date_view"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textSize="@dimen/video_item_detail_upload_date_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toStartOf="@+id/detail_select_description_button"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="Published on Oct 2, 2009" />
|
|
|
|
<ImageView
|
|
android:id="@+id/detail_select_description_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="2dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/description_select_enable"
|
|
android:focusable="true"
|
|
android:padding="5dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/barrier"
|
|
app:layout_constraintDimensionRatio="1"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_select_all" />
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
android:id="@+id/barrier"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:barrierAllowsGoneWidgets="false"
|
|
app:barrierDirection="top"
|
|
app:constraint_referenced_ids="detail_description_note_view,detail_description_view" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/detail_description_note_view"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:gravity="center"
|
|
android:text="@string/description_select_note"
|
|
android:textSize="12sp"
|
|
android:textStyle="italic"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/detail_upload_date_view"
|
|
tools:visibility="visible" />
|
|
|
|
<org.schabi.newpipe.views.NewPipeTextView
|
|
android:id="@+id/detail_description_view"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textSize="@dimen/video_item_detail_description_text_size"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/detail_description_note_view"
|
|
tools:text="Description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a ultricies ex. Integer sit amet sodales risus. Duis non mi et urna pretium bibendum." />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/detail_metadata_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/detail_description_view" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|