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.
231 lines
9.2 KiB
231 lines
9.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<merge 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">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/exo_bottom_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/shape_controller"
|
|
android:orientation="vertical"
|
|
android:paddingStart="16dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:text="@string/play"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/next"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusLeft="@id/next"
|
|
android:nextFocusDown="@id/parse"
|
|
android:text="@string/play_next"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/prev"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:text="@string/play_prev"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/replay"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:text="@string/play_replay"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/speed"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
tools:text="1.00" />
|
|
|
|
<TextView
|
|
android:id="@+id/scale"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
tools:text="預設" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:text="@string/play_oped"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/opening"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
tools:text="00:00" />
|
|
|
|
<TextView
|
|
android:id="@+id/ending"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
tools:text="00:00" />
|
|
|
|
<TextView
|
|
android:id="@+id/interval"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusDown="@id/parse"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp"
|
|
tools:text="15秒" />
|
|
|
|
<TextView
|
|
android:id="@+id/reset"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/selector_text"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusRight="@id/reset"
|
|
android:nextFocusDown="@id/parse"
|
|
android:text="@string/play_reset"
|
|
android:textColor="@color/white"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/parseLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="12dp"
|
|
android:text="@string/parse"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="18sp" />
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomHorizontalGridView
|
|
android:id="@+id/parse"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@id/exo_time"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@id/exo_position"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="16sp"
|
|
tools:text="00:00:00" />
|
|
|
|
<com.google.android.exoplayer2.ui.DefaultTimeBar
|
|
android:id="@id/exo_progress"
|
|
android:layout_width="0dp"
|
|
android:layout_height="26dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_weight="1"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
android:nextFocusLeft="@id/exo_progress"
|
|
android:nextFocusRight="@id/exo_progress"
|
|
android:nextFocusUp="@id/parse"
|
|
android:nextFocusDown="@id/exo_progress"
|
|
app:buffered_color="@color/grey_700"
|
|
app:played_color="@color/blue_700"
|
|
app:scrubber_color="@color/blue_500"
|
|
app:unplayed_color="@color/grey_500" />
|
|
|
|
<TextView
|
|
android:id="@id/exo_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/grey_700"
|
|
android:textSize="16sp"
|
|
tools:text="00:00:00" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</merge> |