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.
155 lines
5.8 KiB
155 lines
5.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout 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"
|
|
android:background="@color/black_20">
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/top"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingStart="4dp"
|
|
android:paddingEnd="4dp">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/back"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_control_back" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:layout_weight="1">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:textColor="@color/white"
|
|
android:textSize="16sp"
|
|
tools:text="CCTV-4K" />
|
|
|
|
</FrameLayout>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/cast"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_control_cast" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/info"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_control_info" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/prevRoot"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/shape_control">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/prev"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/exo_icon_previous" />
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="48dp"
|
|
android:layout_marginEnd="48dp"
|
|
android:background="@drawable/shape_control">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/play"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/exo_icon_play" />
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/nextRoot"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/shape_control">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/next"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/exo_icon_next" />
|
|
|
|
</FrameLayout>
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<include
|
|
android:id="@+id/right"
|
|
layout="@layout/view_control_right"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginEnd="4dp" />
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
android:id="@+id/bottom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginBottom="8dp"
|
|
android:orientation="vertical">
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomSeekView
|
|
android:id="@+id/seek"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp" />
|
|
|
|
<include
|
|
android:id="@+id/action"
|
|
layout="@layout/view_control_live_action"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
</RelativeLayout> |