| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2020 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <FrameLayout |
| android:id="@+id/device_container" |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="64dp"> |
| |
| <FrameLayout |
| android:layout_width="36dp" |
| android:layout_height="36dp" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="16dp"> |
| <ImageView |
| android:id="@+id/title_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center"/> |
| </FrameLayout> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="68dp" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="14sp"/> |
| |
| <RelativeLayout |
| android:id="@+id/two_line_layout" |
| android:layout_width="wrap_content" |
| android:layout_height="48dp" |
| android:layout_marginStart="52dp" |
| android:layout_marginEnd="69dp" |
| android:layout_marginTop="10dp"> |
| <TextView |
| android:id="@+id/two_line_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="16dp" |
| android:layout_marginEnd="15dp" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="?android:attr/textColorPrimary" |
| android:textSize="14sp"/> |
| <TextView |
| android:id="@+id/subtitle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="16dp" |
| android:layout_marginEnd="15dp" |
| android:layout_marginBottom="7dp" |
| android:layout_alignParentBottom="true" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="?android:attr/textColorSecondary" |
| android:textSize="12sp" |
| android:fontFamily="roboto-regular" |
| android:visibility="gone"/> |
| <ProgressBar |
| android:id="@+id/volume_indeterminate_progress" |
| style="@*android:style/Widget.Material.ProgressBar.Horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="16dp" |
| android:layout_marginEnd="15dp" |
| android:layout_marginBottom="1dp" |
| android:layout_alignParentBottom="true" |
| android:indeterminate="true" |
| android:indeterminateOnly="true" |
| android:visibility="gone"/> |
| <SeekBar |
| android:id="@+id/volume_seekbar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true"/> |
| </RelativeLayout> |
| |
| <View |
| android:layout_width="1dp" |
| android:layout_height="36dp" |
| android:layout_marginEnd="68dp" |
| android:layout_gravity="right|center_vertical" |
| android:background="?android:attr/listDivider" |
| android:visibility="gone"/> |
| |
| <ImageView |
| android:id="@+id/end_icon" |
| android:layout_width="24dp" |
| android:layout_height="24dp" |
| android:layout_gravity="right|center_vertical" |
| android:layout_marginEnd="24dp" |
| android:visibility="gone"/> |
| </FrameLayout> |