|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
4 | 5 | android:id="@+id/linear_layout_exo_playback_control_view"
|
5 | 6 | android:layout_width="match_parent"
|
6 | 7 | android:layout_height="wrap_content"
|
|
32 | 33 |
|
33 | 34 | <com.google.android.material.button.MaterialButton
|
34 | 35 | android:id="@+id/mute_exo_playback_control_view"
|
| 36 | + style="?attr/materialIconButtonOutlinedStyle" |
35 | 37 | android:layout_width="wrap_content"
|
36 | 38 | android:layout_height="wrap_content"
|
37 |
| - app:strokeWidth="0dp" |
38 |
| - app:iconSize="24dp" |
39 |
| - app:iconTint="@null" |
40 |
| - app:backgroundTint="#444141" |
41 | 39 | android:visibility="gone"
|
42 |
| - app:layout_constraintTop_toTopOf="parent" |
43 |
| - app:layout_constraintBottom_toBottomOf="parent" |
44 |
| - app:layout_constraintStart_toStartOf="parent" |
45 |
| - style="?attr/materialIconButtonOutlinedStyle" /> |
46 |
| - |
47 |
| - <com.google.android.material.button.MaterialButton |
48 |
| - android:id="@id/exo_rew" |
49 |
| - android:layout_width="wrap_content" |
50 |
| - android:layout_height="wrap_content" |
51 |
| - app:strokeWidth="0dp" |
52 |
| - app:icon="@drawable/ic_fast_rewind_24dp" |
| 40 | + app:backgroundTint="#444141" |
53 | 41 | app:iconSize="24dp"
|
54 | 42 | app:iconTint="@null"
|
55 |
| - app:backgroundTint="#444141" |
56 |
| - app:layout_constraintTop_toTopOf="parent" |
57 | 43 | app:layout_constraintBottom_toBottomOf="parent"
|
58 |
| - app:layout_constraintEnd_toStartOf="@+id/exo_play_pause_button_exo_playback_control_view" |
59 |
| - app:layout_constraintHorizontal_bias="0.5" |
| 44 | + app:layout_constraintEnd_toStartOf="@id/button_group_exo_playback_control_view" |
| 45 | + app:layout_constraintHorizontal_chainStyle="spread_inside" |
60 | 46 | app:layout_constraintStart_toStartOf="parent"
|
61 |
| - app:layout_constraintHorizontal_chainStyle="packed" |
62 |
| - style="?attr/materialIconButtonOutlinedStyle" /> |
63 |
| - |
64 |
| - <com.google.android.material.button.MaterialButton |
65 |
| - android:id="@+id/exo_play_pause_button_exo_playback_control_view" |
66 |
| - android:layout_width="wrap_content" |
67 |
| - android:layout_height="wrap_content" |
68 |
| - app:strokeWidth="0dp" |
69 |
| - app:icon="@drawable/ic_play_arrow_24dp" |
70 |
| - app:iconSize="36dp" |
71 |
| - app:iconTint="@null" |
72 |
| - app:backgroundTint="@color/colorAccent" |
73 | 47 | app:layout_constraintTop_toTopOf="parent"
|
74 |
| - app:layout_constraintBottom_toBottomOf="parent" |
75 |
| - app:layout_constraintEnd_toStartOf="@+id/exo_ffwd" |
76 |
| - app:layout_constraintHorizontal_bias="0.5" |
77 |
| - app:layout_constraintStart_toEndOf="@+id/exo_rew" |
78 |
| - style="?attr/materialIconButtonOutlinedStyle" /> |
| 48 | + app:strokeWidth="0dp" |
| 49 | + tools:visibility="visible" /> |
79 | 50 |
|
80 |
| - <com.google.android.material.button.MaterialButton |
81 |
| - android:id="@id/exo_ffwd" |
| 51 | + <com.google.android.material.button.MaterialButtonGroup |
| 52 | + android:id="@+id/button_group_exo_playback_control_view" |
82 | 53 | android:layout_width="wrap_content"
|
83 | 54 | android:layout_height="wrap_content"
|
84 |
| - app:strokeWidth="0dp" |
85 |
| - app:icon="@drawable/ic_fast_forward_24dp" |
86 |
| - app:iconSize="24dp" |
87 |
| - app:iconTint="@null" |
88 |
| - app:backgroundTint="#444141" |
89 |
| - app:layout_constraintTop_toTopOf="parent" |
| 55 | + android:spacing="0dp" |
90 | 56 | app:layout_constraintBottom_toBottomOf="parent"
|
91 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 57 | + app:layout_constraintEnd_toStartOf="@+id/hd_exo_playback_control_view" |
92 | 58 | app:layout_constraintHorizontal_bias="0.5"
|
93 |
| - app:layout_constraintStart_toEndOf="@+id/exo_play_pause_button_exo_playback_control_view" |
94 |
| - style="?attr/materialIconButtonOutlinedStyle" /> |
| 59 | + app:layout_constraintStart_toEndOf="@id/mute_exo_playback_control_view" |
| 60 | + app:layout_constraintTop_toTopOf="parent"> |
| 61 | + |
| 62 | + <com.google.android.material.button.MaterialButton |
| 63 | + android:id="@id/exo_rew" |
| 64 | + style="?attr/materialIconButtonOutlinedStyle" |
| 65 | + android:layout_width="wrap_content" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + app:backgroundTint="#444141" |
| 68 | + app:icon="@drawable/ic_fast_rewind_24dp" |
| 69 | + app:iconSize="24dp" |
| 70 | + app:iconTint="@null" |
| 71 | + app:strokeWidth="0dp" /> |
| 72 | + |
| 73 | + <com.google.android.material.button.MaterialButton |
| 74 | + android:id="@+id/exo_play_pause_button_exo_playback_control_view" |
| 75 | + style="?attr/materialIconButtonOutlinedStyle" |
| 76 | + android:layout_width="wrap_content" |
| 77 | + android:layout_height="wrap_content" |
| 78 | + app:backgroundTint="@color/colorAccent" |
| 79 | + app:icon="@drawable/ic_play_arrow_24dp" |
| 80 | + app:iconSize="36dp" |
| 81 | + app:iconTint="@null" |
| 82 | + app:strokeWidth="0dp" /> |
| 83 | + |
| 84 | + <com.google.android.material.button.MaterialButton |
| 85 | + android:id="@id/exo_ffwd" |
| 86 | + style="?attr/materialIconButtonOutlinedStyle" |
| 87 | + android:layout_width="wrap_content" |
| 88 | + android:layout_height="wrap_content" |
| 89 | + app:backgroundTint="#444141" |
| 90 | + app:icon="@drawable/ic_fast_forward_24dp" |
| 91 | + app:iconSize="24dp" |
| 92 | + app:iconTint="@null" |
| 93 | + app:strokeWidth="0dp" /> |
| 94 | + |
| 95 | + </com.google.android.material.button.MaterialButtonGroup> |
95 | 96 |
|
96 | 97 | <com.google.android.material.button.MaterialButton
|
97 | 98 | android:id="@+id/hd_exo_playback_control_view"
|
| 99 | + style="?attr/materialIconButtonOutlinedStyle" |
98 | 100 | android:layout_width="wrap_content"
|
99 | 101 | android:layout_height="wrap_content"
|
100 | 102 | android:visibility="gone"
|
101 |
| - app:strokeWidth="0dp" |
| 103 | + app:backgroundTint="#444141" |
102 | 104 | app:icon="@drawable/ic_video_quality_24dp"
|
103 | 105 | app:iconSize="24dp"
|
104 | 106 | app:iconTint="@null"
|
105 |
| - app:backgroundTint="#444141" |
106 |
| - app:layout_constraintTop_toTopOf="parent" |
107 | 107 | app:layout_constraintBottom_toBottomOf="parent"
|
108 | 108 | app:layout_constraintEnd_toEndOf="parent"
|
109 |
| - style="?attr/materialIconButtonOutlinedStyle" /> |
| 109 | + app:layout_constraintStart_toEndOf="@id/button_group_exo_playback_control_view" |
| 110 | + app:layout_constraintTop_toTopOf="parent" |
| 111 | + app:strokeWidth="0dp" |
| 112 | + tools:visibility="visible" /> |
110 | 113 |
|
111 | 114 | </androidx.constraintlayout.widget.ConstraintLayout>
|
112 | 115 |
|
|
0 commit comments