1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2014 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 18<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/card_view" 20 android:layout_width="wrap_content" 21 android:layout_height="88dip" 22 android:elevation="5dp" > 23 24 <RelativeLayout 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:layout_gravity="top|right" > 28 <ImageView 29 android:id="@+id/station_more" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_alignParentRight="true" 33 android:layout_alignParentTop="true" 34 android:layout_marginTop="6dp" 35 android:background="@drawable/favorite_circle_button" 36 android:contentDescription="@string/more" 37 android:src="@drawable/ic_menu_moreoverflow_mtrl_alpha" 38 android:tint="#FF6b6b6b" > 39 </ImageView> 40 41 <View 42 android:id="@+id/popupmenu_anchor" 43 android:layout_width="36dp" 44 android:layout_height="0dp" 45 android:layout_alignParentRight="true" 46 android:layout_below="@id/station_more" > 47 </View> 48 </RelativeLayout> 49 50 <RelativeLayout 51 android:layout_width="wrap_content" 52 android:layout_height="88dp" 53 android:padding="12dip" > 54 55 <com.android.fmradio.views.FmVisualizerView 56 android:id="@+id/fm_play_indicator" 57 android:layout_width="24dip" 58 android:layout_height="24dip" 59 android:layout_alignParentLeft="true" 60 android:layout_alignParentTop="true" 61 android:alpha="0.54" /> 62 63 <TextView 64 android:id="@+id/station_freq" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_alignWithParentIfMissing="true" 68 android:layout_below="@id/fm_play_indicator" 69 android:layout_marginTop="4dip" 70 android:alpha="0.87" 71 android:ellipsize="end" 72 android:fontFamily="sans-serif-medium" 73 android:singleLine="true" 74 android:textColor="#000000" 75 android:textSize="14dip" /> 76 77 <TextView 78 android:id="@+id/station_name" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:layout_alignWithParentIfMissing="true" 82 android:layout_below="@id/station_freq" 83 android:alpha="0.54" 84 android:fontFamily="sans-serif" 85 android:maxLines="2" 86 android:ellipsize="end" 87 android:textColor="#000000" 88 android:textSize="12dip" /> 89 </RelativeLayout> 90 91</android.support.v7.widget.CardView>