Peter Li | 3f63bfb | 2019-03-01 15:27:46 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 2018, The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <androidx.constraintlayout.widget.ConstraintLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 20 | xmlns:tools="http://schemas.android.com/tools" |
| 21 | android:id="@+id/metadata_subcontainer" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="wrap_content" |
| 24 | android:focusable="false"> |
| 25 | |
| 26 | <TextView |
| 27 | android:id="@+id/title" |
| 28 | android:layout_width="0dp" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:ellipsize="end" |
| 31 | android:includeFontPadding="false" |
| 32 | android:maxLines="@integer/playback_title_text_max_lines" |
| 33 | android:textAppearance="?android:attr/textAppearanceLarge" |
| 34 | app:layout_constraintEnd_toEndOf="parent" |
| 35 | app:layout_constraintStart_toStartOf="parent" |
| 36 | app:layout_constraintTop_toTopOf="parent" |
| 37 | tools:text="Body 1 Header"/> |
| 38 | <TextView |
| 39 | android:id="@+id/subtitle" |
| 40 | android:layout_width="0dp" |
| 41 | android:layout_height="wrap_content" |
| 42 | android:layout_marginTop="@dimen/metadata_normal_subtitle_margin_top" |
| 43 | android:layout_marginEnd="@dimen/metadata_normal_subtitle_margin_end" |
| 44 | android:ellipsize="end" |
| 45 | android:maxLines="@integer/playback_subtitle_text_max_lines" |
| 46 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 47 | app:layout_constraintStart_toStartOf="parent" |
| 48 | app:layout_constraintEnd_toStartOf="@+id/time" |
| 49 | app:layout_constraintTop_toBottomOf="@+id/title" |
| 50 | tools:text="Body 2"/> |
| 51 | <TextView |
| 52 | android:id="@+id/time" |
| 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:layout_marginTop="@dimen/metadata_normal_time_margin_top" |
| 56 | android:ellipsize="end" |
| 57 | android:maxLines="@integer/playback_subtitle_text_max_lines" |
| 58 | android:gravity="end" |
| 59 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 60 | app:layout_constraintEnd_toEndOf="parent" |
| 61 | app:layout_constraintTop_toBottomOf="@+id/title" |
| 62 | tools:text="3:27 / 4:03"/> |
| 63 | <SeekBar |
| 64 | android:id="@+id/seek_bar" |
| 65 | android:layout_width="0dp" |
| 66 | android:layout_height="wrap_content" |
| 67 | android:layout_marginTop="@dimen/metadata_normal_seek_margin_top" |
| 68 | android:clickable="false" |
| 69 | android:focusable="false" |
| 70 | android:paddingEnd="@dimen/playback_seekbar_padding_end" |
| 71 | android:paddingStart="@dimen/playback_seekbar_padding_start" |
| 72 | android:progressDrawable="@drawable/seekbar_background" |
| 73 | android:thumb="@drawable/seekbar_thumb" |
| 74 | android:splitTrack="false" |
| 75 | android:progressTint="@color/progress_bar_highlight" |
| 76 | android:progressBackgroundTint="@color/progress_bar_background" |
| 77 | android:background="@null" |
| 78 | android:visibility="invisible" |
| 79 | app:layout_constraintStart_toStartOf="parent" |
| 80 | app:layout_constraintEnd_toEndOf="parent" |
| 81 | app:layout_constraintTop_toBottomOf="@+id/subtitle" |
| 82 | tools:progress="70" |
| 83 | tools:visibility="visible"/> |
| 84 | |
| 85 | </androidx.constraintlayout.widget.ConstraintLayout> |