LibreTube/app/src/main/res/layout/dialog_stats.xml

106 lines
4.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/standard_bottom_sheet"
style="@style/Widget.Material3.BottomSheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- Drag handle for accessibility -->
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
android:id="@+id/drag_handle"
android:layout_width="match_parent"
android:layout_height="20dp"
android:paddingTop="8dp"
android:paddingBottom="0dp"
app:tint="?android:attr/textColorSecondaryInverse" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="18dp"
android:layout_marginVertical="6dp"
android:layout_marginStart="15dp"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:text="@string/stats_for_nerds"
android:textColor="?android:textColorPrimary"
android:textSize="24sp" />
<com.google.android.material.divider.MaterialDivider
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingHorizontal="20dp"
android:paddingVertical="7dp">
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:id="@+id/video_id_copy"
android:layout_marginTop="10dp"
app:endIconMode="custom"
app:endIconContentDescription="@string/copy_tooltip"
app:endIconDrawable="@drawable/ic_copy"
android:hint="@string/video_id">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/video_id"
style="@style/DisabledTextInput" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:layout_marginTop="10dp"
android:hint="@string/audio">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/audio_info"
style="@style/DisabledTextInput" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:layout_marginTop="10dp"
android:hint="@string/video">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/video_info"
style="@style/DisabledTextInput" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/CustomDialogTextInputLayout"
android:layout_marginTop="10dp"
android:hint="@string/quality">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/video_quality"
style="@style/DisabledTextInput" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>