|
109 | 109 | android:layout_marginEnd="8dp" |
110 | 110 | android:background="?attr/selectableItemBackgroundBorderless" |
111 | 111 | android:clickable="true" |
| 112 | + android:contentDescription="@string/close" |
112 | 113 | android:focusable="true" |
113 | 114 | android:padding="@dimen/player_main_buttons_padding" |
114 | 115 | android:scaleType="fitXY" |
115 | 116 | android:src="@drawable/ic_close" |
116 | 117 | android:visibility="gone" |
117 | 118 | app:tint="@color/white" |
118 | | - android:contentDescription="@string/close" |
119 | 119 | tools:ignore="RtlHardcoded" /> |
120 | 120 |
|
121 | 121 | <LinearLayout |
122 | | - android:id="@+id/metadataView" |
123 | 122 | android:layout_width="0dp" |
124 | | - android:layout_height="wrap_content" |
125 | | - android:layout_marginTop="6dp" |
126 | | - android:layout_marginEnd="8dp" |
| 123 | + android:layout_height="match_parent" |
127 | 124 | android:layout_weight="1" |
128 | | - android:gravity="top" |
129 | | - android:orientation="vertical" |
130 | | - tools:ignore="RtlHardcoded"> |
| 125 | + android:orientation="horizontal"> |
131 | 126 |
|
132 | | - <org.schabi.newpipe.views.NewPipeTextView |
133 | | - android:id="@+id/titleTextView" |
134 | | - android:layout_width="match_parent" |
| 127 | + <LinearLayout |
| 128 | + android:id="@+id/metadataView" |
| 129 | + android:layout_width="wrap_content" |
135 | 130 | android:layout_height="wrap_content" |
136 | | - android:ellipsize="marquee" |
137 | | - android:fadingEdge="horizontal" |
138 | | - android:marqueeRepeatLimit="marquee_forever" |
139 | | - android:scrollHorizontally="true" |
140 | | - android:singleLine="true" |
141 | | - android:textColor="@android:color/white" |
142 | | - android:textSize="15sp" |
143 | | - android:textStyle="bold" |
144 | | - tools:ignore="RtlHardcoded" |
145 | | - tools:text="The Video Title LONG very LONG" /> |
146 | | - |
147 | | - <org.schabi.newpipe.views.NewPipeTextView |
148 | | - android:id="@+id/channelTextView" |
149 | | - android:layout_width="match_parent" |
| 131 | + android:layout_marginTop="6dp" |
| 132 | + android:layout_marginEnd="8dp" |
| 133 | + android:layout_weight="1" |
| 134 | + android:gravity="top" |
| 135 | + android:orientation="vertical" |
| 136 | + tools:ignore="NestedWeights,RtlHardcoded"> |
| 137 | + |
| 138 | + <org.schabi.newpipe.views.NewPipeTextView |
| 139 | + android:id="@+id/titleTextView" |
| 140 | + android:layout_width="match_parent" |
| 141 | + android:layout_height="wrap_content" |
| 142 | + android:ellipsize="marquee" |
| 143 | + android:fadingEdge="horizontal" |
| 144 | + android:marqueeRepeatLimit="marquee_forever" |
| 145 | + android:scrollHorizontally="true" |
| 146 | + android:singleLine="true" |
| 147 | + android:textColor="@android:color/white" |
| 148 | + android:textSize="15sp" |
| 149 | + android:textStyle="bold" |
| 150 | + tools:ignore="RtlHardcoded" |
| 151 | + tools:text="The Video Title LONG very LONG" /> |
| 152 | + |
| 153 | + <org.schabi.newpipe.views.NewPipeTextView |
| 154 | + android:id="@+id/channelTextView" |
| 155 | + android:layout_width="match_parent" |
| 156 | + android:layout_height="wrap_content" |
| 157 | + android:ellipsize="marquee" |
| 158 | + android:fadingEdge="horizontal" |
| 159 | + android:marqueeRepeatLimit="marquee_forever" |
| 160 | + android:scrollHorizontally="true" |
| 161 | + android:singleLine="true" |
| 162 | + android:textColor="@android:color/white" |
| 163 | + android:textSize="12sp" |
| 164 | + tools:text="The Video Artist LONG very LONG very Long" /> |
| 165 | + |
| 166 | + </LinearLayout> |
| 167 | + |
| 168 | + <FrameLayout |
| 169 | + android:layout_width="wrap_content" |
150 | 170 | android:layout_height="wrap_content" |
151 | | - android:ellipsize="marquee" |
152 | | - android:fadingEdge="horizontal" |
153 | | - android:marqueeRepeatLimit="marquee_forever" |
154 | | - android:scrollHorizontally="true" |
155 | | - android:singleLine="true" |
156 | | - android:textColor="@android:color/white" |
157 | | - android:textSize="12sp" |
158 | | - tools:text="The Video Artist LONG very LONG very Long" /> |
159 | | - </LinearLayout> |
| 171 | + android:layout_weight="1"> |
| 172 | + |
| 173 | + <org.schabi.newpipe.views.NewPipeTextView |
| 174 | + android:id="@+id/audioTrackTextView" |
| 175 | + android:layout_width="wrap_content" |
| 176 | + android:layout_height="35dp" |
| 177 | + android:layout_gravity="right" |
| 178 | + android:layout_marginEnd="8dp" |
| 179 | + android:background="?attr/selectableItemBackground" |
| 180 | + android:ellipsize="end" |
| 181 | + android:gravity="center" |
| 182 | + android:minWidth="0dp" |
| 183 | + android:padding="@dimen/player_main_buttons_padding" |
| 184 | + android:singleLine="true" |
| 185 | + android:textColor="@android:color/white" |
| 186 | + android:textStyle="bold" |
| 187 | + android:visibility="gone" |
| 188 | + tools:ignore="HardcodedText,RtlHardcoded" |
| 189 | + tools:text="English (United States) original" |
| 190 | + tools:visibility="visible" /> |
| 191 | + </FrameLayout> |
160 | 192 |
|
161 | | - <org.schabi.newpipe.views.NewPipeTextView |
162 | | - android:id="@+id/audioTrackTextView" |
163 | | - android:layout_width="0dp" |
164 | | - android:layout_height="35dp" |
165 | | - android:layout_marginEnd="8dp" |
166 | | - android:layout_weight="1" |
167 | | - android:background="?attr/selectableItemBackground" |
168 | | - android:gravity="center" |
169 | | - android:minWidth="0dp" |
170 | | - android:singleLine="true" |
171 | | - android:ellipsize="end" |
172 | | - android:padding="@dimen/player_main_buttons_padding" |
173 | | - android:textColor="@android:color/white" |
174 | | - android:textStyle="bold" |
175 | | - android:visibility="gone" |
176 | | - tools:ignore="HardcodedText,RtlHardcoded" |
177 | | - tools:visibility="visible" |
178 | | - tools:text="English (Original)" /> |
| 193 | + </LinearLayout> |
179 | 194 |
|
180 | 195 | <org.schabi.newpipe.views.NewPipeTextView |
181 | 196 | android:id="@+id/qualityTextView" |
|
212 | 227 | android:layout_marginEnd="8dp" |
213 | 228 | android:background="?attr/selectableItemBackgroundBorderless" |
214 | 229 | android:clickable="true" |
| 230 | + android:contentDescription="@string/open_play_queue" |
215 | 231 | android:focusable="true" |
216 | 232 | android:paddingStart="3dp" |
217 | 233 | android:paddingTop="5dp" |
|
221 | 237 | android:src="@drawable/ic_list" |
222 | 238 | android:visibility="gone" |
223 | 239 | app:tint="@color/white" |
224 | | - android:contentDescription="@string/open_play_queue" |
225 | 240 | tools:ignore="RtlHardcoded" /> |
226 | 241 |
|
227 | 242 | <androidx.appcompat.widget.AppCompatImageButton |
|
231 | 246 | android:layout_marginEnd="8dp" |
232 | 247 | android:background="?attr/selectableItemBackgroundBorderless" |
233 | 248 | android:clickable="true" |
| 249 | + android:contentDescription="@string/chapters" |
234 | 250 | android:focusable="true" |
235 | 251 | android:paddingStart="6dp" |
| 252 | + android:paddingTop="3dp" |
236 | 253 | android:paddingEnd="6dp" |
237 | 254 | android:paddingBottom="3dp" |
238 | | - android:paddingTop="3dp" |
239 | 255 | android:scaleType="fitCenter" |
240 | 256 | android:src="@drawable/ic_menu_book" |
241 | 257 | android:visibility="gone" |
242 | 258 | app:tint="@color/white" |
243 | | - android:contentDescription="@string/chapters" |
244 | 259 | tools:ignore="RtlHardcoded" /> |
245 | 260 |
|
246 | 261 | <androidx.appcompat.widget.AppCompatImageButton |
|
249 | 264 | android:layout_height="wrap_content" |
250 | 265 | android:background="?attr/selectableItemBackgroundBorderless" |
251 | 266 | android:clickable="true" |
| 267 | + android:contentDescription="@string/more_options" |
252 | 268 | android:focusable="true" |
253 | 269 | android:padding="@dimen/player_main_buttons_padding" |
254 | 270 | android:scaleType="fitXY" |
255 | 271 | android:src="@drawable/ic_expand_more" |
256 | 272 | app:tint="@color/white" |
257 | | - android:contentDescription="@string/more_options" |
258 | 273 | tools:ignore="RtlHardcoded" /> |
259 | 274 |
|
260 | 275 | </LinearLayout> |
|
371 | 386 | android:layout_height="40dp" |
372 | 387 | android:background="?attr/selectableItemBackgroundBorderless" |
373 | 388 | android:clickable="true" |
| 389 | + android:contentDescription="@string/toggle_fullscreen" |
374 | 390 | android:focusable="true" |
375 | 391 | android:padding="@dimen/player_main_buttons_padding" |
376 | 392 | android:scaleType="fitCenter" |
377 | 393 | android:src="@drawable/ic_fullscreen" |
378 | | - android:contentDescription="@string/toggle_fullscreen" |
379 | 394 | android:visibility="gone" |
380 | 395 | app:tint="@color/white" |
381 | 396 | tools:ignore="RtlHardcoded" |
|
495 | 510 | android:layout_marginStart="4dp" |
496 | 511 | android:background="?attr/selectableItemBackgroundBorderless" |
497 | 512 | android:clickable="true" |
| 513 | + android:contentDescription="@string/toggle_screen_orientation" |
498 | 514 | android:focusable="true" |
499 | 515 | android:nextFocusUp="@id/playbackSeekBar" |
500 | 516 | android:padding="@dimen/player_main_buttons_padding" |
501 | 517 | android:scaleType="fitCenter" |
502 | 518 | android:src="@drawable/ic_fullscreen" |
503 | 519 | android:visibility="gone" |
504 | | - android:contentDescription="@string/toggle_screen_orientation" |
505 | 520 | app:tint="@color/white" |
506 | 521 | tools:ignore="RtlHardcoded" |
507 | 522 | tools:visibility="visible" /> |
|
523 | 538 | android:layout_weight="1" |
524 | 539 | android:background="?attr/selectableItemBackgroundBorderless" |
525 | 540 | android:clickable="true" |
| 541 | + android:contentDescription="@string/previous_stream" |
526 | 542 | android:focusable="true" |
527 | 543 | android:scaleType="fitCenter" |
528 | 544 | android:src="@drawable/ic_previous" |
529 | | - android:contentDescription="@string/previous_stream" |
530 | 545 | app:tint="@color/white" /> |
531 | 546 |
|
532 | 547 |
|
|
536 | 551 | android:layout_height="60dp" |
537 | 552 | android:layout_weight="1" |
538 | 553 | android:background="?attr/selectableItemBackgroundBorderless" |
| 554 | + android:contentDescription="@string/pause" |
539 | 555 | android:scaleType="fitCenter" |
540 | 556 | android:src="@drawable/ic_pause" |
541 | | - android:contentDescription="@string/pause" |
542 | 557 | app:tint="@color/white" /> |
543 | 558 |
|
544 | 559 | <androidx.appcompat.widget.AppCompatImageButton |
|
549 | 564 | android:layout_weight="1" |
550 | 565 | android:background="?attr/selectableItemBackgroundBorderless" |
551 | 566 | android:clickable="true" |
| 567 | + android:contentDescription="@string/next_stream" |
552 | 568 | android:focusable="true" |
553 | 569 | android:scaleType="fitCenter" |
554 | 570 | android:src="@drawable/ic_next" |
555 | | - android:contentDescription="@string/next_stream" |
556 | 571 | app:tint="@color/white" /> |
557 | 572 |
|
558 | 573 | </LinearLayout> |
|
599 | 614 | android:layout_marginLeft="40dp" |
600 | 615 | android:background="?attr/selectableItemBackgroundBorderless" |
601 | 616 | android:clickable="true" |
| 617 | + android:contentDescription="@string/notification_action_repeat" |
602 | 618 | android:focusable="true" |
603 | 619 | android:padding="10dp" |
604 | 620 | android:scaleType="fitXY" |
605 | 621 | android:src="@drawable/exo_controls_repeat_off" |
606 | 622 | android:tint="?attr/colorAccent" |
607 | | - android:contentDescription="@string/notification_action_repeat" |
608 | 623 | tools:ignore="RtlHardcoded" /> |
609 | 624 |
|
610 | 625 | <androidx.appcompat.widget.AppCompatImageButton |
|
615 | 630 | android:layout_toRightOf="@id/repeatButton" |
616 | 631 | android:background="?attr/selectableItemBackgroundBorderless" |
617 | 632 | android:clickable="true" |
| 633 | + android:contentDescription="@string/notification_action_shuffle" |
618 | 634 | android:focusable="true" |
619 | 635 | android:padding="10dp" |
620 | 636 | android:scaleType="fitXY" |
621 | 637 | android:src="@drawable/ic_shuffle" |
622 | 638 | android:tint="?attr/colorAccent" |
623 | | - android:contentDescription="@string/notification_action_shuffle" |
624 | 639 | tools:ignore="RtlHardcoded" /> |
625 | 640 |
|
626 | 641 | <androidx.appcompat.widget.AppCompatTextView |
|
642 | 657 | android:layout_toLeftOf="@+id/itemsListClose" |
643 | 658 | android:background="?attr/selectableItemBackgroundBorderless" |
644 | 659 | android:clickable="true" |
| 660 | + android:contentDescription="@string/add_to_playlist" |
645 | 661 | android:focusable="true" |
646 | 662 | android:padding="10dp" |
647 | 663 | android:scaleType="fitXY" |
648 | 664 | android:src="@drawable/ic_playlist_add" |
649 | 665 | android:tint="?attr/colorAccent" |
650 | | - android:contentDescription="@string/add_to_playlist" |
651 | 666 | tools:ignore="RtlHardcoded" /> |
652 | 667 |
|
653 | 668 | <androidx.appcompat.widget.AppCompatImageButton |
|
0 commit comments