1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<ImageView
android:id="@+id/back_button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:contentDescription="@string/accessibility_toolbar_btn_back"
app:srcCompat="@drawable/ic_arrow_back_white_24dp" />
<TextView
android:id="@+id/video_file_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="56dp"
android:layout_marginTop="16dp"
android:textAppearance="@style/TextAppearance.TextMedium.Primary.Baseline.Light" />
<VideoView
android:id="@+id/video_player"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone" />
<FrameLayout
android:id="@+id/video_overlay_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:contentDescription="@string/accessibility_video_player"
android:layout_gravity="center"
android:visibility="gone">
<FrameLayout
android:id="@+id/video_controls_gradient"
android:layout_width="match_parent"
android:layout_height="88dp"
android:layout_gravity="bottom|start"
android:background="@drawable/video_player_gradient"/>
<FrameLayout
android:id="@+id/video_controls"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingBottom="16dp">
<LinearLayout
android:id="@+id/fast_forward_message"
android:layout_width="match_parent"
android:layout_height="48dp"
android:gravity="top|center"
android:paddingTop="16dp"
android:orientation="horizontal"
android:background="@drawable/fast_forward_message_gradient"
android:visibility="gone">
<ImageView
android:id="@+id/fast_rewind"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="8dp"
android:contentDescription="@string/accessibility_pause_video"
app:srcCompat="@drawable/ic_fast_rewind_white_24dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fast_forward_hint"
android:textAppearance="@style/TextAppearance.TextMedium.Primary.Baseline.Light" />
<ImageView
android:id="@+id/fast_forward"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="8dp"
android:contentDescription="@string/accessibility_pause_video"
app:srcCompat="@drawable/ic_fast_forward_white_24dp" />
</LinearLayout>
<ImageView
android:id="@+id/video_player_play_button"
android:layout_width="@dimen/photo_picker_play_button_size"
android:layout_height="@dimen/photo_picker_play_button_size"
android:layout_gravity="center"
android:contentDescription="@string/accessibility_pause_video"
app:srcCompat="@drawable/ic_pause_circle_outline_white_24dp" />
<TextView
android:id="@+id/remaining_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|start"
android:layout_marginBottom="24dp"
android:layout_marginStart="16dp"
android:clickable="true"
android:textAppearance="@style/TextAppearance.TextLarge.Primary.Baseline.Light" />
<ImageView
android:id="@+id/mute"
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_marginBottom="24dp"
android:layout_marginEnd="68dp"
android:layout_gravity="bottom|end"
android:contentDescription="@string/accessibility_mute_video"
app:srcCompat="@drawable/ic_volume_on_white_24dp" />
<ImageView
android:id="@+id/fullscreen"
android:layout_width="26dp"
android:layout_height="26dp"
android:layout_gravity="bottom|end"
android:layout_marginBottom="24dp"
android:layout_marginEnd="16dp"
android:contentDescription="@string/accessibility_full_screen"
app:srcCompat="@drawable/ic_full_screen_white_24dp" />
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:clickable="true"
android:progressDrawable="@drawable/photo_picker_seekbar_track"
android:thumb="@drawable/photo_picker_seekbar_thumb" />
</FrameLayout>
</FrameLayout>
</merge>
|