1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 The Android Open Source Project 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15--> 16<LinearLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/browse_card" 19 android:layout_width="match_parent" 20 android:layout_height="@dimen/browse_item_height" 21 android:orientation="horizontal" 22 android:clickable="true" 23 android:background="?android:attr/selectableItemBackground"> 24 25 <FrameLayout 26 android:id="@+id/browse_station_background" 27 android:layout_marginStart="@dimen/browse_item_spacing" 28 android:layout_marginEnd="@dimen/browse_item_spacing" 29 android:layout_gravity="center_vertical" 30 android:layout_width="@dimen/browse_number_bg_width" 31 android:layout_height="@dimen/browse_number_bg_height" 32 android:background="@drawable/browse_channel_bg"> 33 <TextView 34 android:id="@+id/browse_station_channel" 35 android:layout_gravity="center" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:gravity="center" 39 android:drawablePadding="@dimen/browse_equalizer_padding" 40 android:maxLines="@integer/browse_item_channel_max_lines" 41 android:textColor="@color/browse_item_text_color" 42 android:textAppearance="?android:attr/textAppearanceLarge" /> 43 </FrameLayout> 44 45 <TextView 46 android:id="@+id/browse_item_metadata" 47 android:layout_width="@dimen/browse_item_metadata_width" 48 android:layout_height="wrap_content" 49 android:layout_weight="@integer/browse_item_metadata_weight" 50 android:layout_gravity="center_vertical" 51 android:layout_marginEnd="@dimen/browse_item_spacing" 52 android:textColor="@color/browse_item_text_color" 53 android:textAppearance="?android:attr/textAppearanceLarge" 54 android:textAlignment="viewStart"/> 55 56 <ImageButton 57 android:id="@+id/browse_button" 58 android:layout_marginEnd="@dimen/browse_item_spacing" 59 android:layout_gravity="center_vertical|end" 60 android:layout_width="@dimen/control_button_size" 61 android:layout_height="@dimen/control_button_size" 62 android:gravity="end" 63 android:src="@drawable/ic_star_filled" 64 style="@style/RadioButton" /> 65 66</LinearLayout> 67