| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2018 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. |
| --> |
| <androidx.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/main_radio_display" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="@dimen/playback_card_margin_horizontal" |
| android:layout_marginRight="@dimen/playback_card_margin_horizontal" |
| android:layout_marginBottom="@dimen/playback_card_margin_bottom" |
| android:paddingTop="@dimen/playback_card_interior_padding" |
| android:background="@drawable/playback_background"> |
| |
| <ImageView |
| android:id="@+id/station_art" |
| android:layout_width="@dimen/playback_card_art_size" |
| android:layout_height="@dimen/playback_card_art_size" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toStartOf="@+id/station_name" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/playback_controls" |
| android:src="@drawable/radio_placeholder"/> |
| |
| <TextView |
| android:id="@+id/station_name" |
| android:ellipsize="end" |
| android:layout_gravity="center" |
| android:layout_width="@dimen/playback_card_station_name_width" |
| android:layout_height="wrap_content" |
| android:layout_marginLeft="@dimen/playback_card_interior_padding" |
| android:layout_marginRight="@dimen/playback_card_interior_padding" |
| android:maxLines="@integer/playback_card_station_name_max_lines" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| app:layout_constraintVertical_chainStyle="packed" |
| app:layout_constraintStart_toEndOf="@+id/station_art" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toTopOf="@+id/station_details" |
| app:layout_constraintEnd_toStartOf="@+id/station_channel" |
| android:visibility="invisible" /> |
| |
| <TextView |
| android:id="@+id/station_details" |
| android:ellipsize="end" |
| android:layout_gravity="center" |
| android:layout_width="@dimen/playback_card_station_details_width" |
| android:layout_height="wrap_content" |
| android:paddingTop="@dimen/playback_card_text_spacing" |
| android:layout_marginLeft="@dimen/playback_card_interior_padding" |
| android:layout_marginRight="@dimen/playback_card_interior_padding" |
| android:maxLines="@integer/playback_card_station_details_max_lines" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| app:layout_constraintTop_toBottomOf="@+id/station_name" |
| app:layout_constraintBottom_toTopOf="@+id/playback_controls" |
| app:layout_constraintStart_toEndOf="@+id/station_art" |
| app:layout_constraintEnd_toStartOf="@+id/station_channel" |
| android:visibility="invisible" /> |
| |
| <TextView |
| android:id="@+id/station_channel" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/station_top_margin" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| app:layout_constraintBaseline_toBaselineOf="@+id/station_details" |
| app:layout_constraintEnd_toEndOf="parent" /> |
| |
| <include |
| layout="@layout/radio_playback_controls" |
| android:layout_width="@dimen/playback_card_controls_width" |
| android:layout_height="@dimen/playback_card_controls_height" |
| android:id="@+id/playback_controls" |
| app:layout_constraintTop_toBottomOf="@+id/station_details" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" /> |
| </androidx.constraintlayout.widget.ConstraintLayout> |