mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
7aa8b6bc14
Changelog: changed
94 lines
3.4 KiB
XML
94 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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">
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/view_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/short_view_loading_overlay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#77000000"
|
|
android:elevation="4dp"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/short_view_loader"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="center_vertical|center_horizontal"
|
|
android:alpha="0.7"
|
|
android:contentDescription="@string/loading"
|
|
app:srcCompat="@drawable/ic_loader_animated" />
|
|
</FrameLayout>
|
|
|
|
<!-- zero state -->
|
|
<LinearLayout
|
|
android:id="@+id/zero_state"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:importantForAccessibility="no"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_help" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:fontFamily="@font/inter_bold"
|
|
android:gravity="center"
|
|
android:text="@string/no_results"
|
|
android:textColor="@color/white"
|
|
android:textSize="22dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_centered"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginEnd="20dp"
|
|
android:layout_marginBottom="10dp"
|
|
android:fontFamily="@font/inter_regular"
|
|
android:gravity="center"
|
|
android:text="@string/no_results_shorts"
|
|
android:textColor="@color/gray_ac"
|
|
android:textSize="13dp" />
|
|
|
|
<com.futo.platformplayer.views.buttons.BigButton
|
|
android:id="@+id/sources_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:buttonIcon="@drawable/ic_creators"
|
|
app:buttonSubText="Go to the sources tab"
|
|
app:buttonText="Sources" />
|
|
|
|
</LinearLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/shorts_quality_overview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:elevation="100dp"
|
|
android:visibility="gone" />
|
|
</FrameLayout>
|