mirror of https://github.com/FongMi/TV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
6.4 KiB
170 lines
6.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_toStartOf="@+id/clock"
|
|
android:ellipsize="marquee"
|
|
android:shadowColor="@color/grey_900"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="2"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textSize="20sp"
|
|
tools:text="慶餘年第一季:第一集" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/size"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/title"
|
|
android:layout_alignStart="@+id/title"
|
|
android:shadowColor="@color/grey_900"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="2"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
tools:text="1920 x 1080" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/clock"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:shadowColor="@color/grey_900"
|
|
android:shadowDx="4"
|
|
android:shadowDy="4"
|
|
android:shadowRadius="2"
|
|
android:textColor="@color/white"
|
|
android:textSize="24sp"
|
|
tools:text="09:20:00" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/progress"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<include layout="@layout/view_progress" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/traffic"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
android:visibility="gone"
|
|
tools:text="120KB/s" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/error"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/shape_widget"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_widget_error" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="center"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
tools:text="@string/error_play_url" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/shape_widget"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/action"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:scaleType="fitCenter"
|
|
android:src="@drawable/ic_widget_play" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/exo_position"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
tools:text="00:00:00" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:text="/"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/exo_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
tools:text="00:00:00" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/speed"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top|center"
|
|
android:layout_marginTop="24dp"
|
|
android:src="@drawable/ic_widget_forward"
|
|
android:visibility="gone" />
|
|
|
|
</FrameLayout> |