|
|
|
|
@ -1,67 +1,160 @@ |
|
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
|
<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="wrap_content" |
|
|
|
|
android:layout_gravity="bottom" |
|
|
|
|
android:clipChildren="false" |
|
|
|
|
android:clipToPadding="false" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingStart="12dp" |
|
|
|
|
android:paddingTop="12dp" |
|
|
|
|
android:paddingEnd="12dp" |
|
|
|
|
android:paddingBottom="6dp"> |
|
|
|
|
|
|
|
|
|
<HorizontalScrollView |
|
|
|
|
android:id="@+id/action" |
|
|
|
|
android:layout_height="match_parent"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/top" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginBottom="6dp" |
|
|
|
|
android:fillViewport="true" |
|
|
|
|
android:scrollbars="none"> |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:layout_marginTop="16dp" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/title" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:letterSpacing="0.02" |
|
|
|
|
android:shadowColor="@color/grey_900" |
|
|
|
|
android:shadowDx="2" |
|
|
|
|
android:shadowDy="2" |
|
|
|
|
android:shadowRadius="1" |
|
|
|
|
android:singleLine="true" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="慶餘年第一季:第一集" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/size" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:shadowColor="@color/grey_900" |
|
|
|
|
android:shadowDx="2" |
|
|
|
|
android:shadowDy="2" |
|
|
|
|
android:shadowRadius="1" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="1920 x 1080" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/left" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentStart="true" |
|
|
|
|
android:layout_centerVertical="true" |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible"> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/lock" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:src="@drawable/ic_lock_off" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/right" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentEnd="true" |
|
|
|
|
android:layout_centerVertical="true" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible"> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/setting" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginBottom="16dp" |
|
|
|
|
android:src="@drawable/ic_control_setting" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/rotate" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:src="@drawable/ic_control_rotate" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView |
|
|
|
|
android:id="@+id/parse" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_above="@+id/bottom" |
|
|
|
|
android:layout_marginBottom="8dp" |
|
|
|
|
android:clipChildren="false" |
|
|
|
|
android:clipToPadding="false" |
|
|
|
|
android:paddingStart="16dp" |
|
|
|
|
android:paddingEnd="16dp" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:itemCount="1" |
|
|
|
|
tools:listitem="@layout/adapter_parse" |
|
|
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/bottom" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentBottom="true" |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:layout_marginBottom="8dp" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:gravity="center_vertical" |
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/next" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomSeekView |
|
|
|
|
android:id="@+id/seek" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:text="@string/play_next" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" /> |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/prev" |
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/full" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:text="@string/play_prev" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" /> |
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:src="@drawable/ic_full_on" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/reset" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="刷新" /> |
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/control" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:layout_marginBottom="8dp" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/player" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="EXO" /> |
|
|
|
|
@ -70,131 +163,68 @@ |
|
|
|
|
android:id="@+id/decode" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="硬解" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/speed" |
|
|
|
|
android:id="@+id/opening" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="1.00" /> |
|
|
|
|
tools:text="片頭" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/scale" |
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/prev" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="預設" /> |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:src="@drawable/ic_control_prev" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/text" |
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/play" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:tag="3" |
|
|
|
|
android:text="@string/play_track_text" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible" /> |
|
|
|
|
android:layout_marginStart="16dp" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:src="@drawable/ic_control_play" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/audio" |
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/next" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:tag="1" |
|
|
|
|
android:text="@string/play_track_audio" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible" /> |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:src="@drawable/ic_control_next" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/video" |
|
|
|
|
android:id="@+id/ending" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:tag="2" |
|
|
|
|
android:text="@string/play_track_video" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:visibility="visible" /> |
|
|
|
|
tools:text="片尾" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/opening" |
|
|
|
|
android:id="@+id/speed" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="8dp" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:layout_marginEnd="16dp" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="00:00" /> |
|
|
|
|
tools:text="速度" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/ending" |
|
|
|
|
android:id="@+id/scale" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:background="@drawable/shape_action" |
|
|
|
|
android:textColor="@color/white" |
|
|
|
|
android:textSize="14sp" |
|
|
|
|
tools:text="00:00" /> |
|
|
|
|
tools:text="縮放" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
</HorizontalScrollView> |
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView |
|
|
|
|
android:id="@+id/parse" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginTop="6dp" |
|
|
|
|
android:layout_marginBottom="6dp" |
|
|
|
|
android:visibility="gone" |
|
|
|
|
tools:itemCount="1" |
|
|
|
|
tools:listitem="@layout/adapter_parse" |
|
|
|
|
tools:visibility="visible" /> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:gravity="center_vertical" |
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
<com.fongmi.android.tv.ui.custom.CustomSeekView |
|
|
|
|
android:id="@+id/seek" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginEnd="6dp" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/rotate" |
|
|
|
|
android:layout_width="24dp" |
|
|
|
|
android:layout_marginEnd="6dp" |
|
|
|
|
android:layout_height="24dp" |
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:src="@drawable/ic_lock_rotate" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/full" |
|
|
|
|
android:layout_width="24dp" |
|
|
|
|
android:layout_height="24dp" |
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:src="@drawable/ic_full_on" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
</LinearLayout> |
|
|
|
|
</RelativeLayout> |